fix(agc): keep polling unsatisfied memory waits after diagnostics #2985

Merged
MrMha merged 4 commits from upstream-pr/2985 into main 2026-10-11 08:50:35 +00:00
MrMha commented 2026-10-10 19:42:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-10T19:42:13Z.


What

Addresses #2832. WAIT_REG_MEM keeps polling after its diagnostic timeout, including when suppressing a repeated-address report, instead of releasing dependent work early. Adds the existing gated-dispatch capture test with a 1ms timeout. Missing producers can leave queues waiting; recorded-label shortcuts remain. TechnicalDebt records this limitation.

Tested

Linux: conventions and git diff --check passed. Published diff verified: one commit, three files, based on main 4a747c48.
Not tested: full build, Windows, Vulkan/GPU regression, or shutdown cancellation. Draft pending runtime validation. Reported GPU failures in #2832 are other contributors' measurements.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No code comments except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No investigation files, reports or images added
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4813940733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2985). Originally posted by [MrMha](https://github.com/MrMha) on 2026-10-10T19:42:13Z. --- ### What Addresses #2832. WAIT_REG_MEM keeps polling after its diagnostic timeout, including when suppressing a repeated-address report, instead of releasing dependent work early. Adds the existing gated-dispatch capture test with a 1ms timeout. Missing producers can leave queues waiting; recorded-label shortcuts remain. TechnicalDebt records this limitation. ### Tested Linux: conventions and git diff --check passed. Published diff verified: one commit, three files, based on main 4a747c48. Not tested: full build, Windows, Vulkan/GPU regression, or shutdown cancellation. Draft pending runtime validation. Reported GPU failures in #2832 are other contributors' measurements. ### Checklist - [x] Based on current main; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No code comments except technical debt - [x] Unimplemented paths throw; no silent stubs added - [x] No investigation files, reports or images added - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-10 19:49:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T19:49:58Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6101527971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2985#issuecomment-6101527971). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T19:49:58Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
adriadam10 commented 2026-10-11 08:50:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:50:32Z.


Checked on Linux (build + ctest of libSceAgcDriver, agc_driver, agc_driver_wait_shutdown, agc_driver_gated_dispatch_capture and its _short_timeout variant): all pass. Without the WaitMemory.cpp change, agc_driver_wait_shutdown and agc_driver_gated_dispatch_capture_short_timeout fail, so the new tests pin the fix. Windows runs by @Zurisen and @Silverash-i8 on the PR thread also pass. The TechnicalDebt entry covers the new behaviour (a missing producer leaves its queue waiting). Merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107298800 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2985#issuecomment-6107298800). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T08:50:32Z. --- Checked on Linux (build + ctest of libSceAgcDriver, `agc_driver`, `agc_driver_wait_shutdown`, `agc_driver_gated_dispatch_capture` and its `_short_timeout` variant): all pass. Without the `WaitMemory.cpp` change, `agc_driver_wait_shutdown` and `agc_driver_gated_dispatch_capture_short_timeout` fail, so the new tests pin the fix. Windows runs by @Zurisen and @Silverash-i8 on the PR thread also pass. The TechnicalDebt entry covers the new behaviour (a missing producer leaves its queue waiting). Merging once CI is green.
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!2985
No description provided.