Repository navigation
Conversation
|
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. |
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
8eaad18 to
944dc85
Compare
|
@GreemSC thank you. That is the case these three lines cannot see. Your
Retested on the new head (RTX 3070 8 GB, Windows 11):
AI use: Claude Code (Claude Opus 5.5) folded the function in, ran the checks and wrote this reply. |
bmjask
left a comment
There was a problem hiding this comment.
P1 diagnostic crash hazard: cells_behind_summary calls readable(va,8) then directly dereferences *(va as *const u64) for persistent SYNC_GRAPH cells. readable is only a VirtualQuery/working-set preflight and does not pin the allocation; a title can decommit/reuse a recorded Wait64 address before XCL_THREAD_DUMP_AT runs, changing protection between check and dereference. Use ReadProcessMemory/fault-safe read or omit mem when it cannot be safely snapshotted, and add a recorded-cell -> decommit/protect -> summary regression.
The three lines of the first commit read "none / none / 0" in runs where the title had stopped after its first xcl-dev#101: no fence and no queue was behind, yet nothing was presented. What showed the stop was a SYNC_GRAPH cell whose recorded value is above what was submitted and completed, with no GPU wait armed: a list that writes the value was recorded and never submitted, so the submitting thread is held (GreemSC's runs, RX 7900 XT; the thread dump then named that thread). cells_behind_summary lists such cells, and those with armed waits: memory, completed, submitted (and on which queue), recorded and CPU values, and the armed waits with their age. It takes the graph with try_lock, since a dump can come while a submitting thread holds it. The cell is read with ReadProcessMemory (dstorage::read_own), since the title can decommit its page at any time; an unreadable cell shows "mem unreadable" (bmjask's review). The function is GreemSC's, from the review of this PR. Co-authored-by: GreemSC <57862153+GreemSC@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XZrhsCAiLU1tTuEBwPLaRW
944dc85 to
97e22f6
Compare
|
@bmjask thank you, you are right. Fixed in
Retested on
AI use: Claude Code (Claude Opus 5.5) made the change, wrote the test, ran the checks and wrote this reply. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Commit: 97e22f6 Reviewer: Claude Code (Claude Opus 5.5), orchestrator, full read (clean) Review: sha256 6b42ac16deb9a23ed2fdd17a389c6511dd29d048292a5d9b0f64f836cba1d71a
|
Test run on exact head Tested
Not tested
AI use
|
At each
XCL_THREAD_DUMP_ATdump, XCL now also logs four things:Wait64BitValueXcells that are behind what was recorded for them.The first three are the summaries the GPU-wait watchdog logs at a time-out. The fourth is @GreemSC's diagnostic from this PR's review. 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, a queue or a
Wait64cell was behind, because these summaries were only logged at a time-out.What is in it
06f9df8:crates/xcl/src/hle/d3d12x/list_x.rs:log_sync_state(at)logsfence_x::pending_summary(),internal_waits_summary()andARMED_GPU_WAITS, 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.97e22f6(co-authored by @GreemSC),crates/xcl/src/hle/d3d12x/list_x.rs:cells_behind_summary()lists theSYNC_GRAPHcells below their recorded value, or with armed waits:try_lockand logs(sync graph locked)when it cannot get it.ReadProcessMemory(dstorage::read_own, nowpub(crate), incrates/xcl/src/hle/dstorage.rs): the title can decommit the page at any time. An unreadable cell showsmem unreadable(@bmjask's review). The testthe_cells_behind_summary_reads_a_decommitted_or_protected_cell_without_faultingcovers it.The four lines, from a 60 s run of this head with
XCL_THREAD_DUMP_AT=45(the title was not stalled, so all four are empty):Tested
main72f848c.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on97e22f6: 1414 passed, 0 failed, 46 ignored. 26 SKIPPED:no wave64on this 32-lane card;no heap windows.Regression run (
scripts/smoke.ps1 -Game <retail title> -Seconds 60, the same title for both)main72f848c:This PR,
97e22f6:Not tested
XCL_THREAD_DUMP_AT: the 60 s run did not stall.AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_01XZrhsCAiLU1tTuEBwPLaRW