AGC: PPSA38500 boots die racily of a non-resolving WAIT_REG_MEM progress-counter wait #28859
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-12-04T08:41:18Z.
What
On PPSA38500, boots die racily of a
WAIT_REG_MEMthat never resolves. Most memory waits on this title resolve — slowly but they resolve — yet across many boots, sooner or later one wait never completes, the GPU goes quiet with the wait at the head of the ring, and the hang watchdog (APS5_HANG_DUMP_SECS=1800) aborts the process with0xC0000409. It has struck at wall-clock depths from ~8 minutes to ~31 minutes into a boot, on two different build generations, with no reproducible trigger. This is the single remaining killer of otherwise healthy boots on our host — everything else (device loss, memory walls) has been either fixed or configured away.How it differs from #6558
#6558 tracks waits that time out with the awaited word holding an address-like value (function 3, ref 0x1) — a label-corruption signature. Ours looks like a different animal: the ring dump operand layout reads as a progress-counter wait — ref
0x00001970under mask0xffffffff, which is a count-style target, not a 0/1 label. The transient version of this wait resolves in ~1.6 s; the fatal one never does, consistent with the producer side of a producer/consumer fence never completing rather than the label word being corrupt. I am not certain the root causes are disjoint, but the signatures differ enough that I am filing separately — please redirect if you judge them the same.Evidence
Host: RTX 3070 8 GB, driver 617.42, i7-10700, 32 GB RAM, Windows 11. Boot env: jassycliq's published compile-wall settings (8 GB-adapted), slabs off,
APS5_DUMP_DEVICE_FAULTactive — ring dumps preserved.Ring dump tail at the fatal hang (
perf(agc)head4848022013, the wait sitting at the head behindACQUIRE_MEM):Steady-state wait cost while boots are healthy — these resolve, but slowly (10 s observation windows):
Frequency data across the current campaign (compile-wall tree, both
5d3586347aand4848022013):WAIT_REG_MEMbehindACQUIRE_MEMWAIT_REG_MEM4848022013b3WAIT_REG_MEMhead-of-ringTransient waits that resolve: ~45–175
waited for GPU workwarnings per boot, worst single wait observed 520 ms at the host-write level — the waits are a constant presence on this title, not a corner case.One correlation worth flagging:
[gpu] guest snapshot differs from registered memorydiagnostics appear in the logs of affected boots. Whether the tracking divergence is cause, effect, or coincidence I cannot tell from outside.What I have ruled out
VK_ERROR_DEVICE_LOSTin the fatal boots (and slabs are off — device loss has not recurred since).What I cannot do from here, and a proposed direction
Root-causing sits inside the GPU runtime's memory-writeback visibility machinery, which I cannot responsibly patch blind. If it helps focus the search, my reading of the evidence points at one of: (a) a producer write-back that is dropped or reordered under memory pressure — the 8 GB host pages hard, and the pressure correlation may explain why this does not appear in 24 GB reports; (b) ordering between the producer dispatch's completion writeback and the consumer's wait when
ACQUIRE_MEMintervenes — the wait consistently sits directly behind one in the dumps; (c) the host-side snapshot/registration tracking losing coherence for the waited page, per the diagnostics above.Cheap instrumentation that would discriminate: if #27808 (configurable ring-dump depth) lands, the next death captures enough of the producer side to tell whether the producing dispatch even made it into the ring. I can also run controlled frequency experiments (memory-pressure relief vs wait-hang rate) if a maintainer sketches what knob isolation would be most informative — happy to be the test host; this title currently boots deep enough on this machine to make the measurement cheap.
Logs, ring dumps, and the full boot environment are preserved on disk and I can attach any slice of them on request.
AI-assisted: yes.