Repository navigation
docs(agc): record the console's workload packets - #8302
Conversation
…stream sceAgcAcbSetWorkloadsActive, sceAgcAcbSetWorkloadComplete and sceAgcAcbSetWorkloadStreamInactive build the same packets as the DCB calls, and sceAgcDcbSetWorkloadStreamInactive writes a 9-dword IT_NOP with the stream id, the size of the console's user-data packet. The debt entry now records the console layout read from libSceAgcDriver. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
|
Example: after A title probably can't see the difference, because the dropped writes only reach the thread-trace user-data registers and a table the driver owns. Still, this throw was kept on purpose, and the description doesn't say why it can be removed now:
Could you quote the log line of a title that stops on one of these four calls on current main, as #3789 did, and mention #4709 in the description? Until a title does, I'd keep the throw for a registered stream. For the three ACB calls that means main's if (buf == nullptr || !AgcDriverWorkloadStreamRegistered_nid_postfix(streamId)) return nullptr;
NotImplemented_nid_no_patch(function);
return nullptr;Moving the DCB builders into |
Review on boykopovar#8302: the ACB workload calls and the DCB stream-inactive call throw again for a registered stream until a title is shown stopping on them (as boykopovar#3789 did for the DCB calls, and as boykopovar#4709 kept). The debt entry keeps the firmware's packet layout as the record of what is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
|
Thanks @nikowolf123, that's fair. I can't point to a title that stops on these four calls on current main: Horizon (#6214) stops earlier, on The PR now only records the firmware's packet layout in #8318 no longer needs anything from this PR except the neighbouring debt lines. |
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
I measured these on a retail PS5 (firmware 13.60). A homebrew probe registers a stream and calls the six functions on a plain command buffer; the source and log are in this gist. The packets match what you recorded. These details are not in the entry:
I'll open a separate PR for the registration codes only. It doesn't touch the packets, but it edits the same debt entry. |
…ad-packets # Conflicts: # docs/dev/debt/libSceAgc.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
|
@orezraey thank you, that's the console evidence this entry was missing. I merged
I left out the registration and unregistration codes, as you're putting those in your own PR. The null-return cases you list match the checks |
|
Checked the new debt entry against main (no ATOMIC_MEM in the executor, entry placed beside the two existing workload entries) and against orezraey's console measurements; conventions check passes; merged. |
What
Records in
docs/dev/debt/libSceAgc.mdwhat the console writes for the six workload calls, taken from the decryptedlibSceAgc.sprxandlibSceAgcDriver.sprx. No code changes: after review, the registered-stream throw insceAgcDcbSetWorkloadStreamInactiveand the three ACB calls is kept, as #4709 kept it, because no title has been shown stopping on these calls on current main. The DCB active and completeIT_NOPstand-ins (#3789) are unchanged.What the console writes. The libSceAgc calls reserve
sceAgcDriverGet*PacketSize()dwords and callsceAgcDriverSetWorkloadsActive/SetWorkloadComplete/SetWorkloadStreamInactive, passing engine 0 for DCB and 1 for ACB. The driver calls write:SET_UCONFIG_REGto0x342with a tag:0xCC000000 | streamfor active and inactive,0xCD000000 + workload * 32 + streamfor complete. It carries the first dword of an 8-byte payload (the active mask, or zero for inactive), and aWRITE_DATAto register0xC343carries the rest.ATOMIC_MEM(control0x267or0x275, bit 30 set on the DCB). It ORs the mask into, or ANDs the cleared bit out of, the stream's 64-bit word in a table the driver allocates at module start.That gives 18 / 12 / 9 dwords. The executor has no
ATOMIC_MEMand no workload table, and an unpredicatedSET_UCONFIG_REGis rejected on a compute queue.mainnow describes the current stand-ins in its own two entries. This PR adds one entry beside them that leads with that gap and stays under the length limit. It includes what orezraey measured on a PS5 at firmware 13.60: theWRITE_DATAdwords, the header low bytes, and the table address. The registration error codes are left to their follow-up.The Horizon Call of the Mountain thread (#6214) lists the three ACB calls among its stubs, but that title currently stops earlier (
sceHmd2ReprojectionSetAllowPositionalReprojection). Once a title is shown stopping on one of these calls, a follow-up can write the stand-in packets.Tested
Linux (CachyOS, GCC, Release):
agc_commandspasses unchanged.tools/check_conventions.pyis clean.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)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK