Files
reims-vgpu/scripts
Anees IqbalandClaude 07a6110090 ✨ Which rail of this device hangs the host GPU, counted by the kernel and bisected with the narrowing switches
Component: `scripts/app-sweep-probe/hang-bisect.sh`. Host-side harness only.

A macos-11 sweep put six of seven application legs at FREEZE, and the cause is
not a wedge in this device: the host kernel is resetting the GPU —
`i915 … GPU HANG: ecode 12:1:85dff5fb … context reset due to GPU hang`,
fourteen times in four minutes, the same ecode every time. The device survives
each one by recreating, so the guest keeps running, but every recreate loses the
writebacks in flight (`render_store_lost`, `wbdebt_pay_lost`) and stalls the
drain for ten to twenty seconds. That is what the FREEZE verdict measured.

The device's own log cannot name the submission that hung: by the time anything
is observable the fence has already failed with `ERROR_DEVICE_LOST` and the
batch is gone. So the instrument is the kernel's hang count per arm, and the
arms are the `REIMS_VGPU_*` narrowing switches — each turns a rail off without
turning anything on, which is the only direction AGENTS.md allows an override to
move.

Two things it does that a hand-run A/B here has got wrong before: the arm is
exported rather than passed as argv, because a command line naming the arm is
matched by the next round's own `pkill -f`; and the capability line is read back
from the boot's log into the results table, so an override that was silently
ignored cannot be scored as an arm that ran.

Verified: `bash -n`. Not verified: not yet run — the rail sweep that motivated
it is still going, and running a second VM beside it would measure the
contention rather than the device.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-12 06:36:15 +03:00
..