feat(libScePsml): answer the versioned MFSR context calls as not initialized #5651
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5651"
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 klosixgaming-arch on 2026-10-14T03:43:28Z.
What
scePsmlMfsrGetContextBufferRequirement1100,CreateContext1100andGetDispatchMfsrPacket1100already return0x8A810001(not initialized) without reading their arguments, as the MFSR runtime is never initialized here (scePsmlMfsrInitthrows). Their versioned counterparts take the same three argument shapes and now give the same answer:scePsmlMfsrGetContextBufferRequirement800M3_2scePsmlMfsrCreateContext800M3_2,scePsmlMfsrCreateContext1300scePsmlMfsrGetDispatchMfsrPacket900,1000,1300PPSA28416 imports the 1300 pair next to the 1100 requirement query, and PPSA25344 imports
GetDispatchMfsrPacket1000.guest_psmlchecks that none of them writes the requirement, the context slot or the command buffer. Whether each version takes these arguments, and the console's error, are recorded as unverified. #5531 also edits this file (it renames the two unknown NIDs); the changed lines don't overlap.Tested
Linux (Ubuntu 24.04, GCC 13.3, Release): built the library and its test target,
ctest -R guest_psmlpasses,tools/check_conventions.py --base origin/mainpasses. No title tested.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_01Dh1MhYBFyzxRceoAxrepZ6
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T03:44:12Z.
Progress report (
a310431→7315fc0)📈 System libraries: 88.35% (+0.16%, +6 implemented functions)
✅ 6 implemented
scePsmlMfsrCreateContext1300scePsmlMfsrCreateContext800M3_2scePsmlMfsrGetContextBufferRequirement800M3_2scePsmlMfsrGetDispatchMfsrPacket1000scePsmlMfsrGetDispatchMfsrPacket1300scePsmlMfsrGetDispatchMfsrPacket900⚪ 6 behaviourally empty (constant return or throw)
scePsmlMfsrCreateContext1300scePsmlMfsrCreateContext800M3_2scePsmlMfsrGetContextBufferRequirement800M3_2scePsmlMfsrGetDispatchMfsrPacket1000scePsmlMfsrGetDispatchMfsrPacket1300scePsmlMfsrGetDispatchMfsrPacket900Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T12:42:07Z.
Review: CHANGES_REQUESTED
Thanks for the PR. Before this can merge:
core/libs/prx/libScePsml_debug/Export.cpp:33-114: these six exports threwNotImplemented_nid_no_patchonmain; they now return0x8A810001without reading anything. Nothing cited shows that the 800M3_2/900/1000/1300 versions have these argument shapes, or that the real library returns "not initialized" before validating its parameters (the PR itself lists both as unverified). A plausible error wheremainthrew is the kind of change we only take with a source: a disassembly of the title's libScePsml, prosper, KytyPS5/shadPS4, or a measurement. I found none for these names.core/libs/tests/GuestPsml.cpp:87-98: the new checks (includingnullptrarguments returning0x8A810001) pin what the code does, not what the library does. They would need values from a source above.docs/dev/debt/libScePsml_debug.md:6: if the error is kept without a source, the line belongs under Silent stubs, not only as a note in Unknown function info.Either add the evidence for the signatures and the error, or keep these exports throwing until it exists. Also rebase after #5531, which edits the same debt lines.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T08:35:20Z.
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.
core/libs/tests/GuestPsml.cppcore/libs/prx/libScePsml_debug/Export.cppImported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-16T22:19:58Z.
Closing this: main now has the same behavior. Commit
7ab3d441c1("feat(psml): implement the MFSR shared-resource and 800 context setup") added scePsmlMfsrCreateContext1300 and the 900/1000/1300 dispatch packets, which return 0x8A810001 until scePsmlMfsrInit is called and throw after it, so a rebase of this PR would leave nothing to change. Thanks for the review.AI-assisted: yes. Written with AI assistance and reviewed by me.
Pull request closed