docs(libkernel): record the version stubs, kern.boottime and the SoC power block as measured on a PS5 #11116
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11116"
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 orezraey on 2026-10-25T18:34:05Z.
What
Three libkernel entries recorded as measured on a retail PS5 (firmware 13.60) with homebrew probes from a payload process. This PR only records these console measurements in
docs/dev/debt/libkernel.mdand changes no host behaviour: AnyPS5 already matches the first two entries, whilesceKernelGetSocPowerConsumptionstill differs from the console, as its bullet below says. The sources and console logs are in this gist (pexver,pboottime,psocpow).sceKernelGetSystemExVersion,sysKernelGetLowerLimitSysexVersion,sysKernelGetLowerLimitUpdVersionandsceKernelGetTraceMemoryStatswere read from 13.42 disassembly and not measured. On the console all four are exported bylibkernel.sprx,libkernel_sys.sprxandlibkernel_web.sprxat the same address and behave as the entry says: the first writes one zero byte to each output and returns a plain 22 if either is null; the lower limits write a zero byte and a zero 32-bit word, and return0x80020016for null; the trace statistics write 8 zero bytes to the first two outputs, skip null ones, leave the third and fourth alone and return 0. The meaning of the outputs stays open.kern.boottime: the entry said the value a PS5 title gets was not measured. A payload process getsCLOCK_REALTIMEminusCLOCK_UPTIME(1792934811.652920 against 1792934811.652919 read at the same time), unchanged 2 s later, from{1, 21}and from the name alike; an 8-byte buffer gets the first 8 bytes andENOMEM, a 0-byte oneENOMEM. This is what AnyPS5 does. What a title process gets is still open.sceKernelGetSocPowerConsumption: AnyPS5 returnsEINVALbecause the host has no power source to read, and that does not change. The entry now records what the console does: 0, 112 bytes (28 32-bit words) written, the first word about 4700 when idle (the PS5LM Plus reading it as milliwatts would show 4.7 W, so the unit is not known), and a fault for a null buffer.Tested
Documentation only. Head
f0a989a508onmaind17785dba8.tools/check_conventions.pypasses; each changed entry is under 1000 characters.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)kern.boottime), #10671 (it edits thesceKernelGetSystemExVersionentry; merge order only)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T18:40:16Z.
Review: CHANGES_REQUESTED
The documentation changes and linked console logs are consistent with the measurements I checked. I found one material mismatch in the PR description: its opening says “AnyPS5 already behaves as measured,” but the
sceKernelGetSocPowerConsumptionbullet and the existing debt entry both say AnyPS5 returnsEINVALand writes nothing, while the PS5 probe returns 0 and writes 112 bytes. Please revise the opening to say that the PR records console measurements without changing the host behavior (and that some measured behavior still differs). The distinction is already described in the detailed bullet; this request is only to make the summary accurate.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T18:56:45Z.
Review: APPROVED
The author corrected the opening summary to accurately say this documentation-only PR records console measurements without changing AnyPS5 behavior, and that
sceKernelGetSocPowerConsumptionstill differs. I verified the revised opening against the detailed bullet and existing debt behavior. The console logs and debt edits I reviewed earlier remain unchanged; conventions, eligibility, intake, and labels pass. Product build/test checks are skipped for this documentation-only change.