fix(agc): validate reset queue cache packets #2048
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2048"
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 MarcZX10 on 2026-10-09T05:49:29Z.
What
Refs #1581. Accept the measured whole-range
ACQUIRE_MEMpacket over a 48-bit address range and the measuredEVENT_WRITEtype 56 cache-flush timestamp packet. These are the unimplemented packet groups for reset op bits0x040and0x200described in #1581, and unblock those groups in #1629. The0x400group remains unsupported.The packet values and fields covered by the new cases come from the PS5 firmware 13.60 command-buffer measurement in #1581. Validation still rejects fields outside the 48-bit range, overflowing spans, null or misaligned timestamp addresses, and invalid event indices.
Tested
Linux, GCC 12.2, Release: built
agc_driver_pm4_tests;ctest -R '^agc_driver_pm4$'passed. Added acceptance checks for the measured packets and rejection checks for invalid ranges, addresses, and indices. No PS5 hardware run was performed.Checklist
main; no other open PR implements the same validationImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T06:47:56Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cppL366, L368-370core/libs/prx/libSceAgcDriver/tests/Pm4.cppL566-567, L571Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:04:31Z.
Closing after a full diff review. The 48-bit ACQUIRE_MEM validation and tests in this PR are already implemented by #1917. I also rechecked the measured EVENT_WRITE 0x38 packet: PAL identifies 0x38 as PIXEL_PIPE_STAT_CONTROL (gfx9CmdUtil.cpp), not a cache-flush timestamp. This PR only validates the packet and does not model its pixel-pipe statistics effect, so accepting it would claim behavior the driver does not implement. I removed that case in local follow-up commit d341201e; no distinct, correctly implemented change remains here. The measured event needs a behaviorally grounded implementation before it can be accepted.
Pull request closed