test(agc): keep queued_index_read_order's image results pending past the idle store #10750

Merged
EagleBearerYS merged 6 commits from upstream-pr/10750 into main 2026-11-02 10:24:09 +00:00
EagleBearerYS commented 2026-10-24 20:54:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-24T20:54:09Z.


What

agc_driver_queued_index_read_order (from #6914) fails on main on most runs on GitHub's Linux runner (lavapipe), at its setup check: "the image write left no pending result to order against". That check guards the order the test is for, so on those runs the order check never runs.

Why. Queue 0's worker stores every pending storage-image result once the queues have been idle for 50 ms (StoreIdleResults, from QueueWorker.cpp). The test submits an image write, calls AgcDriverWaitIdle, and expects the result to be still pending. Since #7233, Driver::WaitIdle also syncs the recorder and waits for the device under the GPU mutex. On lavapipe that outlasts the 50 ms, and the idle store flushes the result as soon as WaitIdle returns.

  • Neither change is wrong on its own. #7233's wait is what it set out to add, and the order #6914 tests still holds. What broke is the test's assumption that nothing stores the result between WaitIdle and its check.
  • Under a parallel ^agc run, the store can instead land after the setup check but before the draw holds its read. The test then fails at "the queued draw's commit stored the image's results over its index buffer", although the commit never stored them. The idle store goes through FlushPending, which stores nothing while a queued draw holds a read (DrawPipeline::HeldReads).

What it does.

  1. APS5_NO_IDLE_STORE=1 turns the idle store off (f9b5cc27e1). The default is unchanged. It is documented in docs/dev/ENVIRONMENT.md.
  2. The test sets it (d57418e1b2), as CopiedWriterLabelOrder sets APS5_NO_OPPORTUNISTIC_REAP, so only the queued draw's held read decides when the image's results are stored. The idle store keeps its own tests (agc_idle_publish_wait, agc_driver_store_idle_results_wake).
  3. With the switch, queue 0 still waits for work (433e43e8d1, after oneandonlydean's review). With the idle store off, the retry after the idle check saw pending results on every pass, so an idle queue 0 with results pending went round its loop instead of waiting, unlocking and relocking the driver mutex until another submission came. That retry now applies only when the idle store is on. The retry on an idle epoch change and the wait's wakes, on a submission, an epoch change or a completion, are unchanged. docs/dev/ENVIRONMENT.md says queue 0 still waits.
  4. Its test (5f0c5f0bab): agc_driver_store_idle_results_disabled runs the idle store fixture with APS5_NO_IDLE_STORE=1. With a result pending and every queue idle, queue 0 must wait within 2 s, and 200 ms later the result must still be pending and not in guest memory. A second dispatch, to another texture, must then run, so its result is pending within 10 s, and queue 0 must wait again within 2 s.

A switch, rather than a change to the idle store: the idle store is run-time behaviour with its own tests, and its 50 ms timer is the one thing in this test it can't control. Lengthening or gating the timer to fit one test would change when every title's pending results are stored.

Tested

  • Where it broke (GitHub's Linux runner, lavapipe): passes 5 runs in a row at #6914's merge 3efab5ed86 (run) and at #7233's parent 8b3a6ba88d (run); fails its first run at #7233's merge 3ca07d086d, with the setup message (run).

  • main without this PR, Linux: the test failed on its first run, at the setup check, in 4 of 5 runs:

    main 2fade7ef4e passed its first run (run, the "before" arm), so the failure depends on timing and isn't certain.

  • This head (the same trees as d57418e1b2, on main 2fade7ef4e; run): agc_driver_queued_index_read_order, agc_idle_publish_wait and agc_driver_store_idle_results_wake, 20 runs in a row.

    • Linux: all 3 pass, none skipped or failed.
    • Windows: all 3 skip (the runner has no Vulkan device), none failed.
    • The libc and libkernel suites pass on both.
  • Validation comparison (CONTRIBUTING's AGC rule, d57418e1b2, VK_LAYER_KHRONOS_validation on both arms, ANYPS5_NO_SHADER_CACHE=1; run): the same 3 tests on Linux (llvmpipe, Mesa 25.2.8, Ubuntu 24.04.5), all pass on both arms. The layer loaded 5 times in each. The only VUID is VUID-VkDeviceCreateInfo-pNext-pNext, on both arms; this PR adds none.

  • A parallel ^agc run with this head (run):

    • Linux: 987 run, 923 pass, 64 skip, 0 fail. This is the load under which the test failed at its order check before.
    • Windows: 1,015 run, 285 pass, 726 skip, 4 fail: agc_driver_pipelined_metadata_pass, agc_driver_pipelined_metadata_pass_draw_pipeline, agc_submit_progress and agc_submit_progress_no_timeline. The same 4 fail in an ^agc run on that runner without this change (run).
  • 5f0c5f0bab, red/green against d57418e1b2 (the switch without the wait fix) on GitHub's runners (run): the three tests above, agc_driver_store_idle_results_disabled and ^agc_driver_queue_zero (agc_driver_queue_zero_idle_wait, agc_driver_queue_zero_late_interrupt).

    • Linux: with d57418e1b2's implementation, agc_driver_store_idle_results_disabled fails with "with APS5_NO_IDLE_STORE queue 0 kept polling over pending storage results with every queue idle instead of waiting". With this head all 6 pass 20 runs in a row, none skipped or failed.
    • Windows: all 6 skip (the runner has no Vulkan device), none failed.
    • The libc and libkernel suites pass on both (143 and 205 tests on Linux, 170 and 221 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Validation comparison at 5f0c5f0bab (run), main 2fade7ef4e against this head, the same 6 tests once on Linux (llvmpipe), with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1. main's tree ran the 5 it has, and agc_driver_queued_index_read_order failed there at its setup check, the failure this PR is for; this head ran all 6, and they pass. The layer was inserted 8 times on main and 10 with this PR, neither log has was not found but was requested, and both report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.

  • Real AMD hardware, by @tablefrogpillow (comment): Linux, RADV (Mesa 25.2.8), kernel 6.8, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, the merge-base 2fade7ef4 against d57418e1b, 25 standalone runs each. agc_driver_queued_index_read_order passes 25 of 25 on both trees on an RX 7900 GRE (RDNA3), a Ryzen 7 7800X3D's integrated GPU (RDNA2) and an RX Vega 56 (GCN5). So on that hardware main's setup check holds, and the failure is lavapipe's timing, as they say. These are standalone runs; the parallel ^agc case wasn't run there.

  • 519e411d96, a merge of main 63a863d3b0 (run). main's #9965 made queue-0 DMA_DATA pipelining the default and removed APS5_PIPELINE_DMA, including from this test's setup; the merge keeps that and this PR's APS5_NO_IDLE_STORE there, so the test no longer sets the removed variable. The PR's own lines are unchanged. agc_driver_queued_index_read_order, agc_driver_store_idle_results_disabled, agc_driver_store_idle_results_wake, agc_idle_publish_wait and the agc_driver_queue_zero tests pass 10 runs in a row. Linux: 6 run, 6 pass, 0 skip, 0 fail; the before arm fails agc_driver_store_idle_results_disabled and agc_driver_queued_index_read_order. Windows: 6 run, 0 pass, 6 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • NVIDIA GeForce RTX 5070 Ti (610.88), Windows 11 Pro, by @SeaSunPT (comment): Intel Core i5-14600K, WinLibs GCC 15.2.0 r7, Release, this PR's head 519e411d9 merged onto main 5a2744c55 and compared with that main, with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation (SDK 1.4.363.0). With this PR, agc_driver_queue_zero_idle_wait, agc_driver_queue_zero_late_interrupt, agc_driver_queued_index_read_order, agc_driver_store_idle_results, agc_driver_store_idle_results_disabled, agc_driver_store_idle_results_wake and agc_idle_publish_wait pass 5 runs of 5, none skipped; on main the six that exist there pass 3 runs of 3, and agc_driver_queued_index_read_order did not hit its setup failure on this GPU. No VUID- line in any log. A full ctest -j 8 passes 2380 of 2382; the two failures, agc_host_import_cut_lifetime (#10746) and agc_driver_depth_plane_partial_store (#10664), fail on main on that machine too.

  • 314eff1117, a merge of main 0836dfdf4f (run). #12862 moved libSceAgcDriver's test registrations into tests/cmake/; the conflict in CMakeLists.txt is resolved with tools/agc_test_split.py resolve, which moves this PR's registration into tests/cmake/agc_driver_store_idle_results_tests.cmake (+5 lines). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With -DBUILD_TESTING=ON, ctest -N gives 3076 tests: main's 3075 plus agc_driver_store_idle_results_disabled, each listed once. The 6 tests of this PR's verify set pass 10 runs in a row. Linux: 6 run, 6 pass, 0 skip, 0 fail. Windows: 6 run, 0 pass, 6 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

Checklist

  • Based on current main; no other open PR implements the same functions (#10676 changes casts in the same test file, on other lines)
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Mesa lavapipe (llvmpipe, LLVM 20.1.2), Ubuntu 24.04, on GitHub's runner; Windows build and tests on GitHub's runner, where the test skips (no Vulkan device); AMD Radeon RX 7900 GRE, Ryzen 7 7800X3D integrated GPU and RX Vega 56 (RADV, Mesa 25.2.8), Linux, in tablefrogpillow's runs; NVIDIA GeForce RTX 5070 Ti (610.88), Windows 11 (SeaSunPT)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4999075946 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10750). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-24T20:54:09Z. --- ### What `agc_driver_queued_index_read_order` (from #6914) fails on `main` on most runs on GitHub's Linux runner (lavapipe), at its setup check: "the image write left no pending result to order against". That check guards the order the test is for, so on those runs the order check never runs. **Why.** Queue 0's worker stores every pending storage-image result once the queues have been idle for 50 ms (`StoreIdleResults`, from `QueueWorker.cpp`). The test submits an image write, calls `AgcDriverWaitIdle`, and expects the result to be still pending. Since #7233, `Driver::WaitIdle` also syncs the recorder and waits for the device under the GPU mutex. On lavapipe that outlasts the 50 ms, and the idle store flushes the result as soon as `WaitIdle` returns. - Neither change is wrong on its own. #7233's wait is what it set out to add, and the order #6914 tests still holds. What broke is the test's assumption that nothing stores the result between `WaitIdle` and its check. - Under a parallel `^agc` run, the store can instead land after the setup check but before the draw holds its read. The test then fails at "the queued draw's commit stored the image's results over its index buffer", although the commit never stored them. The idle store goes through `FlushPending`, which stores nothing while a queued draw holds a read (`DrawPipeline::HeldReads`). **What it does.** 1. `APS5_NO_IDLE_STORE=1` turns the idle store off (f9b5cc27e1). The default is unchanged. It is documented in `docs/dev/ENVIRONMENT.md`. 2. The test sets it (d57418e1b2), as `CopiedWriterLabelOrder` sets `APS5_NO_OPPORTUNISTIC_REAP`, so only the queued draw's held read decides when the image's results are stored. The idle store keeps its own tests (`agc_idle_publish_wait`, `agc_driver_store_idle_results_wake`). 3. **With the switch, queue 0 still waits for work** (433e43e8d1, after [oneandonlydean's review](https://github.com/boykopovar/AnyPS5/pull/10750#issuecomment-6389553195)). With the idle store off, the retry after the idle check saw pending results on every pass, so an idle queue 0 with results pending went round its loop instead of waiting, unlocking and relocking the driver mutex until another submission came. That retry now applies only when the idle store is on. The retry on an idle epoch change and the wait's wakes, on a submission, an epoch change or a completion, are unchanged. `docs/dev/ENVIRONMENT.md` says queue 0 still waits. 4. **Its test** (5f0c5f0bab): `agc_driver_store_idle_results_disabled` runs the idle store fixture with `APS5_NO_IDLE_STORE=1`. With a result pending and every queue idle, queue 0 must wait within 2 s, and 200 ms later the result must still be pending and not in guest memory. A second dispatch, to another texture, must then run, so its result is pending within 10 s, and queue 0 must wait again within 2 s. A switch, rather than a change to the idle store: the idle store is run-time behaviour with its own tests, and its 50 ms timer is the one thing in this test it can't control. Lengthening or gating the timer to fit one test would change when every title's pending results are stored. ### Tested - **Where it broke** (GitHub's Linux runner, lavapipe): passes 5 runs in a row at #6914's merge 3efab5ed86 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40118610794)) and at #7233's parent 8b3a6ba88d ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40120201837)); fails its first run at #7233's merge 3ca07d086d, with the setup message ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40120280359)). - **`main` without this PR, Linux:** the test failed on its first run, at the setup check, in 4 of 5 runs: - on `main` 137a8fab89 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40114358275)) and c9b2660d56 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)); - on #9533 merged with `main`, the test alone ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40114331504)); - at #7233's merge 3ca07d086d (above). `main` 2fade7ef4e passed its first run ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40122649953), the "before" arm), so the failure depends on timing and isn't certain. - **This head** (the same trees as d57418e1b2, on `main` 2fade7ef4e; [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40122649953)): `agc_driver_queued_index_read_order`, `agc_idle_publish_wait` and `agc_driver_store_idle_results_wake`, 20 runs in a row. - Linux: all 3 pass, none skipped or failed. - Windows: all 3 skip (the runner has no Vulkan device), none failed. - The libc and libkernel suites pass on both. - **Validation comparison** (CONTRIBUTING's AGC rule, d57418e1b2, `VK_LAYER_KHRONOS_validation` on both arms, `ANYPS5_NO_SHADER_CACHE=1`; [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40128794977)): the same 3 tests on Linux (llvmpipe, Mesa 25.2.8, Ubuntu 24.04.5), all pass on both arms. The layer loaded 5 times in each. The only VUID is `VUID-VkDeviceCreateInfo-pNext-pNext`, on both arms; this PR adds none. - **A parallel `^agc` run with this head** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40122745359)): - Linux: 987 run, 923 pass, 64 skip, 0 fail. This is the load under which the test failed at its order check before. - Windows: 1,015 run, 285 pass, 726 skip, 4 fail: `agc_driver_pipelined_metadata_pass`, `agc_driver_pipelined_metadata_pass_draw_pipeline`, `agc_submit_progress` and `agc_submit_progress_no_timeline`. The same 4 fail in an `^agc` run on that runner without this change ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40108950772)). - **5f0c5f0bab, red/green against d57418e1b2** (the switch without the wait fix) on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40140341086)): the three tests above, `agc_driver_store_idle_results_disabled` and `^agc_driver_queue_zero` (`agc_driver_queue_zero_idle_wait`, `agc_driver_queue_zero_late_interrupt`). - Linux: with d57418e1b2's implementation, `agc_driver_store_idle_results_disabled` fails with "with APS5_NO_IDLE_STORE queue 0 kept polling over pending storage results with every queue idle instead of waiting". With this head all 6 pass 20 runs in a row, none skipped or failed. - Windows: all 6 skip (the runner has no Vulkan device), none failed. - The libc and libkernel suites pass on both (143 and 205 tests on Linux, 170 and 221 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation comparison at 5f0c5f0bab** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40140400195)), `main` 2fade7ef4e against this head, the same 6 tests once on Linux (llvmpipe), with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`. `main`'s tree ran the 5 it has, and `agc_driver_queued_index_read_order` failed there at its setup check, the failure this PR is for; this head ran all 6, and they pass. The layer was inserted 8 times on `main` and 10 with this PR, neither log has `was not found but was requested`, and both report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Real AMD hardware, by @tablefrogpillow** ([comment](https://github.com/boykopovar/AnyPS5/pull/10750#issuecomment-6389849766)): Linux, RADV (Mesa 25.2.8), kernel 6.8, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, the merge-base 2fade7ef4 against d57418e1b, 25 standalone runs each. `agc_driver_queued_index_read_order` passes 25 of 25 on both trees on an RX 7900 GRE (RDNA3), a Ryzen 7 7800X3D's integrated GPU (RDNA2) and an RX Vega 56 (GCN5). So on that hardware `main`'s setup check holds, and the failure is lavapipe's timing, as they say. These are standalone runs; the parallel `^agc` case wasn't run there. - **519e411d96, a merge of `main` 63a863d3b0** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40184497220)). `main`'s #9965 made queue-0 `DMA_DATA` pipelining the default and removed `APS5_PIPELINE_DMA`, including from this test's setup; the merge keeps that and this PR's `APS5_NO_IDLE_STORE` there, so the test no longer sets the removed variable. The PR's own lines are unchanged. `agc_driver_queued_index_read_order`, `agc_driver_store_idle_results_disabled`, `agc_driver_store_idle_results_wake`, `agc_idle_publish_wait` and the `agc_driver_queue_zero` tests pass 10 runs in a row. Linux: 6 run, 6 pass, 0 skip, 0 fail; the before arm fails `agc_driver_store_idle_results_disabled` and `agc_driver_queued_index_read_order`. Windows: 6 run, 0 pass, 6 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **NVIDIA GeForce RTX 5070 Ti (610.88), Windows 11 Pro, by @SeaSunPT** ([comment](https://github.com/boykopovar/AnyPS5/pull/10750#issuecomment-6403639567)): Intel Core i5-14600K, WinLibs GCC 15.2.0 r7, Release, this PR's head 519e411d9 merged onto `main` 5a2744c55 and compared with that `main`, with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1` and `VK_LAYER_KHRONOS_validation` (SDK 1.4.363.0). With this PR, `agc_driver_queue_zero_idle_wait`, `agc_driver_queue_zero_late_interrupt`, `agc_driver_queued_index_read_order`, `agc_driver_store_idle_results`, `agc_driver_store_idle_results_disabled`, `agc_driver_store_idle_results_wake` and `agc_idle_publish_wait` pass 5 runs of 5, none skipped; on `main` the six that exist there pass 3 runs of 3, and `agc_driver_queued_index_read_order` did not hit its setup failure on this GPU. No `VUID-` line in any log. A full `ctest -j 8` passes 2380 of 2382; the two failures, `agc_host_import_cut_lifetime` (#10746) and `agc_driver_depth_plane_partial_store` (#10664), fail on `main` on that machine too. - **314eff1117, a merge of `main` 0836dfdf4f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41239518908)). #12862 moved `libSceAgcDriver`'s test registrations into `tests/cmake/`; the conflict in `CMakeLists.txt` is resolved with `tools/agc_test_split.py resolve`, which moves this PR's registration into `tests/cmake/agc_driver_store_idle_results_tests.cmake` (+5 lines). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With `-DBUILD_TESTING=ON`, `ctest -N` gives 3076 tests: `main`'s 3075 plus `agc_driver_store_idle_results_disabled`, each listed once. The 6 tests of this PR's verify set pass 10 runs in a row. Linux: 6 run, 6 pass, 0 skip, 0 fail. Windows: 6 run, 0 pass, 6 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions (#10676 changes casts in the same test file, on other lines) - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: Mesa lavapipe (llvmpipe, LLVM 20.1.2), Ubuntu 24.04, on GitHub's runner; Windows build and tests on GitHub's runner, where the test skips (no Vulkan device); AMD Radeon RX 7900 GRE, Ryzen 7 7800X3D integrated GPU and RX Vega 56 (RADV, Mesa 25.2.8), Linux, in tablefrogpillow's runs; NVIDIA GeForce RTX 5070 Ti (610.88), Windows 11 (SeaSunPT) - [x] AI-assisted: yes
MarcZX10 commented 2026-10-24 21:44:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:44:54Z.

Review: CHANGES_REQUESTED


I independently verified the shutdown path described in the existing inline comment at this exact head. With APS5_NO_IDLE_STORE present, idleResultsPending() is false; when queue 0 is idle and storage-image results remain pending, the retry condition after the device-lock section stays true and continues before the worker reaches changed.wait(). This can busy-spin until another consumer happens to clear those results. Please address the existing request to gate the retry on idle-store eligibility while retaining epoch/completion wake handling, and add an idle-pending regression that verifies the worker parks and wakes. I did not run the Vulkan runtime test locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640146182 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10750#pullrequestreview-5640146182). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:44:54Z. **Review:** CHANGES_REQUESTED --- I independently verified the shutdown path described in the existing inline comment at this exact head. With `APS5_NO_IDLE_STORE` present, `idleResultsPending()` is false; when queue 0 is idle and storage-image results remain pending, the retry condition after the device-lock section stays true and continues before the worker reaches `changed.wait()`. This can busy-spin until another consumer happens to clear those results. Please address the existing request to gate the retry on idle-store eligibility while retaining epoch/completion wake handling, and add an idle-pending regression that verifies the worker parks and wakes. I did not run the Vulkan runtime test locally.
MarcZX10 commented 2026-10-25 00:09:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T00:09:13Z.

Review: APPROVED


The PR explains the timing-dependent failure with a concrete cause in StoreIdleResults and keeps the production default unchanged. The opt-out is used only in the order test, while the idle-store behavior remains covered independently; the follow-up also preserves queue 0 waiting when disabled. The reported repeated lavapipe runs, validation-layer comparison, and AMD hardware runs provide useful coverage across the regression and affected queue behavior. I reviewed the head and hosted checks; native jobs are path-skipped on this PR head, so I rely on the described CI/test evidence rather than claiming a local Vulkan run.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640711814 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10750#pullrequestreview-5640711814). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T00:09:13Z. **Review:** APPROVED --- The PR explains the timing-dependent failure with a concrete cause in `StoreIdleResults` and keeps the production default unchanged. The opt-out is used only in the order test, while the idle-store behavior remains covered independently; the follow-up also preserves queue 0 waiting when disabled. The reported repeated lavapipe runs, validation-layer comparison, and AMD hardware runs provide useful coverage across the regression and affected queue behavior. I reviewed the head and hosted checks; native jobs are path-skipped on this PR head, so I rely on the described CI/test evidence rather than claiming a local Vulkan run.
MarcZX10 commented 2026-10-29 23:08:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:08:35Z.

Review: APPROVED


Re-checked — new head, looks good

The updated tests keep the queued image results pending through the idle-store interval, and the author reports same-machine main/change comparisons on head 519e411d965397a509c507b4134f17ea3a0adc0d.

What I ran

Reviewed head 519e411d965397a509c507b4134f17ea3a0adc0d against PR base 63a863d3b07f2457ee1210f1abba1c11409cdff5; the merge preview against current main dc38224141e0b6096007b876b4c42fc9144d11b8 is clean. I inspected the four changed code/test files and the environment documentation. Local checks ran in Linux; no build or compiler was invoked.

git diff --check refs/remotes/upstream/main...refs/review/pr-10750-current
python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/pr-10750-current
git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-10750-current
gh pr checks 10750 --repo boykopovar/AnyPS5
gh run view 40188153448 --repo boykopovar/AnyPS5 --json headSha,status,conclusion,displayTitle

Results

Check Result
Diff check Passed; no output
Repository conventions Passed
Merge preview with current main Clean; tree 8b7f242358c9bccaad60c83e3db0ea0915638d4c
Hosted checks Conventions, eligibility, labels and report passed on exact head; product Linux/Windows and specialized jobs skipped
Focused GPU tests Author reports seven tests pass 5/5 on an RTX 5070 Ti with Vulkan validation, and the six present on main pass 3/3 on the same machine; not independently run here
Unedited local check output
All conventions checks passed.
8b7f242358c9bccaad60c83e3db0ea0915638d4c

Findings

Blocking

None found in this re-check. The added setup and pending-result assertions address the prior timing sensitivity without pinning the implementation to refusing otherwise valid guest operations.

Non-blocking

The GPU runs are author-provided. I did not run a local build or tests; the hosted Linux/Windows product jobs skipped because no Vulkan device is available to those runners.

Sources

Not verified

No local tests, console behavior, or validation-layer run was performed. The GPU validation and same-machine baseline results above are from the author and tester's report.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706130190 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10750#pullrequestreview-5706130190). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T23:08:35Z. **Review:** APPROVED --- # Re-checked — new head, looks good The updated tests keep the queued image results pending through the idle-store interval, and the author reports same-machine main/change comparisons on head `519e411d965397a509c507b4134f17ea3a0adc0d`. ## What I ran Reviewed head `519e411d965397a509c507b4134f17ea3a0adc0d` against PR base `63a863d3b07f2457ee1210f1abba1c11409cdff5`; the merge preview against current `main` `dc38224141e0b6096007b876b4c42fc9144d11b8` is clean. I inspected the four changed code/test files and the environment documentation. Local checks ran in Linux; no build or compiler was invoked. ```sh git diff --check refs/remotes/upstream/main...refs/review/pr-10750-current python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/pr-10750-current git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-10750-current gh pr checks 10750 --repo boykopovar/AnyPS5 gh run view 40188153448 --repo boykopovar/AnyPS5 --json headSha,status,conclusion,displayTitle ``` ## Results | Check | Result | |---|---| | Diff check | Passed; no output | | Repository conventions | Passed | | Merge preview with current `main` | Clean; tree `8b7f242358c9bccaad60c83e3db0ea0915638d4c` | | Hosted checks | Conventions, eligibility, labels and report passed on exact head; product Linux/Windows and specialized jobs skipped | | Focused GPU tests | Author reports seven tests pass 5/5 on an RTX 5070 Ti with Vulkan validation, and the six present on `main` pass 3/3 on the same machine; not independently run here | <details> <summary>Unedited local check output</summary> ```text All conventions checks passed. 8b7f242358c9bccaad60c83e3db0ea0915638d4c ``` </details> ## Findings ### Blocking None found in this re-check. The added setup and pending-result assertions address the prior timing sensitivity without pinning the implementation to refusing otherwise valid guest operations. ### Non-blocking The GPU runs are author-provided. I did not run a local build or tests; the hosted Linux/Windows product jobs skipped because no Vulkan device is available to those runners. ## Sources - [Idle-store control at this head](https://github.com/boykopovar/AnyPS5/blob/519e411d965397a509c507b4134f17ea3a0adc0d/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/QueueWorker.cpp) - [Queued-index and idle-store tests at this head](https://github.com/boykopovar/AnyPS5/blob/519e411d965397a509c507b4134f17ea3a0adc0d/core/libs/prx/libSceAgcDriver/tests/execution/QueuedIndexReadOrder.cpp) - [RTX 5070 Ti main/change test report](https://github.com/boykopovar/AnyPS5/pull/10750#issuecomment-6403639567) ## Not verified No local tests, console behavior, or validation-layer run was performed. The GPU validation and same-machine baseline results above are from the author and tester's report.
Sign in to join this conversation.
No reviewers
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!10750
No description provided.