agc_driver_wait_attribution_trace variants fail intermittently on NVIDIA Windows under ctest --parallel 4 #28231

Closed
opened 2026-11-29 10:36:48 +00:00 by hamdanpor-ctrl · 0 comments
hamdanpor-ctrl commented 2026-11-29 10:36:48 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hamdanpor-ctrl on 2026-11-29T10:36:48Z.


What happens

agc_driver_wait_attribution_trace and agc_driver_wait_attribution_trace_draw_pipeline sometimes fail on an NVIDIA RTX 3050 Laptop on Windows when the GPU set runs with ctest --parallel 4:

dispatch drain attempt 0: queue 0 took no drain; 1 items were queued at the release
queue 0 neither drained for a queued item nor queued its dispatch submission behind it

The check is DispatchDrainAttempt in core/libs/prx/libSceAgcDriver/tests/execution/WaitAttributionTrace.cpp (line 214 on main 9f02806678). The test does three things:

  1. It enqueues a spinning item on queue 0 and submits a graphics dispatch.
  2. It waits up to 1 s for DrawPipeline::Queue0().DrainWaits() to change.
  3. If no drain happened, it requires Outstanding() >= 2.

In the failing runs, neither happened within the 1 s window: only the spinning item was queued.

How often

There are 6 full GPU runs on this machine, on the same main 9f02806678 tree: main itself, plus 5 runs with unrelated PRs applied (#27859, #27862, #27831, #28150, #28132). Each run executes all three variants once.

Run wait_attribution_trace _draw_pipeline _plan_verify
main Failed Passed Passed
+ #27859 Passed Passed Passed
+ #27862 Passed Passed Passed
+ #27831 Passed Passed Passed
+ #28150 Passed Passed Passed
+ #28132 Passed Failed Passed

So 2 of 18 runs failed, and one variant failed in 2 of the 6 full runs. Both failures print the same two lines and take about 3.5 s. None of those PRs touch the draw pipeline queue.

Guess

Under load from the other three parallel tests, the submission may not reach queue 0 within the 1 s window, so the test sees one outstanding item and no drain. If that is right, the test could keep waiting until either a drain or a second outstanding item appears, instead of stopping at a fixed 1 s. I have not confirmed this.

Setup

  • GPU: NVIDIA GeForce RTX 3050 Laptop GPU, driver 617.42
  • OS: Windows 11 Pro 10.0.26300
  • CPU: Intel Core i7-12700H
  • Build: WinLibs GCC 15.2.0 r7 UCRT, Release, all AGC execution tests built
  • Environment: ANYPS5_GPU=NVIDIA, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Vulkan SDK 1.4.363.0)
  • Command: ctest --test-dir build -V --parallel 4 --timeout 120 -R "^agc_|^request_serializer|shader|^windows_write_watch"

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6677699230 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/28231). Originally posted by [hamdanpor-ctrl](https://github.com/hamdanpor-ctrl) on 2026-11-29T10:36:48Z. --- ### What happens `agc_driver_wait_attribution_trace` and `agc_driver_wait_attribution_trace_draw_pipeline` sometimes fail on an NVIDIA RTX 3050 Laptop on Windows when the GPU set runs with `ctest --parallel 4`: ```text dispatch drain attempt 0: queue 0 took no drain; 1 items were queued at the release queue 0 neither drained for a queued item nor queued its dispatch submission behind it ``` The check is `DispatchDrainAttempt` in `core/libs/prx/libSceAgcDriver/tests/execution/WaitAttributionTrace.cpp` (line 214 on `main` 9f02806678). The test does three things: 1. It enqueues a spinning item on queue 0 and submits a graphics dispatch. 2. It waits up to 1 s for `DrawPipeline::Queue0().DrainWaits()` to change. 3. If no drain happened, it requires `Outstanding() >= 2`. In the failing runs, neither happened within the 1 s window: only the spinning item was queued. ### How often There are 6 full GPU runs on this machine, on the same `main` 9f02806678 tree: `main` itself, plus 5 runs with unrelated PRs applied (#27859, #27862, #27831, #28150, #28132). Each run executes all three variants once. | Run | `wait_attribution_trace` | `_draw_pipeline` | `_plan_verify` | |---|---|---|---| | `main` | Failed | Passed | Passed | | + #27859 | Passed | Passed | Passed | | + #27862 | Passed | Passed | Passed | | + #27831 | Passed | Passed | Passed | | + #28150 | Passed | Passed | Passed | | + #28132 | Passed | Failed | Passed | So 2 of 18 runs failed, and one variant failed in 2 of the 6 full runs. Both failures print the same two lines and take about 3.5 s. None of those PRs touch the draw pipeline queue. ### Guess Under load from the other three parallel tests, the submission may not reach queue 0 within the 1 s window, so the test sees one outstanding item and no drain. If that is right, the test could keep waiting until either a drain or a second outstanding item appears, instead of stopping at a fixed 1 s. I have not confirmed this. ### Setup - GPU: NVIDIA GeForce RTX 3050 Laptop GPU, driver 617.42 - OS: Windows 11 Pro 10.0.26300 - CPU: Intel Core i7-12700H - Build: WinLibs GCC 15.2.0 r7 UCRT, Release, all AGC execution tests built - Environment: `ANYPS5_GPU=NVIDIA`, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (Vulkan SDK 1.4.363.0) - Command: `ctest --test-dir build -V --parallel 4 --timeout 120 -R "^agc_|^request_serializer|shader|^windows_write_watch"` AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#28231
No description provided.