feat(libScePsml): answer the versioned MFSR context calls as not initialized #5651

Closed
klosixgaming-arch wants to merge 1 commit from upstream-pr/5651 into main
klosixgaming-arch commented 2026-10-14 03:43:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-14T03:43:28Z.


What

scePsmlMfsrGetContextBufferRequirement1100, CreateContext1100 and GetDispatchMfsrPacket1100 already return 0x8A810001 (not initialized) without reading their arguments, as the MFSR runtime is never initialized here (scePsmlMfsrInit throws). Their versioned counterparts take the same three argument shapes and now give the same answer:

  • scePsmlMfsrGetContextBufferRequirement800M3_2
  • scePsmlMfsrCreateContext800M3_2, scePsmlMfsrCreateContext1300
  • scePsmlMfsrGetDispatchMfsrPacket900, 1000, 1300

PPSA28416 imports the 1300 pair next to the 1100 requirement query, and PPSA25344 imports GetDispatchMfsrPacket1000. guest_psml checks 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_psml passes, tools/check_conventions.py --base origin/main passes. No title tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

https://claude.ai/code/session_01Dh1MhYBFyzxRceoAxrepZ6

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4852630589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5651). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-14T03:43:28Z. --- ### What `scePsmlMfsrGetContextBufferRequirement1100`, `CreateContext1100` and `GetDispatchMfsrPacket1100` already return `0x8A810001` (not initialized) without reading their arguments, as the MFSR runtime is never initialized here (`scePsmlMfsrInit` throws). Their versioned counterparts take the same three argument shapes and now give the same answer: - `scePsmlMfsrGetContextBufferRequirement800M3_2` - `scePsmlMfsrCreateContext800M3_2`, `scePsmlMfsrCreateContext1300` - `scePsmlMfsrGetDispatchMfsrPacket900`, `1000`, `1300` PPSA28416 imports the 1300 pair next to the 1100 requirement query, and PPSA25344 imports `GetDispatchMfsrPacket1000`. `guest_psml` checks 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_psml` passes, `tools/check_conventions.py --base origin/main` passes. No title tested. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Dh1MhYBFyzxRceoAxrepZ6
github-actions[bot] commented 2026-10-14 03:44:12 +00:00 (Migrated from github.com)

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
Library Name
libScePsml_debug scePsmlMfsrCreateContext1300
libScePsml_debug scePsmlMfsrCreateContext800M3_2
libScePsml_debug scePsmlMfsrGetContextBufferRequirement800M3_2
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1000
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1300
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket900
⚪ 6 behaviourally empty (constant return or throw)
Library Name
libScePsml_debug scePsmlMfsrCreateContext1300
libScePsml_debug scePsmlMfsrCreateContext800M3_2
libScePsml_debug scePsmlMfsrGetContextBufferRequirement800M3_2
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1000
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1300
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket900
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160398585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5651#issuecomment-6160398585). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T03:44:12Z. --- <!-- progress-report --> ### Progress report (a310431 → 7315fc0) 📈 **System libraries**: 88.35% (+0.16%, +6 implemented functions) <details> <summary>✅ 6 implemented</summary> | Library | Name | | - | - | | libScePsml_debug | `scePsmlMfsrCreateContext1300` | | libScePsml_debug | `scePsmlMfsrCreateContext800M3_2` | | libScePsml_debug | `scePsmlMfsrGetContextBufferRequirement800M3_2` | | libScePsml_debug | `scePsmlMfsrGetDispatchMfsrPacket1000` | | libScePsml_debug | `scePsmlMfsrGetDispatchMfsrPacket1300` | | libScePsml_debug | `scePsmlMfsrGetDispatchMfsrPacket900` | </details> <details> <summary>⚪ 6 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libScePsml_debug | `scePsmlMfsrCreateContext1300` | | libScePsml_debug | `scePsmlMfsrCreateContext800M3_2` | | libScePsml_debug | `scePsmlMfsrGetContextBufferRequirement800M3_2` | | libScePsml_debug | `scePsmlMfsrGetDispatchMfsrPacket1000` | | libScePsml_debug | `scePsmlMfsrGetDispatchMfsrPacket1300` | | libScePsml_debug | `scePsmlMfsrGetDispatchMfsrPacket900` | </details>
adriadam10 commented 2026-10-14 12:42:07 +00:00 (Migrated from github.com)

Imported 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 threw NotImplemented_nid_no_patch on main; they now return 0x8A810001 without 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 where main threw 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 (including nullptr arguments returning 0x8A810001) 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5518036667 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5651#pullrequestreview-5518036667). Originally posted by [adriadam10](https://github.com/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 threw `NotImplemented_nid_no_patch` on `main`; they now return `0x8A810001` without 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 where `main` threw 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 (including `nullptr` arguments returning `0x8A810001`) 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.
github-actions[bot] commented 2026-10-15 08:35:20 +00:00 (Migrated from github.com)

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.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestPsml.cpp
PR 6361 core/libs/prx/libScePsml_debug/Export.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187972101 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5651#issuecomment-6187972101). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:35:20Z. --- <!-- pr-overlap --> 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 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestPsml.cpp` | | [PR 6361](https://www.github.com/boykopovar/AnyPS5/pull/6361) | `core/libs/prx/libScePsml_debug/Export.cpp` |
klosixgaming-arch commented 2026-10-16 22:19:58 +00:00 (Migrated from github.com)

Imported 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6225790243 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5651#issuecomment-6225790243). Originally posted by [klosixgaming-arch](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5651
No description provided.