feat(libScePsml): declare later MFSR exports #15654
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15654"
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 B-Howell on 2026-11-04T00:04:20Z.
What
Declare the 8
libScePsmlfunction exports of the PS5 13.60 export inventory that are not yet declared, as throwing placeholders. Five of them (the KytyPS5 labels listed below) are the NIDs that #12063 asked to be confirmed. The inventory gives no name for any of them, and the pinned NID database has none of the names below, but each name hashes exactly to its NID withtools/nid_names.py --name. The image label does not authenticate a retail firmware version. No game unblock is claimed.800M3andFrom2023Julyforms of three existing export families:scePsmlMfsrCreateContext(2ecEbQaf9VU),scePsmlMfsrCreateContext800M3(pwUkfVu0c0c),scePsmlMfsrCreateContextFrom2023July(vUk2pWMx3KQ),scePsmlMfsrGetContextBufferRequirement(EO9YQXmJEN8),scePsmlMfsrGetContextBufferRequirement800M3(sjTyYheKTrU),scePsmlMfsrGetContextBufferRequirementFrom2023July(IMlj247LdTo),scePsmlMfsrGetDispatchMfsrPacket(CN7uea0UQso) andscePsmlMfsrGetDispatchMfsrPacketFrom2023July(wHto4IznfBE).scePsmlMfsrGetDispatchMfsrPacket,scePsmlMfsrCreateContext800M3andscePsmlMfsrGetDispatchMfsrPacketFrom2023July) are in ps5rsdata/nids.csv(SHA-256e6b1ddfa65b18be3f17e4539ae4dff0b956d0a0c27cc58e4aaa181ae9c8bec82). For the other five that file has only KytyPS5's labels,PsmlGetContextMemoryRequirementsandPsmlContextInitialize, which #12063 quotes. Those labels do not hash to these NIDs: they giveOSi13dtYJIkandp2oRiEbDdOE, and with thesceprefixjUxLcoPab4kandSOaQoTw-vDI. The labels are descriptive, not export names: the same file labelsRUNLFro+qok, which isscePsmlMfsrGetDispatchMfsrPacket900onmain, asPsmlDispatch. The five names here come from the existing families with the version suffix replaced by nothing,800M3orFrom2023July, the suffixes that ps5rs gives for the other three. So, as #12063 guessed, these are more versions of the MFSR context and dispatch calls, not new functions.Signatures, the firmware version each form serves, and behavior are unverified. The bodies of the versioned
1100and1300forms onmainare not reused, because nothing shows that these forms take the same arguments. Every entry is a parameterlessintdeclaration that only resolves imports, and every body callsNotImplemented_nid_no_patch. The declarations follow #15347: they are in a new headerinclude/LaterExports.hpp, which thelibScePsml_debug.hppumbrella includes, and in a separateextern "C"block inExport.cpp, with a debt entry that lists every name and NID.libScePsmlandlibScePsml_debugare built from this one source, so both libraries export the 8.The list is the inventory's 27 function records for
libScePsmlminus the 19 already exported onmain(1c8c0efc8c) by name hash (tools/nid_names.py --where). With these 8, every record is exported. Other PSML logical libraries still have 13.60 gaps: 3 oflibScePsml_nosubmission, 1 oflibScePsml_set_mfsrversion, and all 6 oflibScePsmlBcSisr, which has no module in the tree. They are not part of this pull request.scePsmlMfsrCreateContext2ecEbQaf9VUscePsmlMfsrCreateContext800M3pwUkfVu0c0cscePsmlMfsrCreateContextFrom2023JulyvUk2pWMx3KQscePsmlMfsrGetContextBufferRequirementEO9YQXmJEN8scePsmlMfsrGetContextBufferRequirement800M3sjTyYheKTrUscePsmlMfsrGetContextBufferRequirementFrom2023JulyIMlj247LdToscePsmlMfsrGetDispatchMfsrPacketCN7uea0UQsoscePsmlMfsrGetDispatchMfsrPacketFrom2023JulywHto4IznfBETested
libsandguest_psml_testsat this commit (on top ofmain1c8c0efc8c). Then I ranguest_psml, the only test registered by the PSML CMake files, andpublic_headersthree times. Both passed on every run, with none skipped.conventions_unknown_nids,conventions_debt_length,conventions_doc_linksanddebt_split) ran in the same ctest invocations and passed on every run on both systems, none skipped, so each run had 6 tests. They test the convention checker itself, not these declarations.libScePsml.prxandlibScePsml_debug.prxeach export each of the 8 NIDs once on both systems (objdump -pon Windows,nm -Don Linux).python3 tools/check_conventions.py --base origin/mainwith this title and description passed, andgit diff --checkis clean.tools/pr_overlap.py --branchfound no open pull request that changes the same exports. It failed closed on #14212, which sharesdocs/dev/debt/libScePsml_debug.mdwith this branch and does not merge cleanly withmain. I checked its diff by hand: in this file it only adds blank lines between entries, and it adds none of these NIDs or names. None of the commits that are not onmainof the open PRs that changelibScePsml_debug,libScePsmlor the PSML debt file (#13801, #14102 and #14212) contains any of these NIDs or names.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
Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-04T00:15:28Z.
Review: APPROVED
Reviewed — approved
The PR adds 8 libScePsml MFSR exports as throwing placeholders. Each name hashes to its claimed NID, each is declared once in a header the
libScePsml_debug.hppumbrella includes, each is exported once from bothlibScePsml.prxandlibScePsml_debug.prx, and a debt entry lists them all. The relevant checks and tests pass.What I ran
Head
05a1f4fe579d261802150d903af70cbd13eaa9ff,main1c8c0efc8c41314402e6966da5bef6ea3d639d10, merged tree6d4caf6b0a0bae397bfa14f62a33851c2a9b1cfd, on Debian 13 (VM, 32 vCPU Xeon Gold 6136), GCC 14.2.0, Release, Ninja.The build and the selected test run by the prepare script are in build.json.
Results
git diff --checkcheck_conventions.pylibs(script)check_skips.py). 0 new failures, 0 timeouts. 1 known failure that also fails onmain(unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group), not caused by this PRPsmlGetContextMemoryRequirements→OSi13dtYJIk,PsmlContextInitialize→p2oRiEbDdOE: these do not match the new NIDs, as the description saysExport.cppandLaterExports.hpplibScePsml.prx/libScePsml_debug.prxguest_psml,public_headers,conventions_unknown_nids,conventions_debt_length,conventions_doc_links,debt_splitFocused ctest run
public_headersis an existing test, not one this PR adds or changes. It took 62 s here, on a machine shared with other builds. I did not time it onmain, so I do not attribute this to the PR.Export counts (nm -D)
Negative control
None. The PR adds and changes no tests, and the project rules forbid tests that only check that a symbol is exported.
Findings
Blocking
None.
Non-blocking
None.
Code notes:
core/libs/prx/libScePsml_debug/Export.cpp:372-402have noreturnstatement. This is well-defined:NotImplemented_nid_no_patchis declared[[noreturn]]incore/libs/prx/libc/include/General.hpp:15.core/libs/prx/libScePsml_debug/include/LaterExports.hpphas one declaration per export, and the umbrellalibScePsml_debug.hppincludes it, as CONTRIBUTING.md requires.public_headerspasses.docs/dev/debt/libScePsml_debug.md. It states first what is unverified (the parameter lists, return types, firmware version each form serves and behaviour) and says the declarations are placeholders.Not verified
nids.csvcontents and their SHA-256: there is no network here. I only checked that each name hashes to its NID.800M3andFrom2023Julynames are the real Sony export names, rather than names that only hash to the right NIDs. The method is sound, but the names are still inferred.