summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/wall2/nudge2.sh
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-25 11:45:58 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-25 11:45:58 -0400
commit91a11327a152cba1b71bf11bc3d13b1358fb35a4 (patch)
tree4018b788742894ba02ae102998b2a483e5a11c11 /tools/guest-diag/wall2/nudge2.sh
parent7924df70261aad94b919add5778a910b0f9837bd (diff)
downloadopen-iov-91a11327a152cba1b71bf11bc3d13b1358fb35a4.tar.gz
open-iov-91a11327a152cba1b71bf11bc3d13b1358fb35a4.zip
wall2 session 90: current-boot wait site identified (eglcore+0xB2852D in-process word pair wait inside vkCreateInstance; old 0xa85d24/16K sites dead this boot); t83 sampler + widened nudge tools; multi-word nudge trips -4 (caution confirmed)
Diffstat (limited to 'tools/guest-diag/wall2/nudge2.sh')
-rwxr-xr-xtools/guest-diag/wall2/nudge2.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/guest-diag/wall2/nudge2.sh b/tools/guest-diag/wall2/nudge2.sh
new file mode 100755
index 0000000..16ebcd8
--- /dev/null
+++ b/tools/guest-diag/wall2/nudge2.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+# nudge2.sh - widened readiness-word nudger: ALL rw-s nvidia mappings <=256K,
+# writes 1 to any +0x80 u32 that is 0.
+DUR=${1:-300}
+F=/dev/shm/vgpu-guest-ram
+END=$(( $(date +%s) + DUR ))
+sshpass -p ubuntu scp -o StrictHostKeyChecking=no -P 2222 /tmp/opencode/guest_words2.sh ubuntu@127.0.0.1:/tmp/guest_words2.sh >/dev/null 2>&1
+while [ "$(date +%s)" -lt "$END" ]; do
+ OUT=$(timeout 12 sshpass -p ubuntu ssh -o StrictHostKeyChecking=no -p 2222 ubuntu@127.0.0.1 "sudo bash /tmp/guest_words2.sh" 2>/dev/null)
+ [ -n "$OUT" ] && echo "[$(date +%H:%M:%S)] words:" && echo "$OUT"
+ echo "$OUT" | while read -r VA PA SZ; do
+ [ -z "$PA" ] && continue
+ PAD=$((PA)); FOD=$((PAD - 0x80000000)); [ $FOD -lt 0 ] && FOD=$((PAD))
+ CUR=$(sudo dd if=$F bs=4 skip=$((FOD/4)) count=1 2>/dev/null | xxd -p)
+ if [ "$CUR" = "00000000" ]; then
+ printf '\x01\x00\x00\x00' | sudo dd of=$F bs=1 seek=$FOD count=4 conv=notrunc 2>/dev/null
+ echo " NUDGE va=$VA pa=$PA -> 1"
+ fi
+ done
+ sleep 1.5
+done
+echo NUDGE2-DONE