libSceAjm: three exports need their argument lists and checks from the firmware module #13805

Closed
opened 2026-10-31 07:25:34 +00:00 by zaryabzip · 0 comments
zaryabzip commented 2026-10-31 07:25:34 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by zaryabzip on 2026-10-31T07:25:34Z.


What happens

Three libSceAjm exports still throw through NotImplemented_nid_no_patch on every call: sceAjmGetFailedInstance, sceAjmInstanceGetSize and sceAjmTelemetryGetLog. They're declared without parameters because no prototype is known, and they're the only todo exports in core/libs/prx/libSceAjm. The rest of that module is the shared Ajm implementation that libSceAjm.native also builds.

What's known

  • docs/dev/debt/libSceAjm.md records only that the names and NIDs are defined function exports in the pinned 13.60 inventory; signatures and behaviour are unknown.
  • shadPS4, KytyPS5, fpPS4, sharpemu and rps5e (84a7887) have no bodies for any of them.
  • No open pull request touches them. A search of every open PR's diff for the three names found nothing.
  • @BunnyFl's earlier 13.42 runs of this library (#11238, #12372) covered batch job building, not these three.

What would settle it

For each export, from the firmware libSceAjm.sprx:

  • the argument list;
  • the checks, with their order and error codes;
  • what it writes and returns past them.

In particular:

  • sceAjmInstanceGetSize: is the size per codec (an instance id or codec type in, a byte count out), and is it a fixed table or a service call?
  • sceAjmGetFailedInstance: does it read state that a failed batch leaves on the context or batch, and what does it return when nothing failed?
  • sceAjmTelemetryGetLog: does it only reach the Ajm service, or does it fill a caller buffer from local state?

Also, are the three in libSceAjm.native.sprx too, or only in libSceAjm.sprx? Calls that only reach the service can stay unsupported here. Their local checks and argument lists would still replace the current placeholders.

What was checked

main at de83e8f270; tools/progress.py; emulator sources at shadPS4 0614ce32, KytyPS5 4919fdb6, sharpemu b1ec2866, fpPS4 04cefd43 and rps5e 84a7887; and the diffs of all open PRs.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6132386597 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/13805). Originally posted by [zaryabzip](https://github.com/zaryabzip) on 2026-10-31T07:25:34Z. --- ### What happens Three libSceAjm exports still throw through `NotImplemented_nid_no_patch` on every call: `sceAjmGetFailedInstance`, `sceAjmInstanceGetSize` and `sceAjmTelemetryGetLog`. They're declared without parameters because no prototype is known, and they're the only todo exports in `core/libs/prx/libSceAjm`. The rest of that module is the shared Ajm implementation that `libSceAjm.native` also builds. ### What's known - `docs/dev/debt/libSceAjm.md` records only that the names and NIDs are defined function exports in the pinned 13.60 inventory; signatures and behaviour are unknown. - shadPS4, KytyPS5, fpPS4, sharpemu and rps5e (84a7887) have no bodies for any of them. - No open pull request touches them. A search of every open PR's diff for the three names found nothing. - @BunnyFl's earlier 13.42 runs of this library (#11238, #12372) covered batch job building, not these three. ### What would settle it For each export, from the firmware `libSceAjm.sprx`: - the argument list; - the checks, with their order and error codes; - what it writes and returns past them. In particular: - `sceAjmInstanceGetSize`: is the size per codec (an instance id or codec type in, a byte count out), and is it a fixed table or a service call? - `sceAjmGetFailedInstance`: does it read state that a failed batch leaves on the context or batch, and what does it return when nothing failed? - `sceAjmTelemetryGetLog`: does it only reach the Ajm service, or does it fill a caller buffer from local state? Also, are the three in `libSceAjm.native.sprx` too, or only in `libSceAjm.sprx`? Calls that only reach the service can stay unsupported here. Their local checks and argument lists would still replace the current placeholders. ### What was checked `main` at de83e8f270; `tools/progress.py`; emulator sources at shadPS4 0614ce32, KytyPS5 4919fdb6, sharpemu b1ec2866, fpPS4 04cefd43 and rps5e 84a7887; and the diffs of all open PRs. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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#13805
No description provided.