Skip to content

docs(libkernel): record the version stubs, kern.boottime and the SoC power block as measured on a PS5 - #11116

Merged
adriadam10 merged 4 commits into
boykopovar:mainfrom
orezraey:docs/libkernel-version-boottime-socpower-measured-ps5
Oct 27, 2026
Merged

adriadam10 merged 4 commits into
boykopovar:mainfrom
orezraey:docs/libkernel-version-boottime-socpower-measured-ps5

Conversation

@orezraey

@orezraey orezraey commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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.md and changes no host behaviour: AnyPS5 already matches the first two entries, while sceKernelGetSocPowerConsumption still differs from the console, as its bullet below says. The sources and console logs are in this gist (pexver, pboottime, psocpow).

  • sceKernelGetSystemExVersion, sysKernelGetLowerLimitSysexVersion, sysKernelGetLowerLimitUpdVersion and sceKernelGetTraceMemoryStats were read from 13.42 disassembly and not measured. On the console all four are exported by libkernel.sprx, libkernel_sys.sprx and libkernel_web.sprx at 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 return 0x80020016 for 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 gets CLOCK_REALTIME minus CLOCK_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 and ENOMEM, a 0-byte one ENOMEM. This is what AnyPS5 does. What a title process gets is still open.
  • sceKernelGetSocPowerConsumption: AnyPS5 returns EINVAL because 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 f0a989a508 on main d17785dba8. tools/check_conventions.py passes; each changed entry is under 1000 characters.

Checklist

…power block as measured on a PS5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@orezraey

Copy link
Copy Markdown
Contributor Author

@pushkarreddyy #10671 edits the sceKernelGetSystemExVersion entry in docs/dev/debt/libkernel.md that this PR also edits (it only records the console measurement there), so the two conflict in that file. I propose #10671 lands first; I will then refresh this PR over it, keeping your wording and adding the measurement. Depends on lists it (merge order only).

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 sceKernelGetSocPowerConsumption bullet and the existing debt entry both say AnyPS5 returns EINVAL and 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.

@orezraey

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Fixed the summary: the opening now says the PR only records the console measurements and changes no host behaviour, and that sceKernelGetSocPowerConsumption still differs from the console (AnyPS5 returns EINVAL and writes nothing). The code and the debt entry are unchanged.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 4630 docs/dev/debt/libkernel.md
PR 5021 docs/dev/debt/libkernel.md
PR 6149 docs/dev/debt/libkernel.md
PR 6936 docs/dev/debt/libkernel.md
PR 7088 docs/dev/debt/libkernel.md
PR 7105 docs/dev/debt/libkernel.md
PR 7121 docs/dev/debt/libkernel.md
PR 7149 docs/dev/debt/libkernel.md
PR 7192 docs/dev/debt/libkernel.md
PR 7447 docs/dev/debt/libkernel.md
PR 7509 docs/dev/debt/libkernel.md
PR 7804 docs/dev/debt/libkernel.md
PR 8605 docs/dev/debt/libkernel.md
PR 9156 docs/dev/debt/libkernel.md
PR 9199 docs/dev/debt/libkernel.md
PR 9242 docs/dev/debt/libkernel.md
PR 9284 docs/dev/debt/libkernel.md
PR 9293 docs/dev/debt/libkernel.md
PR 9297 docs/dev/debt/libkernel.md
PR 9302 docs/dev/debt/libkernel.md
PR 9326 docs/dev/debt/libkernel.md
PR 9389 docs/dev/debt/libkernel.md
PR 9491 docs/dev/debt/libkernel.md
PR 9557 docs/dev/debt/libkernel.md
PR 9566 docs/dev/debt/libkernel.md
PR 9575 docs/dev/debt/libkernel.md
PR 9947 docs/dev/debt/libkernel.md
PR 10192 docs/dev/debt/libkernel.md
PR 10319 docs/dev/debt/libkernel.md
PR 10442 docs/dev/debt/libkernel.md
PR 10552 docs/dev/debt/libkernel.md
PR 10558 docs/dev/debt/libkernel.md
PR 10725 docs/dev/debt/libkernel.md
PR 10749 docs/dev/debt/libkernel.md
PR 11002 docs/dev/debt/libkernel.md
PR 11042 docs/dev/debt/libkernel.md
PR 11085 docs/dev/debt/libkernel.md
PR 11215 docs/dev/debt/libkernel.md
PR 11223 docs/dev/debt/libkernel.md
PR 11264 docs/dev/debt/libkernel.md
PR 11267 docs/dev/debt/libkernel.md
PR 11341 docs/dev/debt/libkernel.md

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The author corrected the opening summary to accurately say this documentation-only PR records console measurements without changing AnyPS5 behavior, and that sceKernelGetSocPowerConsumption still 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 26, 2026
@pushkarreddyy

Copy link
Copy Markdown
Contributor

@orezraey Sounds good! I agree with that merge order. Once #10671 lands, please feel free to refresh over it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 26, 2026
@adriadam10 adriadam10 self-assigned this Oct 27, 2026
@adriadam10
adriadam10 merged commit 244bc62 into boykopovar:main Oct 27, 2026
9 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the three edited entries against the PR body and the neighbouring entries (the SoC power entry still says AnyPS5 returns EINVAL), docs only, conventions green, approved by @MarcZX10; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants