diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 12:29:13 -0500 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 12:29:13 -0500 |
| commit | cb008b85887e40dafa273929c29945fed25f2bfa (patch) | |
| tree | 94517ef1134f449efec75aee631e1bf7b0948c4c | |
| parent | 42a9a97be43574e7449f90300fea28a54ffb4e66 (diff) | |
| download | open-iov-cb008b85887e40dafa273929c29945fed25f2bfa.tar.gz open-iov-cb008b85887e40dafa273929c29945fed25f2bfa.zip | |
vgsp: eng89e - RT-SCAN candidate witness + streamed dmesg capture
c918-c921 had no RT-PERSIST and every beef draw was rejected on the
missing colour-target bind, while c910 had the bind on the X/2D channel.
RT-SCAN logs the last A/B/W/H candidates and seen flags for every beef
channel push (bounded to 32) so the next boot answers whether the bind is
absent from the push, filtered by the surface-class checks, or never
authored.
The batch runner also streams the kernel log with 'dmesg -w' per cycle
and merges it into the per-cycle evidence; the ring wraps in under four
minutes at this debug volume and had truncated c921's key receipts.
| -rw-r--r-- | kernel/gsp_sema_service.c | 22 | ||||
| -rwxr-xr-x | tools/guest-diag/run_cycles_long.sh | 8 |
2 files changed, 30 insertions, 0 deletions
diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index 66ab29b..dc4792d 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -12284,6 +12284,28 @@ static void svc_gl_rt_note(const u8 *buf, u32 len, u64 h, u64 push) } o += span * 4u; } + /* + * eng89e: bounded candidate witness for the beef draw channel. The + * dmesg receipt answers whether the colour-target bind is present in + * the push at all, was filtered by the surface-class checks, or was + * never authored on this boot (the c918-c921 class: no RT-PERSIST and + * every 3D mark rejected). + */ + if (gsp_sema_dbg && (h & 0xfffff000u) == 0xbeef0000u) { + static u32 rt_scan_log; + + if (rt_scan_log < 32u) { + rt_scan_log++; + pr_info("sema-gl: RT-SCAN h=0x%llx len=%u A=%08x,%08x,%08x,%08x B=%08x,%08x,%08x,%08x W=%08x,%08x,%08x,%08x H=%08x,%08x,%08x,%08x seen=%d%d%d%d/%d%d%d%d\n", + (unsigned long long)h, len, + A[0], A[1], A[2], A[3], + B[0], B[1], B[2], B[3], + W[0], W[1], W[2], W[3], + H[0], H[1], H[2], H[3], + sa[0], sa[1], sa[2], sa[3], + sb[0], sb[1], sb[2], sb[3]); + } + } for (j = 0; j < 4u; j++) { if (sb[j] && sw[j] && sh[j] && (A[j] & ~0xffu) == 0 && (A[j] & 0xffu) <= 1u && diff --git a/tools/guest-diag/run_cycles_long.sh b/tools/guest-diag/run_cycles_long.sh index fa8dd77..479c49d 100755 --- a/tools/guest-diag/run_cycles_long.sh +++ b/tools/guest-diag/run_cycles_long.sh @@ -79,6 +79,10 @@ RC=0 for TAG in "$@"; do say "=== $TAG start (GZ_SECS=$GZ_SECS GLF_FRAMES=$GLF_FRAMES params=$(basename "$INSMOD_PARAMS")) ===" DM_SINCE=$(date "+%Y-%m-%d %H:%M:%S") + # Continuous kernel-log capture: the dmesg ring wraps in <4 min at the + # debug volume, which silently truncated per-cycle evidence (c921). + sudo dmesg -w > "$BACKUP/$TAG-dmesg-watch.log" 2>&1 & + DM_WATCH_PID=$! if ! INSMOD_PARAMS="$INSMOD_PARAMS" bash "$HERE/cycle-r1780.sh" "$TAG" "$MODULE" \ > "$BACKUP/$TAG-cycle.log" 2>&1; then say "$TAG CYCLE FAILED (see $BACKUP/$TAG-cycle.log)" @@ -109,8 +113,12 @@ for TAG in "$@"; do say "$TAG mission: $DONE" fi + kill "$DM_WATCH_PID" 2>/dev/null sudo dmesg -T --since "$DM_SINCE" 2>/dev/null > "$BACKUP/$TAG-dmesg.log" || \ sudo dmesg 2>/dev/null | tail -n 4000 > "$BACKUP/$TAG-dmesg.log" + # Merge the streamed capture (it has the lines the ring dropped). + [ -s "$BACKUP/$TAG-dmesg-watch.log" ] && \ + cat "$BACKUP/$TAG-dmesg-watch.log" >> "$BACKUP/$TAG-dmesg.log" gexec 30 'cat /tmp/mission-gl.log 2>/dev/null' > "$BACKUP/$TAG-gl.log" gexec 30 'cat /tmp/mission-gz.log 2>/dev/null' > "$BACKUP/$TAG-gz.log" gexec 30 'tail -c 3000 /tmp/mission-run.log 2>/dev/null' > "$BACKUP/$TAG-run.log" |
