DirectStorage: wake waiters from ordered completion events (#1833) #2559
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2569"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by razormontana on 2026-11-25T23:17:28Z.
Part of #1833. A title using
IDStorageQueueX1::EnqueueSetEventcan wait for a group of DirectStorage reads to finish. XCL's X1 queue now signals that event in submission order after the earlier reads retire. Microsoft GDK method referenceWhat is in it
hle/dstorage.rs. A queue entry owns a duplicate event handle and uses the existing submission and retirement path. The half-capacity submission trigger counts the marker. Close discards a pending marker and releases its handle.README.md.Tested
cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputone499bfcreported 1426 passes, 0 failures, and 46 ignored. There were 26 explicit runner skips within the pass count.cargo test --offline --locked -p xcl --lib hle::dstorage:: -- --test-threads=1 --nocapturepassed 34/0/0 without skips in both the default andXCL_DSTORAGE_PARALLEL_DECOMPRESS=1runs. Both event-wakeup tests timed out on the baseline X1 vtable stub.cargo build --offline --locked --release -p xclsucceeded.scripts/smoke.ps1ran the same title offline for 60 seconds per arm with direct DXIL and matching cache seeds.Regression run
Main
PR head
Not tested
AI use
Yes, Codex GPT-6.2 Sol implemented and independently reviewed the patch, ran the tests, and prepared this description.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T23:28:46Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-26T00:01:59Z.
Test run on exact head
e499bfc(e499bfcabacc8dd57acb7d517a612648f157a5eb, on its basee1d84b7), clean tree.Tested
cargo test --workspace -- --test-threads=4: 1426 passed, 0 failed, 46 ignoredV_MUL_F16/V_PK_MUL_F16/V_CVT_F16_F32(onmaintoo)cargo test -p xcl --lib completion_event: 3 passed, 0 failedcompletion_event_auto_submits_a_half_full_sequential_queue: okcompletion_event_waits_for_parallel_retirement_and_keeps_its_handle: okcompletion_event_close_discards_the_pending_marker: okRegression run (60 s, default settings, a retail title)
main:
this PR:
No crash or device removal; frames 105 % of
main's, peak commit 100 %. Themainrun is on currentmain(08db802), newer than this PR's base.Not tested
main(tested on its own base; it merges into08db802without conflicts)AI use
Imported from ivall/xcl. Originally posted by ramon-victor on 2026-11-26T00:09:24Z.
Independent NVIDIA (wave32) full-suite + retail smoke test report on exact PR head
e499bfcabacc8dd57acb7d517a612648f157a5eb(clean detached checkout, no local changes).Tested
x86_64-pc-windows-msvc), DXC/DXIL 1.8.2502.11 (Windows SDK 10.0.26100.0); debug tests, release smoke.cargo test -p xcl --lib completion_event): 3 passed, 0 failed (completion_event_close_discards_the_pending_marker,completion_event_auto_submits_a_half_full_sequential_queue,completion_event_waits_for_parallel_retirement_and_keeps_its_handle)..\scripts\test.ps1): 1426 passed, 0 failed, 46 ignored (25 GPU skips expected on this wave32 adapter: 21no wave64, 1no heap windows, 3 wave32 per-lane refused for#1426f16/f32 semantics).cargo build --release -p xcl) and 60 s retail smoke run (XCL_NETWORK=0, compared againstmain @ 08db802baseline on the same machine today:1605frames,15009 MBpeak commit,0crashes,0device removals):Regression run
Not tested
XCL_SAMPLE_*tests (unset).AI use
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T01:58:14Z.
Independent desktop NVIDIA verification of PR #2569 at head
e499bfcabacc8dd57acb7d517a612648f157a5eb(1commit; exact parent & merge-base:e1d84b7d9153f86a97d2ec5d209d196046fc0bea, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
e499bfca)cargo test --release -p xcl --lib completion_event_auto_submits_a_half_full_sequential_queue -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1326 filtered out× 3 (0.02s× 3,0skipped)cargo test --release -p xcl --lib completion_event_waits_for_parallel_retirement_and_keeps_its_handle -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1326 filtered out× 3 (0.02s× 3,0skipped)cargo test --release -p xcl --lib completion_event_close_discards_the_pending_marker -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1326 filtered out× 3 (0.00s× 3,0skipped)cargo test --release -p xcl --lib hle::dstorage:: -- --test-threads=1(3 consecutive runs)34 passed; 0 failed; 0 ignored; 1293 filtered out× 3 (0.11s,0.12s,0.12s,0skipped)cargo build --release -p xcl1m 07s, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
e1d84b7d9153f86a97d2ec5d209d196046fc0bea, cached baseline on the same machine):PR #2569 (
e499bfcabacc8dd57acb7d517a612648f157a5eb):Runtime log observations (
xcl.log)9222log lines,0[ERROR]/ device-removal / panic lines.19480 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14017 MB committed by the process; video memory 6115 MB local, 4683 MB non-local.Limits of coverage
EnqueueSetEventauto-submit, parallel-retirement waiting with handle retention, and close-time marker discard were verified directly via all 3 new DirectStorage unit tests (3/3each) andhle::dstorage::(34/34× 3).title: 29640639confirms zero runtime regression in DirectStorage streaming (frame-count and commit deltas vs. cached parent reflect single-run startup variance, not this PR); titles specifically depending onEnqueueSetEventwaits were not tested live.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T08:39:25Z.
merge-check
base:
e429936c10(main)head:
e499bfcabamerge: clean, zero file delta; the trial merge's index equals current
main(git diff --cached --quietsucceeded).verdict: not yet
I stopped before build and GPU tests because main commit
21e225e4, merged through #2959, already contains the orderedEnqueueSetEventimplementation, documentation and three tests. That commit explicitly credits #2569. This open PR now adds no changes to the current main tree, so another merge test would only retest main. The author or maintainer can decide whether to close it as superseded. I am releasing the check slot.No new build, GPU run or title run was performed for this zero-delta merge. AI use: Codex (GPT-6.2 Sol) performed and checked the trial merge; Codex (GPT-6.2 Astra) independently traced the merged source.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:26:52Z.
merge-check claim
head:
e499bfcabaImported from ivall/xcl. Originally posted by throny on 2026-11-28T14:40:15Z.
merge-check
base:
b937fbabhead:
e499bfcabamerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2140 passed, 1 failed, 48 ignored: exactly the base's result, because the merge changes nothing (26 SKIPPED lines). The one failure is gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions, which main itself has at
b937fbab(#3093); base alone: 2140 passed, 1 failed, 48 ignored.review: the whole change is already on main: commit
21e225e4(same subject) is an ancestor ofb937fbab, the PR's diff has the same stable patch id and reverses cleanly on all three files, and a trial merge of this head into main changes no file.performance: nothing to add on main.
verdict: not yet: nothing to merge; already in main through
21e225e4, so this PR can be closed.hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Pull request closed