Repository navigation
Conversation
A retail title's world load can stop with no GPU-wait time-out: presents, submits and DirectStorage requests go to 0 and every thread waits. The watchdog's summaries of pending title fences and of XCL's own unmet queue waits are only logged at a time-out, so such a stop did not say whether a fence or a queue was behind. At each XCL_THREAD_DUMP_AT dump XCL now logs the two summaries and the number of armed GPU waits, on a thread of its own so that a lock the stall holds cannot hold up the next dump. On xcl-dev#2057's tree this showed every fence and queue caught up at 135, 200 and 300 s after a stop at 110 s (xcl-dev#2057 (comment)). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XZrhsCAiLU1tTuEBwPLaRW
|
Linux / AMD RDNA4 (RADV) test report for head Environment
Tested (debug test binary under Wine,
Not tested: full workspace suite, live AI use: T3 Code / Antigravity (Gemini 4 Neon) merged, built, ran the tests on this machine, and drafted this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Same pair of failures across this batch of PRs — looks like a shared feature area with two broken assertions. Needs fixes before merge. — Devin |
|
@DavidM1911 thanks for the run. I could not reproduce either failure. This PR only adds logging in On an RTX 3070, Windows 11, debug, with
AI use: Claude Code (Claude Opus 5.5) ran the three checks and wrote this reply. |
|
A suggestion for this PR's sync-state lines, from runs where they would not have shown what held the title. On our runs of the retail title after the first
The function we used (in /// the Wait64BitValueX cells not at their highest recorded value, or with armed GPU waits
fn cells_behind_summary() -> String {
let mut parts = Vec::new();
if let Ok(g) = SYNC_GRAPH.try_lock() {
for (&va, c) in g.iter().flat_map(|gr| gr.cells.iter()) {
let done = c.fence.as_ref().map_or(0, |f| unsafe { f.GetCompletedValue() });
if c.armed_waits.is_empty() && done >= c.recorded_max {
continue;
}
let mem = if crate::gpu::shader::readable(va as usize, 8) { unsafe { *(va as *const u64) } } else { 0 };
let armed: Vec<String> = c.armed_waits.iter().map(|a| format!("{:#x}@q{} {} ms", a.val, queue_id(a.waiting_queue), a.armed_at.elapsed().as_millis())).collect();
parts.push(format!("{va:#x}: mem {mem:#x} done {done:#x} sub {:#x}@q{:?} rec {:#x} cpu {:#x}{} armed [{}]",
c.submitted_max, c.submitted_queue.map(queue_id), c.recorded_max, c.cpu_signaled_max,
if c.non_monotonic { " non-monotonic" } else { "" }, armed.join(", ")));
}
} else {
parts.push("(sync graph locked)".into());
}
if parts.is_empty() { "none".into() } else { parts.join("; ") }
}( Setup: RX 7900 XT, Mesa 26.2.5 RADV, Linux, Proton-CachyOS Wine 11, a local vkd3d-proton build; XCL AI use: Claude Code (Claude Opus 5.5) wrote the diagnostic, ran the builds and runs, read the logs and wrote this comment. |
|
Thanks, @GreemSC. In something like 1-2 hours i will implement the suggestions and a Claude Reply will come right after. |
At each
XCL_THREAD_DUMP_ATdump, XCL now also logs the pending title fences, XCL's own unmet queue waits, and how many GPU waits are armed. These are the summaries the GPU-wait watchdog logs at a time-out. Part of #1452.A world load can stop with no time-out: presents, submits and DirectStorage requests go to 0, and every thread waits. Until now the thread dump of such a stop did not say whether a fence or a queue was behind, because these summaries were only logged at a time-out.
On #2057's tree this diagnostic showed every fence and queue caught up at 135, 200 and 300 s after a stop at 110 s (#2057 (comment)). So the title was waiting on something other than a fence, and a GPU hang was ruled out.
What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:log_sync_state(at)logsfence_x::pending_summary(),internal_waits_summary()andARMED_GPU_WAITS. It runs on a thread of its own, so a lock that the stall holds cannot hold up the next dump.crates/xcl/src/host.rs: theXCL_THREAD_DUMP_ATthread calls it after eacheh::dump_threads(). Without the variable nothing changes.Example, from the run on #2057's tree, which also logged
queues behindand the wait edges; those summaries are not onmain:Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on this head: 1217 passed, 1 failed, 46 ignored, 25 SKIPPED (20no wave64on this 32-lane card, 3 per-lane forms refused, 1 needs Windows Developer Mode to turn the driver cache off, 1no heap windows).hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa("format 85 kept", left 28, right 85).mainb56a7d3without this change, so it is not from this PR.XCL_THREAD_DUMP_AT=45logged the three lines after the thread dump (pending title ID3D12Fences: none,XCL's own queue waits unmet: none,0 GPU waits armed). The thread dump came out as before (145 thread lines). The same function on D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge) #2057's tree is in the runs linked above.Regression run (
scripts/smoke.ps1 -Game <retail title> -Seconds 60, the same title for both)mainb56a7d3:This PR,
8eaad18:Not tested
AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_01XZrhsCAiLU1tTuEBwPLaRW