feat(agc): name submit calls not yet accepted in the wait timeout report and ring dump #27684
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27684"
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 oneandonlydean on 2026-11-27T00:30:12Z.
What
A
WAIT_REG_MEMthat reports a timeout, and the submission ring dump, now name every submit call that has entered the driver and is not accepted yet: its queue, its size, the stage it is in (reading its commands, waiting for flip room, held behind earlier flips, waiting for shader preparation, waiting for the submission lock) and for how long. When none is waiting they say so.Why: in #6558 a queue 0x20 wait sits on a label whose writer is the next queue 0 submission. The ring records a submission when it is accepted, so a submission still inside
Driver::Submitlooks the same as one the title has not sent. With these lines one run of a reporter tells the two apart.Nothing changes outside the two reports. A submit call claims one slot of a fixed table and reads the clock five times. The lines are formatted with integer and string conversions only, as the failure report dump requires.
Tested
Linux:
agc_driver_pm4_testspasses; its ring test now checks the line for a waiting submit call and the line for none. No title was run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
APS5_PM4_RING_WORDS, subject to supported limits.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T00:38:21Z.
Review: COMMENTED
Reviewed — comments
The review found a case where the ring dump omits unaccepted submits, and the changed tests were not run.
What I ran
Reviewed head
29638ea3d671009d421009af0bcff86e980b38acusing the prepared diff and pinned repository reader. No commands or tests were run; the test result in the PR description is author-reported.Results
Findings
Blocking
None.
Non-blocking
dump()returns before querying or printing unaccepted submit calls. A submit stuck inside the driver can therefore still be invisible in the ring dump in this case. Move the unaccepted-submit report ahead of theused == 0early return (and consider the disabled-ring return too).core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cpp:213Not verified
The changed implementation, tests, and documentation were read. No changed files were excluded by the manifest;
files.jsonwas not available through the reader. The code path when more than 32 calls are simultaneously unaccepted is bounded by the implementation but was not exercised. Tests and runtime behavior were not verified.To get this to a good state
Nothing is required. Optional: include unaccepted-submit reporting when the ring has no recorded submissions, and add coverage for that case.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T00:39:39Z.
Review: COMMENTED
Actionable comments posted: 3
286d2ea5-b5f7-4f0d-a016-0a0ce789bf5aReviewing files that changed from the base of the PR and between
289b90f19cand29638ea3d6.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Queues/SubmissionRing.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/Submission.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/WaitMemory.cppcore/libs/prx/libSceAgcDriver/tests/Pm4.cppdocs/user/USAGE.mdIncluded 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 coderabbitai[bot] on 2026-11-27T06:25:56Z.
Review: COMMENTED
Actionable comments posted: 4
9fedc479-8ddb-4422-978f-3892745f5d5cReviewing files that changed from the base of the PR and between
29638ea3d6and3906442ad3.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Queues/SubmissionRing.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cppcore/libs/prx/libSceAgcDriver/tests/Pm4.cppdocs/user/USAGE.mdIncluded 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-27T06:45:31Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the added diagnostics are consistent with the described behavior in the reviewed code.
What I ran
Reviewed head
3906442ad335ea1e92735023415478ed18758b08using the prepared diff and pinned repository reader. No commands or tests were run; the Linux test result in the PR description is author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests were run. The full text of changed files was available and read for
SubmissionRing.hpp,PacketExecution.cpp,Submission.cpp,SubmissionRing.cpp,WaitMemory.cpp,Pm4.cpp, andUSAGE.md; no changed files were excluded in the manifest. Runtime behavior on a title or physical console was not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T13:03:48Z.
Review: COMMENTED
Actionable comments posted: 1
716de21d-dd46-4dfe-b045-309a6f12b7c7Reviewing files that changed from the base of the PR and between
3906442ad3and568d805511.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Queues/SubmissionRing.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cppcore/libs/prx/libSceAgcDriver/tests/Pm4.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmakedocs/dev/ENVIRONMENT.mddocs/user/USAGE.mdIncluded 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-27T13:52:23Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed the prepared diff and the changed-file ranges at head
568d805511873b32682bf357167e63cefcb729f8usingrepo_read.py. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
SubmissionRing.cpp:231: The new dump details are emitted after the existing early return for zero recorded submissions. A ring dump taken while the first submission is still unaccepted therefore omits the pending submit call, timestamp, and detail. Consider emitting those lines before returning for an empty ring. Pinned sourceSubmissionRing.hpp:38: The fixed table holds at most 32 unaccepted calls; when all slots are occupied, later calls are silently untracked. The report can therefore omit calls under higher concurrency despite the documentation's “every submit call” wording. Consider reporting overflow or increasing the bound. Pinned sourceSources
The findings link to the changed code at the reviewed commit. The prepared diff and changed-file context were read for all nine changed files; full file contents were not read for every file.
Not verified
The author reports
agc_driver_pm4_testspassed on Linux; I did not run that test or a build. No title or physical-console behavior was tested.To get this to a good state
Nothing is required. Optional: handle empty-ring dumps and make submit-table overflow visible.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T00:20:13Z.
Review: COMMENTED
Actionable comments posted: 1
Architecture findings (3)
Advisory architecture findings (3)
bde41f9f-6a27-4519-82e6-c194d80e0fd9Reviewing files that changed from the base of the PR and between
568d805511and4a577dd0d5.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Queues/SubmissionRing.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/Submission.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/SubmissionRing.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/WaitMemory.cppcore/libs/prx/libSceAgcDriver/tests/Pm4.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmakedocs/dev/ENVIRONMENT.mddocs/user/USAGE.mdIncluded 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-30T00:22:41Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: address the unsupported claim that each queue's worker position is reliably reported.
What I ran
Reviewed head
4a577dd0d5ced9756a4fed8210d41a09c848b4c8. No commands or tests were run; repository access was throughrepo_read.py's pinned reader.Results
Findings
Blocking
None.
Non-blocking
PacketExecution.cpp:454:NoteWorkerPacketis called after theWAIT_REG_MEMbranch begins execution, and its offset is the packet's start. A worker blocked insideWait()therefore reports the wait packet as its current packet, but the PR text says this line reports the packet the worker is “inside.” TheWorkerPositiondestructor also clearsworkingwhenexecutereturns, while retaining the last packet offset. Consider describing the offset as the last packet started, or track entry/exit around packet execution if the intended distinction is current versus finished.Not verified
No tests or builds were run. The PR description reports
agc_driver_pm4_testspassed on Linux; that result was not independently verified. No title or physical console was run. All 9 files markedreviewedin the manifest were read:SubmissionRing.hpp,PacketExecution.cpp,Submission.cpp,SubmissionRing.cpp,WaitMemory.cpp,Pm4.cpp,agc_driver_graphics_tests.cmake,ENVIRONMENT.md, andUSAGE.md. No changed files were excluded.To get this to a good state
Nothing is required. Optional: clarify that the worker offset identifies the last packet started, or adjust tracking and wording to match the intended meaning.