Repository navigation
Conversation
gut0to
left a comment
There was a problem hiding this comment.
AI-assisted review (GPT-6): I verified the full-queue behavior against the GDK queue-options contract and both enqueue paths.
|
Confirmed that the retail title exercises this option on Windows. In a downstream RX 7900 XT run, XCL logged CreateQueue with a 0x20-byte descriptor and u64 at offset 0x18 equal to 0x1 at 1.544 s. The queue then processed file-backed zlib requests. Several comparison runs reported 0x89240009 on 64 KiB world assets after account selection. That error alone does not establish that auto-submit caused it. I have queued a comparison with identical destination diagnostics and a saved profile on the parent integration and with this change. RX 7900 XT hardware follow-up, one cold-cache run per build. Both used main 9e3831e with #789, #1514, #1438 and a downstream fallible zlib output allocation, a saved Series X profile and a 28 GiB whole-job limit. All 20 DirectStorage tests passed on the candidate. In the common 60–140 s interval, the control recorded 109 failures in 82,108 attempted requests; with #1599 the count was 0 in 87,724. Across all candidate activity samples it was 0 in 111,308. The control logged physical destination lists containing a zero page at the point of writing. The candidate's first explicit batch contained 3,677 entries at capacity 4,159, and later batches also crossed the old half-full threshold. Player1 A was scheduled at 49 s on control and 33 s on candidate. The candidate's final capture showed the Vice City location card. DRED then reported 0x887a0006 and GPU fault VA 0x1d1675000 with no named allocations. The observed process exit was a guest breakpoint (0x80000003, +0x2474606). No playable scene verified. These runs support the queue change on this route; they do not establish stability. |
52913f5 to
8142658
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
8142658 to
6ef3b4a
Compare
|
Two contributors checked independently and found that #1790 solves the same problem in a different way: #1607, group D59. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
RDNA2 test report for #1599 at Tested
Regression run
Not tested
AI use
|
The newer factory's CreateQueue (slot 10) takes a 0x20-byte desc whose u64 @0x18 is the queue's DSTORAGE_QUEUE_OPTIONS; a new retail game sets bit 0, AutoSubmitDisabled. XCL ignored it, and a half-full queue still submitted by itself. The title writes a request's destination page list after EnqueueRequest and before its own Submit, so a request that the half-full submit sent to the worker could run before its list was written, with the pages of the slot's previous request. Such a queue now runs its requests only at Submit, and an enqueue into it at capacity waits until Submit, a cancel or Close takes entries, as the console's queue stalls one. Queues made without the option, or through the first CreateQueue, submit when half full as before. Other option bits are logged once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6ef3b4a to
5b1518f
Compare
|
NVIDIA test report for
AI-assisted (Claude Code). Synthetic tests only; no title run. |
|
I compared
Both runs stopped showing new frames about 60 seconds into the matched window. Both late captures were black, and both 300-second runs exited cleanly with no reported GPU removal. The candidate run had zero reported storage failures, but I saw no improvement in visible loading progress. I ran the baseline first. The candidate reached Confirm about 16 seconds earlier after launch, and the runs shared the NVIDIA driver cache. With one run per build and different request totals, I can’t attribute the difference in failure counts to the patch alone. I used Codex with GPT-6.2 Sol to run the comparison. A separate GPT-6.2 Sol agent verified the matched intervals, counts, capture measurements, and exit results. GPT-6.1 Terra checked for overlap with existing upstream reports. |
Apply the exact staged Run 16 delta from upstream PR xcl-dev#1599 on top of the pinned dispatch-splitting integration, retaining the nine failure-stage counters.
The newer factory's
CreateQueue(slot 10) takes a 0x20-byte desc whose u64 at 0x18 is the queue'sDSTORAGE_QUEUE_OPTIONS. A new retail game creates its queues with bit 0 set,AutoSubmitDisabled, and XCL ignored it: a half-full queue still submitted by itself. The title writes a request's destination page list afterEnqueueRequestand before its ownSubmit(#1405), so a request the half-full submit sent to the worker could run before its list was written. A queue made with the option now runs its requests atSubmitonly, and an enqueue into it at capacity waits untilSubmit, a cancel orClosetakes entries, as the console's queue stalls one; queues made without it, or through the firstCreateQueue, are unchanged. Follows the race @certified-retart pointed out on #1405.What is in it
crates/xcl/src/hle/dstorage.rs:factory_create_queue1reads the options and passesAutoSubmitDisabledon;QueueInner::auto_submitgates the half-full submit inenqueueandenqueue_numbered; other option bits are logged once.QueueInner::wait_for_roomholds an enqueue into such a queue while it hascapacityentries, on a condition variable thatSubmit,CancelRequestsWithTagandClosesignal (Closelets a held enqueue go into the closed queue). A queue's entries leave it atSubmit, so a held enqueue goes on as soon as the title submits.a_queue_with_auto_submit_disabled_waits_for_submit: a capacity-4 memory queue made with the option leaves two requests unrun for 300 ms and runs them atSubmit; the same queue without the option runs them by itself. It fails without the change.a_full_queue_with_auto_submit_disabled_holds_an_enqueue_until_submit: a capacity-2 queue with the option holds a third enqueue on another thread untilSubmit(then all three run), and a held enqueue goes on atClose. It fails without the stall.Tested
NVIDIA GeForce RTX 4070 12 GB (32-lane waves), AMD Ryzen 5 5600X, 32 GB RAM, Windows 11 25H2 (build 26200), Rust 1.94.1 MSVC, DXC 1.9.2602.17. Debug for the tests, release for the runs.
cargo test --workspace -- --test-threads=4at5b1518f(rebased ontomain3da2abb): 1113 passed, 0 failed, 46 ignored (20 test binaries). SKIPPED (25): 20 GPU subtests that need wave64 (gpu::recomp::lower/lower_dxilprogram families,gpu_wave32_program_in_wave64_hardware,gpu_geometry_wave32_prefix_count_over_a_mask), 3 wave32 per-lane f16 subtests oflower_dxil::tests(refused: unsupported f16 instructions),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(Windows Developer Mode is off).Each new test without its part of the change: fails (the half-full queue runs its requests before
Submit; the third enqueue returns at once). Checked before the rebase; the change itself is the same.The new retail game, a 400 s scripted world-load run on a local branch (not this PR's tree:
mainplus other open PRs, among them DirectStorage: read a physical-page list again when its request runs #1405), with a temporary counter that is not part of this PR: the title calledSubmititself (1 024 times by 51 s), and its queues reached the half-full point 1 599 times by 34 s, each of which the old code turned into a submit before the title's own. Loading went on as before; the run stopped later on first-time compute pipeline builds in the driver ([OFFICIAL] Looking for PRs with shaders optimization #1269), not on DirectStorage.An independent run by @crosettiremi on an RX 7900 XT (comment below;
main9e3831ewith other PRs, one cold-cache run per build): in the common 60–140 s interval 109 failed DirectStorage requests in 82 108 without this change, 0 in 87 724 with it. Their measurement, quoted here, not ours.Regression run
The same title for 100 s on each build,
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, warm shader caches. The PR's log shows the title's queue made withAutoSubmitDisabled(options 0x1) at 4.0 s, so the changed path is reached.main:
This PR:
Not tested
main: the title stops with a GPU hang at about 113 s on both builds, unrelated to this change, so the regression runs cover the start (queue creation, the first 9 766 DirectStorage requests) but not the long world-load phase measured above.Query's "requests until the automatic submit" for such a queue; it is computed as before.Submitwhen a page list is still 0 at enqueue: with this change the title's queues do not submit when half full at all, so DirectStorage: a late page array holds a half-full queue until Submit #549's hold would only apply to queues made without the option.AI use
🤖 Generated with Claude Code