feat(libSceAjmi): consolidate native backend aliases #21533
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21533"
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 Mcm190 on 2026-11-16T10:58:50Z.
What
The nine libSceAjmi aliases from #21529, #21533 and #21535 are consolidated here, following https://github.com/boykopovar/AnyPS5/pull/21533#issuecomment-6918411898. They forward to the existing libSceAjm.native backend and share its contexts, instances and batches.
The branch is based on current main (
7c444b77ad) with one commit per group:38cdb99869— ATRAC9/MP3 parsers and error strings: sceAjmiDecAt9ParseConfigData, sceAjmiDecMp3ParseFrame and sceAjmiStrError. Includes the explicit parser-module-path correction from #21529.9b0289cc70— lifecycle, wait and cancel: sceAjmiInitialize, sceAjmiInstanceCreate, sceAjmiInstanceDestroy, sceAjmiBatchWait and sceAjmiBatchCancel.7b345db548— packed submission: sceAjmiBatchStartBuffer.The common native link and named/NID module fixture are defined once. One debt fragment,
ajmi-native-aliases.md, reconciles the pending-export entry, removes the nine implemented names from its table and records the remaining limits. libSceAjmi goes from 6/26 to 15/26 implemented exports. #21529 and #21535 are superseded by this PR.The firmware 13.42 symbol-table report in #15495 identifies each alias at its sceAjm twin's entry address in libSceAjmi.sprx (SHA-256 ff0dc985c1f7a6b25a766904e3a535b55e44d0d4b8872329d2bd6c019491df0b). Signatures and behavior follow the existing native implementations. The original PR investigations remain linked above. PPSA01341 call-site inspection corroborated native initialization, instance and wait argument widths only; it does not establish callee behavior or the cancellation ABI. No new console evidence, codec support or title-startup improvement is claimed.
Native limits remain: synchronous jobs, ignored wait timeouts and initialization reserved values, cancellation that does not interrupt execution, incompletely validated packed-submission and wait-result pointers, unverified MP3/original-file-length layouts, and native exceptions for unsupported flags, chunks and codec operations. Finalization and memory/module registration remain unimplemented in AJMI.
#21182 belongs to another author and remains separate: it implements control/split builders, with no shared exports. Its neighboring InventoryExports.hpp hunk still overlaps; there are now only two AJMI branches to reconcile instead of four. This combined PR builds independently of #21182 and does not include its changes.
Tested
Fedora 45, x86-64 AMD Ryzen 7 5800X, GCC 16.2.1, Release, bundled dependencies, combined head
7b345db548.ctest --test-dir /tmp/anyps5-ajmi-review-build -R '^(guest_ajmi_.*|guest_ajm|guest_ajm_vibration|public_headers)$' --output-on-failure. Guest-memory tests ran outside the sandbox, which blocks process_vm_readv/writev.python3 tools/check_conventions.py --base origin/main,python3 tools/check_test_registration.py /tmp/anyps5-ajmi-review-buildandgit diff --check origin/main...HEADpass.debt_fold.py --checkremains blocked by the pre-existingdocs-nkwebkit-drop-readded-count-lines.mdfragment, whose target matches no libSceNKWebKit entry; no unrelated debt files were changed.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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T11:01:05Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
c9713b644c:tools/check_conventions.pypassed;git diff --checkclean.guest_ajmi_lifecycle_aliases_testsbuilt cleanly.guest_ajmi_lifecycle_contexts_unpatched,guest_ajmi_lifecycle_instances_unpatched,guest_ajmi_lifecycle_batches_unpatched,guest_ajmi_lifecycle_contexts_nid,guest_ajmi_lifecycle_instances_nid,guest_ajmi_lifecycle_batches_nid):core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/InventoryExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T11:43:36Z.
Review: COMMENTED
Reviewed — comments
The alias implementations forward to the shared native backend, but I did not independently run the reported checks or read every changed file, so a formal approval is not justified.
What I ran
Reviewed head
9b7dc3af8eac565235798576a42887014268602busing the prepared review bundle and pinned repository reader. No build or tests were run. The author reports a Fedora 45 build and focused checks indescription.md; these were not independently verified.Results
Findings
Blocking
None verified.
Non-blocking
Not verified
I read
description.md,commits.md,manifest.json,diff.patch,core/libs/prx/libSceAjmi/CMakeLists.txt,core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/InventoryExports.hpp, anddocs/dev/debt/changes/ajmi-native-aliases.md. I did not read the full contents ofLifecycleAliases.cmake,Parsers.cmake,Submission.cmake, or all changed test sources; therefore their behavior and the complete changed-file set are not fully verified. No Windows runtime, console, or title execution was performed.To get this to a good state
Nothing is required. Optional: run the author-listed build and checks on this head and include the results in the review record.