summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/run_cycles_long.sh
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 09:59:24 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 09:59:24 -0500
commit630f5a0df40f5262f1c4e071450af65391aaad0f (patch)
treeb226cf17a6629ed793649b5eae45b670aa96bb1f /tools/guest-diag/run_cycles_long.sh
parented8a9c6b8e061fe772fc0050ab83c2dec2db8d1e (diff)
downloadopen-iov-630f5a0df40f5262f1c4e071450af65391aaad0f.tar.gz
open-iov-630f5a0df40f5262f1c4e071450af65391aaad0f.zip
vgsp: eng89b - persist the colour-target bind across pushes
Most beef draw pushes carry no colour-target bind of their own (the client binds the target once per context/target switch in an earlier state push), so the per-window admission refused the real frame pushes on most boots ('beef draw-synth: no valid last colour-target bind', the shallow-boot lottery). Track the last complete, plausible bind seen on a trusted push (same surface-class validity as the first-bind check; an invalid later write never overwrites a valid state) and admit a beef draw window on it: RT-PERSIST + '3D mark admitted (persisted colour-target bind)' receipts. Knob sema_gl_win_rt_persist, default 1.
Diffstat (limited to 'tools/guest-diag/run_cycles_long.sh')
-rwxr-xr-xtools/guest-diag/run_cycles_long.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/guest-diag/run_cycles_long.sh b/tools/guest-diag/run_cycles_long.sh
index bf14ca2..fa8dd77 100755
--- a/tools/guest-diag/run_cycles_long.sh
+++ b/tools/guest-diag/run_cycles_long.sh
@@ -78,7 +78,7 @@ analyze_tag() { # analyze_tag <tag> <dmesg-file> <gl-log> <gz-log>
RC=0
for TAG in "$@"; do
say "=== $TAG start (GZ_SECS=$GZ_SECS GLF_FRAMES=$GLF_FRAMES params=$(basename "$INSMOD_PARAMS")) ==="
- DM_START=$(sudo dmesg 2>/dev/null | wc -l)
+ DM_SINCE=$(date "+%Y-%m-%d %H:%M:%S")
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,7 +109,8 @@ for TAG in "$@"; do
say "$TAG mission: $DONE"
fi
- sudo dmesg 2>/dev/null | tail -n +$((DM_START + 1)) > "$BACKUP/$TAG-dmesg.log"
+ 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"
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"