blob: cb1fe690606ab1402b7ca7d6d8a2e0b07bb06eac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2026 Open-IOV contributors
# 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
|