Repository navigation
docs(libSceAgc): record the values sceAgcAcbJumpGetSize and sceAgcAcbRewindGetSize returned on firmware 11.60 - #26730
Conversation
…RewindGetSize returned on firmware 11.60 A PS5 payload process on firmware 11.60 returned 16 from sceAgcAcbJumpGetSize and 8 from sceAgcAcbRewindGetSize in three calls each, also with the argument registers 0, 1, 2, 3, which equals the values AnyPS5 returns (run 2026-11-24T153625Z). The two existing entries now say that the return value is measured and that the size of a written packet is not. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Probe source (built with ps5-payload-sdk; Probe: probe.c (build c38a2500f3c7)Probe: stdoutAI-assisted (Claude Code). |
What
The debt entries of
sceAgcAcbJumpGetSizeandsceAgcAcbRewindGetSize(silent stubs oflibSceAgc, the code is incore/libs/prx/libSceAgc/Acb/src/Control.cpp) say that AnyPS5 returns 16 and 8 dwords as an estimate of the size of the jump and rewind command packets, and that "the console module's packet size is unmeasured". Both entries are in fragments that are not folded intolibSceAgc.mdyet:docs/dev/debt/changes/fix-libSceAgc-sceAgcAcbJumpGetSize-silent-stub.mdanddocs/dev/debt/changes/fix-libSceAgc-sceAgcAcbRewindGetSize-silent-stub.md. This pull request replaces the end of each entry (one line in each file, no code); a second fragment on the same entry would collide when they are folded, so the existing files are edited.A PS5 payload process on firmware 11.60 loaded
libSceAgc.sprxandlibkernel.sprx(the loading oflibSceAgc.sprxprinted one line of the Agc driver, "Initialized", in the output), took both functions and a control name of the same module (sceAgcCbCondWriteGetSize) withdlsym(all three found; a name that does not exist was not found), and called them with the prototypeint (void)assumed, at 15:36 UTC on 2026-11-24 (one run):sceAgcAcbJumpGetSize()three times,sceAgcAcbRewindGetSize()three times, and each of the two once more with the argument registers 0, 1, 2 and 3.sceAgcAcbJumpGetSizereturned 16 in all four calls (lines 6 to 8 and 12 of the output) andsceAgcAcbRewindGetSizereturned 8 in all four (lines 9 to 11 and 13); no call raised a signal. The controlsceAgcCbCondWriteGetSize()returned 36 (line 5), the value an earlier run of the project had measured. No submit was made, no packet was written and no context was created.I read the two functions in
core/libs/prx/libSceAgc/Acb/src/Control.cpponmain45fc4e2:sceAgcAcbJumpGetSize(line 50) returns 16 andsceAgcAcbRewindGetSize(line 70) returns 8. So the library returns the values the console returned; the library's own code was not run against these calls. A test pins the jump size at 16 (core/libs/prx/libSceAgc/tests/Commands.cpp, line 699); for the rewind size a test compares it with the size of the packet the library writes (line 1370), which does not fix its value.What the two returned numbers do not show: the unit (dwords is assumed), the size of a packet that is written by the console's own
sceAgcAcbJumporsceAgcAcbRewind(it was not measured, which is why the entries keep saying so), a title process, other firmware, and whether the prototype is the console's. Title use of the two functions is not established: the entries are silent stubs listed for completeness.Tested
Measured on a PS5 with firmware 11.60 (
kernel_get_fw_version0x11600005), from a homebrew payload process (ps5-payload-sdk, elfldr) that loadslibSceAgc.sprxand takes the functions withdlsym, on 2026-11-24 at 15:36 UTC (one run). A title process may differ. The probe source and the complete output are in the first comment.int (void)assumed)Control.cppread onmain(not run)sceAgcAcbJumpGetSize(), three callsreturn 16;sceAgcAcbRewindGetSize(), three callsreturn 8;The change is 2 files, 1 line replaced in each, no code and no test. The entries go from 198 to 469 characters (jump) and from 201 to 471 characters (rewind), counted with the leading
-astools/check_conventions.pydoes, so both stay under the limit of 1000. I rantools/check_conventions.py --base(with this title and this body) andtools/debt_fold.py --checkon the merge of this head intomainat 940402d (a merge commit made withgit merge-tree, in a separate checkout):check_conventionspasses and the merge has no conflict;debt_fold --checkprints the same one finding onmainitself and on the merge, about two fragments oflibSceRudp(fix-rudp-unconnected-read-write.mdandfix-rudp-net-received-checks.md, both on the same entry), and nothing about the two fragments of this change. This is a documentation change, so no GPU test applies. Not tested: the emulator against these calls, the size of a written packet, a title process, other firmware, and the cases listed above as not measured.Overlap: counted on 2026-11-24 from 16:46 to 17:08 UTC, starting from the list of the 2495 open pull requests (file lists from the GitHub API; the 17 with 100 or more files were read in full through the files API) against
mainat 940402d; the 7 open pull requests that have one of the two fragment files ordocs/dev/debt/libSceAgc.md(#12315, #17742, #19051, #19486, #20294, #20548 and #21376) were each merged with this branch and withmain(git merge-tree), and the patches of the debt files and of thelibSceAgcfiles of the 1787 open pull requests that change a file underdocs/dev/debt/, alibSceAgcfile or 100 or more files (read between 08:09 on 23 November and 17:08 UTC; the ones new or changed since 16:12 UTC on 23 November were read again today) were searched forsceAgcAcbJumpGetSize,sceAgcAcbRewindGetSizeand the names of the two fragments. This change replaces one line in each of the two existing fragment filesdocs/dev/debt/changes/fix-libSceAgc-sceAgcAcbJumpGetSize-silent-stub.mdanddocs/dev/debt/changes/fix-libSceAgc-sceAgcAcbRewindGetSize-silent-stub.md(added by #20912 and #20913, merged on 15 November) and no code. No open pull request changes either fragment againstmain, and no open pull request changes the returned values of the two functions; of the 7, #19051 and #21376 merge cleanly with this branch and withmain, and #12315, #17742, #19486, #20294 and #20548 conflict withmainalready. The two functions appear in patches only as unchanged context: of the pull requests whose patches show them, #21653, #22535, #22574, #22667 and #22712 merge cleanly with this branch and withmain, #6743 (an AGC draft with 100 or more files) shows both functions in its patch against an older base but changes none of theAcbcode or the two fragments againstmain(it merges cleanly), and #19486 and #20294 conflict withmainalready (#20294 adds lines aftersceAgcAcbRewindGetSizeinControl.cpp); none of their changed lines names either function or its returned value. A search of open and recently merged pull requests (since 15 November) for the two names finds only #20912 and #20913, which added the two fragments; the test of the packet sizes (#16987) is merged and inmain. This pull request does not depend on any of them (Depends on: none).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)