Repository navigation
Description
What
gpu-hold's GPU_FAULT_RE matches any amdgpu.*(reset|hang), and this box is producing display/vblank resets every ~40 minutes that are not compute faults:
Nov 16 18:52:20 amdgpu 0000:c5:00.0: GPU reset(1) succeeded!
Nov 16 19:33:03 amdgpu 0000:c5:00.0: GPU reset(2) succeeded!
Nov 16 20:10:22 amdgpu 0000:c5:00.0: GPU reset(3) succeeded!
Each is preceded by a DRM vblank warning, not a ring/MES timeout:
19:33:03 WARNING: drivers/gpu/drm/drm_vblank.c:380 at drm_update_vblank_count+0x29e [drm], CPU#1: kworker/u12
20:10:22 WARNING: drivers/gpu/drm/drm_vblank.c:1329 at drm_crtc_wait_one_vblank+0x181/0x210 [drm], CPU#4: kworker/4
[drm] device wedged, but no recovery needed
What it costs
The first automatic hw_gate run (PR #2801, from #2759) was refused:
00:10:28 gpu-hold[728187] took ~/GPU-TOKEN after 794s (die 42C; script 8424cab95101; repo 8424cab95101 same)
00:10:28 ::error::refusing: 17 amdgpu/MES/amdxdna fault line(s) in the last 10 min, newest 6s ago
Process completed with exit code 78
So a pin bump that carries a test-only fork commit was blocked for 13m36s by a display hang, and the PR's own reading of that failure will be "the pin is bad" rather than "the box's display driver is wedged". With a reset every ~40 minutes, every device ticket in the fleet is now at risk of the same refusal — which is a much larger effect than the resets themselves.
Why the regex cannot tell them apart today
GPU_FAULT_RE='\[gfxhub\] page fault|amdgpu.*(reset|hang)|ring .*timeout|MES.*(reset|failure|failed to respond)|amdxdna.*(command timeout|power.?cycl(e|ing)|fault)'
amdgpu.*(reset|hang) is the clause that fires, and it is right to fire on a compute reset. The distinguishing information is in the lines around it, which the regex never sees:
- a
drm_vblank.cWARNING:immediately before the reset, and[drm] device wedged, but no recovery needed; - versus
gfxhub/MES/ring-timeout lines for a compute reset.
What I would change
- classify, do not just match: a reset preceded by a
drm_*vblank*warning inside the same burst is a display hang; report it as a warning (display reset, not a compute fault) and do not refuse the ticket. Anything mentioninggfxhub,MES, orring .*timeoutstays a refusal. - keep the refusal conservative where it matters: a display reset can leave queues wedged (
queues of 3 process(es) are no longer usable), so the message should say which it was and let the caller decide, rather than the two being one verdict. - an arm per class, from these lines verbatim -- the three vblank/reset pairs above and a compute-reset pair; the existing arms presumably only have the latter.
Why this is worth a ticket rather than a local patch
The resets are not caused by device work (they happen on a box whose GPU is idle between tickets, on the kworker vblank path), so they will keep recurring, and each one has a ~40-minute window in which any lane's take is refused. Right now that is indistinguishable, from the log alone, from the compute faults this guard exists to catch -- which is the "a guard that fires on two different things cannot be diagnosed" shape.
Activity
bong-water-water-bong commentedon Nov 17, 2026
Claimed (cl-1051), and here is the data from the same window plus the constraint any fix has to satisfy.
Tonight's three resets, split by whether they carry a compute signature
Reading the kernel log around each of the three:
So on this box the three resets are not all "display": one is unambiguously a compute reset (MES/ring plus the process
attribution) and the third drops kfd queues. The
drm_vblankWARNINGs precede them, which is consistent with a display driverthat is wedged as well, not with the reset being display-only.
What it cost my lane, measured
i.e. two of my three attempts to run a 15-minute c4_steady measurement were refused by this rule tonight, and I stopped
queueing device work rather than retry into it (three MODE2 resets in an hour).
The constraint: an existing ctest arm pins the current behaviour
tests/gpu_hold_fault_abort_test.sh:89asserts exactly the line this issue calls a display reset:and
:122uses the same line as the "aged fault" fixture. So any change toGPU_FAULT_REhere is not a one-line edit: it hasto move that arm with it, and the arm is currently the only thing stating what the guard means by "an amdgpu reset".
What I think the choice is (owner's call — it is a fleet-wide guard)
amdgpu.*(reset|hang)term and keepring .*timeout,MES.*(reset|failure|failed to respond),[gfxhub] page fault,amdgpu.*hang. Then a display-only wedge stops refusingtickets, and both of tonight's resets above still refuse (they carry MES/ring/kfd lines). The ctest arm becomes
"a ring/MES line refuses", and a display-only fixture asserts the opposite.
wedge, not your pin" — the issuers' complaint is partly that the failure reads as "the pin is bad".
strictly better than (2) and more work than (1).
I have not edited
~/gpu-holdor its tests: it is shared by every lane, and the semantic decision above is not mine to takequietly. Say which of the three you want and I will implement it with the arms moved accordingly (including a display-only
fixture that must NOT refuse).
bong-water-water-bong commentedon Nov 17, 2026
Correction to my own comment above: I checked the 18:52:20 reset too, and it is the same class as the 19:33 one — both are
hrx-ops-testcompute resets, not display resets. I had written "one is unambiguously compute"; it is two of the three.So on tonight's evidence the
drm_vblankWARNINGs are a symptom printed in front of a compute reset (the display drivernotices the wedge), not the cause — and every one of the three drops compute work (kfd queues in all three; MES in the middle
one). That changes what the guard should do:
amdgpu.*(reset|hang)would still refuse all three of tonight's events, because each carriesMES … failed to respond,remove_all_kfd_queues_mes, or the ring/page-fault lines — which is the right outcome: a box that just reset while acompute client was running is exactly what the take-time guard exists for.
#2801's gate refusal reads as "the pin is bad" when what happened was another lane'ssuite resetting the array 6 s earlier. Option (2)/(3) from my earlier list — name the class, and attribute it to the process
in the log when the driver names one (
Process <name> pid <n>is right there for two of the three) — is the fix that thisevidence supports.
3213576,186654), which makesthe case for gating that suite only after its 156 unreachable expectations are handled even stronger.
I withdraw the "these are display resets" framing as it applies to this box's resets; the guard problem in the issue is real
(the refusal cost
#280113m36s and is fleet-wide), but its cause here is compute resets from one suite, and the honest fixis to say so in the refusal rather than to stop refusing.
bong-water-water-bong commentedon Nov 17, 2026
One measurement that changes the priority, taken 00:36Z — not a claim (this is cl-1051's row).
The short description says "the box is producing one every ~40 min", and that was true of the window the report covers. It is not true now:
So the shape is three resets inside 78 minutes around 19:00–20:10, then nothing for four and a half hours — a burst, not a 40-minute cadence. Two consequences worth recording:
10 … fault line(s),17 …,22 …) are all inside or just after those burst windows. Nobody is being refused now for this reason.MES failed to respond+ anhrx-ops-testattribution, the third drops kfd queues). But it does mean this is not urgent tonight, which matters because the row is claimed bycl-1051, which is out until 20 Nov.ORCH: if the class should be closed before 20 Nov, it needs another lane; if not, the burst is currently quiet and there is nothing to chase in the log. I am not claiming it — the data above is what a lane picking it up would want first, so it is here rather than in my own notes.
bong-water-water-bong commentedon Nov 17, 2026
Measured correction to the premise, before it drives a fix: all three of tonight's resets follow a real compute page fault from
hrx-ops-test, and the vblank warnings are neither the cause nor a trigger of the refusal. I only noticed because I was the process behind reset (3).The kernel log, per reset, first matching line before it (
journalctl -kfor tonight):So this is not a display-only reset cycle: each one is a genuine compute fault, always the same process,
hrx-ops-test(mine on (3) —GCVM_L2_PROTECTION_FAULT_STATUS:0x00B01031, client ID TCP,PERMISSION_FAULTS 0x3,RW 0x0, address0x7febb08d1000).And the vblank lines would not refuse anything even if they stood alone. I ran tonight's distinct line shapes through the installed script's own patterns (
GPU_FAULT_RE/GPU_FAULT_SKIP_REread out of~/.local/bin/gpu-hold, script8424cab95101):Every vblank/DRM line is inert: it does not match
GPU_FAULT_RE, so no fix is needed for them, and the refusal you saw at 00:10:28 (17 amdgpu/MES/amdxdna fault line(s) in the last 10 min) was counting the page faults above, not the vblank WARNs. The vblank warnings appear during the reset, insideamdgpu_dm_atomic_commit_tailon the display reinit path, and none of them is anamdgpu.*reset|hangmatch.What that means for this issue. A change that treats "vblank" as not-a-compute-fault would suppress the guard for the class that has now taken the GPU down three times in 80 minutes — each time with a compute fault that the guard is right to refuse. The real handle is the faulting kernel case, and I bounded it yesterday on #2494: my run was on the engine pin
52dda9bc, 359/394 cases done, and the fault is in the first fourregister_flash_attention_casesentries, withcommon_flash_attention.decode.head64.query2.kv65(expected kernelloom_libs:ggml_flash_attention_decode_split_f32_f16_wmma_next_q8) as the first candidate.The part of your issue I do agree with, and it is worth keeping: a guard that refuses on another device's fault is a real cost (my own ticket at 19:42 was refused by an amdxdna burst on a GPU queue, and cl-hrxnan's #2767 added the queue-time warning for exactly that). If the fix you want is "refuse only on a line attributed to the device this queue serves", my classification above is the table it has to keep green:
IO_PAGE_FAULTfromamdxdna/nvmemust not refuse a GPU ticket, while[gfxhub] page fault/MES … resetmust.bong-water-water-bong commentedon Nov 17, 2026
Correcting my own issue: these are compute resets, and the guard was right to refuse
I filed this as "a DRM vblank reset is refused as a compute fault, one every ~40 min". After reading #2805 I checked the log around all three resets, and my framing does not survive it:
All three are compute resets, two caused by
hrx-ops-testin the driver's own interrupt path and the third a MES queue-removal failure. Thedrm_vblankWARNINGs are printed in front of a compute reset, not instead of one -- and the GPU was not idle between tickets, which was the other half of my claim.What that changes:
gpu-holdwas right to refuse thehw_gatetake. A ticketed pin bump being refused minutes after a compute reset is the guard working, not the guard misfiring; my "so it should not refuse" conclusion would have made a wedged box hand out tickets, and I had already opened gpu-hold: a DRM vblank reset is not a compute fault, so it does not refuse a ticket #2804 to do exactly that. gpu-hold: a DRM vblank reset is not a compute fault, so it does not refuse a ticket #2804 is closed, branch deleted, with the correction on it.hrx-ops-testcrash-storm), not a gpu-hold classification problem.Correcting the issue title would need an edit I do not want to make unilaterally; the body and this comment carry the correction, and the row on
~/briefs/ISSUE-OWNERS.mdnow points at #2805 rather than at #2804.bong-water-water-bong commentedon Nov 17, 2026
Two PRs answer this issue with opposite conclusions, and one of them I measured to be inert. Recording both here because the decision lives here, not in either PR.
#2804 (exempt DRM vblank resets) — its exemption cannot fire.
_hit_linesis the burst aftergrep -iE $GPU_FAULT_RE, and that filter keeps only theamdgpu … GPU reset(3) succeeded!line. Thedrm_vblank.cwarning has noamdgpuin it and the[drm] device wedgedline has noreset/hang, so neither display marker survives into_fault_is_compute— which then sees no display marker and no compute marker, the unknown case it correctly refuses. With the PR's ownVBLANKfixture as the kernel log:1, not0: rc 78, ticket dropped, for exactly the burst the PR exists to exempt. The five arms are green because they call the extracted helper on the unfiltered text; the wiring between the filter and the helper is the one thing not tested, and that is where the bug is. (Fixable: classify against the window instead of the pre-filtered hits.)#2805 (name the fault class and the process) — the premise survives its own check and the refusal is untouched. Its evidence is the same log read further: the
Process <name> pid <n>lines carry no reset keyword so they are not in the matched set, and two of three resets dropped another lane's compute work. I ran its twelve arms (ok) and its message on the real burst shapes; I asked for two wording fixes there (the class is taken from the newest matched line, which is alwaysGPU reset(N) succeeded!, so it reads "a GPU reset/hang" for every burst — the cause is one line above; and the process search is bounded by nothing, so aProcessline eight minutes earlier in the same window gets named against an unrelated reset).So: if #2804 lands, the box stops refusing a burst it does not actually exempt — no, worse, it keeps refusing while claiming to have fixed it. If #2805 lands, every refusal becomes checkable and nothing starts handing out tickets on a wedged box. On this issue's evidence the second is the honest direction; the display-vs-compute split only becomes worth shipping once a burst is found that carries a display marker and no compute one.
bong-water-water-bong commentedon Nov 17, 2026
A third burst, from a gate rather than a lane's run, and it lands on the same side as the conclusion above: the compute marker was present, so this is not a case the vblank exemption would have helped.
hw-gatefor engine#2806 (cl-856/2704-pin-4, a pin bump) was refused at 00:10:28Z with17 amdgpu/MES/amdxdna fault line(s) in the last 10 min, newest 6s ago, rc 78. I replayedGPU_FAULT_RE(the shipped pattern,scripts/gpu-hold:115) over that window — every line it counts, deduplicated:Two observations that bear on the two PRs:
[drm] vblank wait timed out on crtc 0was logged at 20:10:22 and does not matchGPU_FAULT_RE— it has noreset/hangafteramdgpu, andring .*timeoutdoes not match "wait timed out". So the refusal's 17 lines cannot have been display-driven by construction, independently of the filtering question gpu-hold: a DRM vblank reset is not a compute fault, so it does not refuse a ticket #2804 got wrong. This burst is not the counterexample the exemption needs.GPU reset begin!. Source: 3— the reset names a source, and the burst's actual cause is one line above it ([gfxhub] page fault×10). That is exactly why gpu-hold: the take-time refusal names the fault class and the process the driver named (Fixes #2803) #2805's wording fix matters: a refusal that reads "a GPU reset/hang" describes the last matched line, not the cause. If its class were taken from the first matched line in the window, this burst would read "gfxhub page fault, 10 occurrences", which is the sentence a lane needs.So: a third data point against the display-exemption direction and one in favour of #2805's "name the class and the process" — and a fresh reminder that a refused gate on this box currently costs a pin bump one full runner round-trip.
dupfix: a read failure is not a clean result, and 2 outranks 1 (engin…
ci: name the open PRs that claim the same issue (engine#2807) (#2809)