diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-24 03:29:40 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-24 03:29:40 -0400 |
| commit | fedae104af9b569effa8fd3f1cecb72d46d89c16 (patch) | |
| tree | e7d15971244001617d6c1ee47c0408fa57ca41b7 /tools/guest-diag/uvmwait.sh | |
| parent | 5c9d18abaac6ce45c8faec26b3f3b637cd764eb5 (diff) | |
| download | open-iov-fedae104af9b569effa8fd3f1cecb72d46d89c16.tar.gz open-iov-fedae104af9b569effa8fd3f1cecb72d46d89c16.zip | |
tools/guest-diag: add UVM wait diagnostics, tracker poke and VA->PA map injector
Diffstat (limited to 'tools/guest-diag/uvmwait.sh')
| -rw-r--r-- | tools/guest-diag/uvmwait.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/guest-diag/uvmwait.sh b/tools/guest-diag/uvmwait.sh new file mode 100644 index 0000000..06b2dc7 --- /dev/null +++ b/tools/guest-diag/uvmwait.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# uvmwait.sh - guest-side: run cdt with UVM debug prints on, and snapshot the +# UVM tracker-wait messages early (before any teardown floods dmesg). +nvidia-modprobe -c 0 +nvidia-modprobe -u +modprobe nvidia-uvm +echo 1 > /sys/module/nvidia_uvm/parameters/uvm_debug_prints 2>/dev/null +dmesg -C +rm -f /tmp/cdt.out +setsid /tmp/cdt > /tmp/cdt.out 2>&1 & +sleep 55 +dmesg | grep -aiE "tracker|semaphore|releasing|channel|page table" > /tmp/uvmwait.txt +tail -1 /tmp/cdt.out > /tmp/cdttail.txt +echo DONE > /tmp/uvmwait.done |
