tests: handle serialized queues in the slot 148 acceptance client #2373
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2381"
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 R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T14:29:42Z.
Refs #2210
What
The slot 148 acceptance client now detects adapters whose queues are serialized. On those it skips only the held-phase observer reads, says so in its output, and still runs every other check. It also always opens its gate and drains both queues before it returns.
startup_slot148_acceptance_serialized{,_nodebug}_{warp,hardware}force that path withX2W_TEST_FORCE_SERIALIZED_QUEUES=1, so it is tested on adapters whose queues do make progress.The change is test-only. Nothing in
src/changes.Why
Jess-Doit reported a failure on Windows 10 build 19045, in-box WARP 10.0.19041,
mainb7707495:startup_slot148_acceptance_nodebug_warpwaited the full 10 s and exited 18 in 4 of 4 runs.In the held phase, the observer queue reads A and B while the console queue waits on an unsignalled gate. If the adapter does not let the observer queue progress during that wait, the read cannot finish until the gate opens, so the client times out.
Measured here: I have no Windows 10 machine. I simulated serialized queues locally (method under Results): while a console gate is closed, every other desktop queue first waits on that gate before it executes. Under that simulation, the client from
mainexits 18 after about 10 s, which reproduces the report.Still a hypothesis: that Windows 10 WARP 10.0.19041 without the debug layer behaves this way.
Changes
preflight: the observer queue finished a read while the console queue waited on an unsignalled fencepreflight: the observer queue made no progress ...queues serialized: held-phase checks not applicable.fresh,allocatorandoverwrite. Each skipped step saysqueues serialized: held-phase observer read not applicable.reuse,foreignandarguments, which do not hold a queue;slot 148 acceptance passed with skips: held-phase observer reads in fresh, allocator and overwrite (queues serialized); every other check ran.the observer read did not finish within 10000 ms while the gate was closed.serializedvariants usePASS_REGULAR_EXPRESSION "slot 148 acceptance passed with skips: held-phase observer reads"; that line is printed only on exit 0.Results
Commit
8cfefa98onmainatff06794b, Release preset.ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -Vgives 20 of 20 passed, 0 skipped:startup_slot148_acceptance_*(debug on)startup_slot148_acceptance_nodebug_*startup_slot148_acceptance_serialized_*(debug on)startup_slot148_acceptance_serialized_nodebug_*startup_list_resubmit_*(4 per adapter)startup_upload_arena_*,startup_upload_lifetime_*Every acceptance run reported 0 debug-layer errors and the device not removed.
Serialized-queue simulation (local harness, not in this PR). The harness builds the client unchanged and patches two things:
ID3D12CommandQueue::ExecuteCommandLists, so that any non-console queue first Waits on a recorded gate that is still closed.mainmainmainDXGI_ERROR_DEVICE_HUNG(0x887a0006)made no progress;queues serialized; passed with skips; 0 debug errorsNotes on the simulation:
mainwas not rerun on hardware, to avoid another GPU hang.python -B tests/docs_links_check.py,python -B tests/bidi_controls_check.pyandgit diff ff06794b HEAD --checkpass.Commands
Environment
1002:7550), driver 32.0.31044.16.X2W_D3D12_DEBUG=1, and off withX2W_D3D12_DEBUG=0.Skips
None in these runs. The
serializedvariants pass with the held-phase observer reads skipped by design, and their output lists those reads.Requested rerun (Windows 10, WARP 10.0.19041)
@Jess-Doit, could you rerun this on the Windows 10 machine?
Expected, if the serialized-queue hypothesis holds:
startup_slot148_acceptance_nodebug_warppasses. Its output contains:preflight: the observer queue made no progress while the console queue waited on an unsignalled fencequeues serialized: held-phase checks not applicable... queues serialized: held-phase observer read not applicablelinesslot 148 acceptance passed with skips: held-phase observer reads in fresh, allocator and overwrite (queues serialized); every other check ran.startup_slot148_acceptance_warp(debug on) and the hardware variants pass. Each probably reportspreflight: the observer queue finished a read ...and ends withslot 148 acceptance passed.serializedvariants pass with the skips listed.If the nodebug WARP test still fails, please post the preflight line and the last ten lines of output. If the preflight reports progress and the test then exits 18 with
the observer read did not finish within 10000 ms, the hypothesis is wrong for that WARP and the cause lies elsewhere.Not covered
unified_buffer_paths_*was not run.🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T14:41:24Z.
I verified the eight Release variants on WARP and RTX 4060 Laptop. I also tightened the observer preflight: a fence timeout may take the serialized path only if the observer subsequently drains and reads the correct sentinel. Setup, wait and readback errors remain failures. In a temporary control build, I put a real fence wait on the observer queue. It stayed pending, drained after release and took the serialized path. Injecting an observer error instead failed the check. Both controls used source-built inputs. The original Windows 10 report still needs a rerun on that OS.