feat(agc): let APS5_PM4_RING_WORDS set how many command words a dump keeps #27808
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27808"
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 boykopovar/AnyPS5. Originally posted by Ling-Mo-han on 2026-11-27T12:59:55Z.
The ring kept a fixed
KeptWords = 512per submission, so a report only showed the head of a long tail. In #27759 a queue stopped at+0x029dof a 1462-dword rewind tail and the packet was invisible: the dump ended at+0x01ff, and confirming what the worker was inside took a rebuild with the constant raised.APS5_PM4_RING_WORDSsets the count (default 512, 0 to 65536) and the words live in astd::vector, so a report keeps the whole tail when it fits — 1697 dwords in the case that motivated this, i.e. the stalled packet became readable without a rebuild.DefaultKeptWords = 512,MaximumKeptWords = 65536; 0 is accepted and keeps nothing, matchingenvironmentCount's other users.Entry::wordsbecomesstd::vector<std::uint32_t>;recorddoesassign, and the dump path reads it unchanged (entry.words[cursor]).Compiled against
e672dc87in the full Windows build (--target libs, MinGW-w64 GCC 16.2.0):libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cppbuilds and links. I ran the binary side by side withAPS5_PM4_RING_WORDS=4096andAPS5_PM4_RING=64; the dump then readfirst 1697 keptfor that tail and showed theWAIT_REG_MEMat+0x006ethat the 512-word report had hidden.Requested in https://github.com/boykopovar/AnyPS5/issues/27759#issuecomment-7218317619 and https://github.com/boykopovar/AnyPS5/issues/27759#issuecomment-7218543199 ("A setting for the number of kept words in #27684 is a sound suggestion").
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T13:09:15Z.
Review: COMMENTED
Actionable comments posted: 2
1a843262-f022-4717-806a-5e2e9f58de20Reviewing files that changed from the base of the PR and between
b7d960b95band5cbb39e771.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T14:44:19Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected change shows a concrete defect; the configurable word limit is applied when recording and the dump reads only the retained words.
What I ran
Reviewed head
5cbb39e771e511f272f778cd6051458ed68607eb. No build or tests were run. Readdescription.md,commits.md,manifest.json,diff.patch, and the complete changed filecore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cpp;files.jsonwas unavailable through the reader. Usedrepo_read.pysearch and read operations for caller references and changed-file context.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author-reported Windows build and runtime behavior were not independently verified. No tests were run.
files.jsoncould not be read, so the reviewed-file list could not be compared against itsreviewedentries.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T21:02:27Z.
Review: COMMENTED
Main now implements
APS5_PM4_RING_WORDSine898de14b6(#27684), including the environment documentation, a combined per-queue budget, and tests for truncation and invalid settings. The proposed change conflicts inSubmissionRing.cpp. Is accepting zero retained words with the ring enabled a remaining requirement? Main currently requires at least one word when the ring is active.Source review at
5cbb39e771. Trial merge used6ef4f2f73b.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.