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. |
Contributor
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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