Repository navigation
Conversation
The first-error message does not distinguish an unreadable enqueue snapshot, a source/destination access check, or a failed physical-page write. It also does not say whether capacity or the title submitted the batch. XCL_DSTORAGE_FAILURE_DETAILS=1 adds stage/origin and owned-array zero counts, limited to 8 records per queue and 64 per process. New records contain no addresses, PFN values, paths or data. There are no new guest-memory probes, retries, decoder substitutions or submit decisions. Keep opt-in refusal metadata boxed, and allocate it only for access failures. Five synthetic CPU controls exercise counts, bounded admission, protected memory and actual auto/title batches while preserving HRESULT/error records. This does not include or replace the behavior changes in PRs 549/509/671. Assisted-by: OpenAI Codex (GPT-6)
|
Windows run of Clean boot, steady 60 presents / 2 s — the tracing adds no visible cost in this window. Tests on this head: One note on your "metadata not yet captured from retail access failures" gap: this title's failures in a 90 s boot are all BCPack refusals ( The matched official-main block still needs to come from current main ( AI use: GPT-6.2 Astra (API model selector) in DSH built the head, ran the smoke and tests, and drafted this comment; the human contributor reviewed the numbers before posting. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
Test report for #816 at Setup
Results
Not tested
AI use
|
|
I measured where DirectStorage access failures were reported during a GTA VI world-load run on Windows with an RTX 3080. I used a separately instrumented build (local All 93 reported failures landed in the serial physical-destination stage. That count matched the failure total in the ordinary runtime logs. The other nine instrumented stages stayed at zero, and both sampled warnings carried My counter groups two checks together: a missing physical-page list and a rejected physical-destination write. Distinguishing those two cases on the same route would be the most useful comparison with this PR’s per-request diagnostics. The viewport later went black, but this run doesn’t establish whether either check caused the stall. I used Codex with GPT-6.2 Sol (high) to run the measurement. A separate GPT-6.2 Sol agent verified the counts against the saved logs. GPT-6.1 Terra (medium) checked for overlap with existing upstream reports. |
|
I followed up on my earlier RTX 3080 report with a build that distinguishes zero destination pages and records how the queue was submitted. In this run, all 1,374 reported DirectStorage failures fell into the same category: the queue drained automatically at the half-full threshold, and the worker still read a zero destination page when it checked again. The counters identify the drain path and the worker’s observation. They don’t tell us what the page entry contained at submission time. In a later run on unmodified I used Codex with GPT-6.2 Sol for the runs and a separate GPT-6.2 Sol agent to verify the saved measurements. GPT-6.1 Terra checked for overlap with existing upstream reports. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
DirectStorage's first-error message identifies a file and length, but an access failure can come from different checks. This adds opt-in records that distinguish an unreadable page-array snapshot, a source/destination access check, and a failed physical-page write, along with whether the batch came from capacity auto-submission or the title's
Submit.What is in it
XCL_DSTORAGE_FAILURE_DETAILS=1captures bounded metadata: at most 8 access-failure records per queue and 64 per process. The added records contain logical queue IDs, stages, submission origins and zero/total page counts, without addresses, PFN values, file paths or contents.e50836bdf6f5c026f281d545ed86fb2f07ba6e6a. This does not include or replace the behavior changes proposed in DirectStorage: a late page array holds a half-full queue until Submit #549, DirectStorage: a deferred page-array entry is reread without faulting (#476) #509 or DirectStorage: read deferred zero mappings as native inputs #671, and does not claim to fix the retail loading abort.Tested
2ffb5a4ebaefb922952d72b35901d39d04ec715e,cargo test --locked -p xcl --lib failure_diagnostics -- --nocapture --test-threads=1: 5 passed, 0 failed, 0 ignored; no skips, 684 filtered. These CPU controls use no GPU execution;XCL_COHERENT_MB=1 XCL_UMA_MB=1bound their memory setup.cargo build --locked --workspacepassed on that head, refreshing the synthetic title and DLL fixtures before wider validation.cargo build --locked --release --workspacealso passed for the clean candidate and pristine official baseline.cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --nocaptureon that clean head completed with 709 passed, 0 failed, 41 ignored, using the packaged DXC pair and private test data/DXIL cache directories. Two hardware cases reportedSKIPPED:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware, bothno wave64. Optional external samples and the console XG oracle were unset; their early returns are not asset/oracle validation.Independent retail test
JFyuhong used this tracing change at
2ffb5a4in two matched story-loading runs on an RTX 4060 Laptop 8 GB. All eight detailed failures captured in the control came from half-full submissions on queue 12. The destination page arrays still contained zero entries on reread. The control recorded 2,045 failed requests out of 87,461. Adding the queue change from #549 reduced that to zero out of 87,038. Both runs still reached the same guest exception at+0x23cf683. The linked report gives both integration trees, settings and the additional patches in the comparison. JFyuhong's test on #549Regression run
Two 60-second release startup runs, identical offline settings on the same RTX 3060 Ti, no input, and distinct initially empty XCL data/DXIL caches. The new switch was unset (default off); these check startup regressions, while the five controls exercise the metadata. No performance improvement is claimed.
Baseline:
Candidate:
Not tested
AI use
OpenAI Codex (GPT-6) assisted with implementation, CPU controls, source review, duplicate screening and this description. Another Codex agent independently reviewed the error/ordering paths and identified the inline trace footprint before it was corrected.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord