feat(prx): declare the missing PS5 3.20 system exports #8106

Merged
juanpimg merged 4 commits from upstream-pr/8106 into main 2026-10-20 08:13:31 +00:00
juanpimg commented 2026-10-19 21:50:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-19T21:50:43Z.


What

Declares 154 PS5 3.20 system exports that AnyPS5 does not provide, across 30 libraries.

AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. The PS5 3.20 export inventory lists 154 such exports across 30 PS5 system libraries that AnyPS5 implements but does not provide. Declaring them as throwing stubs lets those titles load and reach their next blocker, which is what the bring-up process needs.

Every declaration calls NotImplemented_nid_no_patch and returns 0; none of them implements the function. A declaration with a credible prototype uses it and cites the source with a pinned commit. The rest are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.

Names and NIDs come from the PS5 3.20 export inventory at
github.com/DNNDHH/PS5-3.20_Libs@b2a77c09cd

Left out, and why:

  • libSceMbus and libSceSystemService are declared by #7821.
  • libSceAgc exports versioned names (sceAgcFuseShaderHalves_0200), so the 3.20 NID names a different symbol from the one AnyPS5 ships.
  • libSceAvPlayer.native compiles libSceAvPlayer/Export.cpp, so declaring there covers it.
  • libSceBluetoothHid, libSceAudiodec, libSceAvPlayer, libSceContentExport, libScePad, two libSceNpAuth exports and one libSceSysmodule export are provided by #6832, #6847, #6852, #7846, #7881, #7890, #6977 and #7889.
  • libSceVrTracker2 is provided by #7463 and #7690, and libSceVideodec is left to #8094, which creates the library and its technical-debt file.

tools/pr_overlap.py reports no shared export with any open pull request. It reports five open pull requests that edit the same technical-debt file (#7064, #7479, #7567, #7574 and #7726) without sharing an export; this change adds a separate bullet to those files, so a rebase resolves them.

tools/progress.py reports system libraries changing from 4137/5182 (79.83%) to 4137/5336 (77.53%). These are pending declarations, so the implemented count is unchanged.

Tested

CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.

  • Full build: cmake --build build --parallel, no error.
  • ctest --test-dir build --output-on-failure -j4: 1651 of 1652 pass. guest_sysmodule fails identically on origin/main (it aborts with "unknown id: 65535" in sceSysmoduleIsLoaded), so it is a pre-existing failure and not a regression. The video_out_* tests that need a display are skipped.
  • python3 tools/check_conventions.py --base origin/main: all conventions checks passed.
  • python3 tools/check_test_registration.py build: 1098 test executables, none unregistered.
  • python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports: no shared export with any open pull request.
  • Every declared symbol's NID was checked with the project's own tools/nid_names.py against the inventory, and every symbol was checked against origin/main so that no NID is exported twice.
  • No title was run: the contributor has no PS5 and no game dumps.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4927902036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8106). Originally posted by [juanpimg](https://github.com/juanpimg) on 2026-10-19T21:50:43Z. --- ### What Declares 154 PS5 3.20 system exports that AnyPS5 does not provide, across 30 libraries. AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. The PS5 3.20 export inventory lists 154 such exports across 30 PS5 system libraries that AnyPS5 implements but does not provide. Declaring them as throwing stubs lets those titles load and reach their next blocker, which is what the bring-up process needs. Every declaration calls `NotImplemented_nid_no_patch` and returns 0; none of them implements the function. A declaration with a credible prototype uses it and cites the source with a pinned commit. The rest are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library. Names and NIDs come from the PS5 3.20 export inventory at https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad Left out, and why: - `libSceMbus` and `libSceSystemService` are declared by #7821. - `libSceAgc` exports versioned names (`sceAgcFuseShaderHalves_0200`), so the 3.20 NID names a different symbol from the one AnyPS5 ships. - `libSceAvPlayer.native` compiles `libSceAvPlayer/Export.cpp`, so declaring there covers it. - `libSceBluetoothHid`, `libSceAudiodec`, `libSceAvPlayer`, `libSceContentExport`, `libScePad`, two `libSceNpAuth` exports and one `libSceSysmodule` export are provided by #6832, #6847, #6852, #7846, #7881, #7890, #6977 and #7889. - `libSceVrTracker2` is provided by #7463 and #7690, and `libSceVideodec` is left to #8094, which creates the library and its technical-debt file. `tools/pr_overlap.py` reports no shared export with any open pull request. It reports five open pull requests that edit the same technical-debt file (#7064, #7479, #7567, #7574 and #7726) without sharing an export; this change adds a separate bullet to those files, so a rebase resolves them. `tools/progress.py` reports system libraries changing from 4137/5182 (79.83%) to 4137/5336 (77.53%). These are pending declarations, so the implemented count is unchanged. ### Tested CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build. - Full build: `cmake --build build --parallel`, no error. - `ctest --test-dir build --output-on-failure -j4`: 1651 of 1652 pass. `guest_sysmodule` fails identically on `origin/main` (it aborts with "unknown id: 65535" in `sceSysmoduleIsLoaded`), so it is a pre-existing failure and not a regression. The `video_out_*` tests that need a display are skipped. - `python3 tools/check_conventions.py --base origin/main`: all conventions checks passed. - `python3 tools/check_test_registration.py build`: 1098 test executables, none unregistered. - `python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports`: no shared export with any open pull request. - Every declared symbol's NID was checked with the project's own `tools/nid_names.py` against the inventory, and every symbol was checked against `origin/main` so that no NID is exported twice. - No title was run: the contributor has no PS5 and no game dumps. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 21:57:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T21:57:24Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7064 docs/dev/debt/libSceAcm.md L9-10
PR 7495 docs/dev/debt/libSceRudp.md L15
PR 8204 docs/dev/debt/libSceNet.md L8 sceNetEtherStrton
PR 8254 docs/dev/debt/libSceNet.md L8

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 1384 core/libs/prx/libSceNgs2/CMakeLists.txt
PR 3205 core/libs/prx/libSceAjm.native/Export.cpp
PR 5021 core/libs/prx/libSceSysmodule/Export.cpp
PR 5836 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
PR 6039 docs/dev/debt/libSceNpSessionSignaling.md
PR 6044 core/libs/prx/libSceNgs2/CMakeLists.txt
PR 6879 core/libs/prx/libSceSaveData.native/Export.cpp
PR 6977 core/libs/prx/libSceDiscMap/Export.cpp
core/libs/prx/libSceNpAuth/Export.cpp
core/libs/prx/libSceSaveData.native/Export.cpp
docs/dev/debt/libSceDiscMap.md
PR 7149 core/libs/prx/libSceFiber/Export.cpp
docs/dev/debt/libSceFiber.md
PR 7201 core/libs/prx/libSceNet/Export.cpp
PR 7332 core/libs/prx/libSceNet/Export.cpp
core/libs/prx/libSceSysmodule/Export.cpp
PR 8203 core/libs/prx/libSceJpegDec/Export.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278283938 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8106#issuecomment-6278283938). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T21:57:24Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 7064](https://www.github.com/boykopovar/AnyPS5/pull/7064) | `docs/dev/debt/libSceAcm.md` [L9-10](https://github.com/boykopovar/AnyPS5/blob/a3c956a2f38a1007dd185983f464a7305fe15d83/docs/dev/debt/libSceAcm.md#L9-L10) | | | | [PR 7495](https://www.github.com/boykopovar/AnyPS5/pull/7495) | `docs/dev/debt/libSceRudp.md` [L15](https://github.com/boykopovar/AnyPS5/blob/a3c956a2f38a1007dd185983f464a7305fe15d83/docs/dev/debt/libSceRudp.md#L15) | | | | [PR 8204](https://www.github.com/boykopovar/AnyPS5/pull/8204) | `docs/dev/debt/libSceNet.md` [L8](https://github.com/boykopovar/AnyPS5/blob/a3c956a2f38a1007dd185983f464a7305fe15d83/docs/dev/debt/libSceNet.md#L8) | `sceNetEtherStrton` | | | [PR 8254](https://www.github.com/boykopovar/AnyPS5/pull/8254) | `docs/dev/debt/libSceNet.md` [L8](https://github.com/boykopovar/AnyPS5/blob/a3c956a2f38a1007dd185983f464a7305fe15d83/docs/dev/debt/libSceNet.md#L8) | | | 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 1384](https://www.github.com/boykopovar/AnyPS5/pull/1384) | `core/libs/prx/libSceNgs2/CMakeLists.txt` | | [PR 3205](https://www.github.com/boykopovar/AnyPS5/pull/3205) | `core/libs/prx/libSceAjm.native/Export.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceSysmodule/Export.cpp` | | [PR 5836](https://www.github.com/boykopovar/AnyPS5/pull/5836) | `core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md` | | [PR 6039](https://www.github.com/boykopovar/AnyPS5/pull/6039) | `docs/dev/debt/libSceNpSessionSignaling.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceNgs2/CMakeLists.txt` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/libs/prx/libSceSaveData.native/Export.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceDiscMap/Export.cpp`<br>`core/libs/prx/libSceNpAuth/Export.cpp`<br>`core/libs/prx/libSceSaveData.native/Export.cpp`<br>`docs/dev/debt/libSceDiscMap.md` | | [PR 7149](https://www.github.com/boykopovar/AnyPS5/pull/7149) | `core/libs/prx/libSceFiber/Export.cpp`<br>`docs/dev/debt/libSceFiber.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceNet/Export.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceNet/Export.cpp`<br>`core/libs/prx/libSceSysmodule/Export.cpp` | | [PR 8203](https://www.github.com/boykopovar/AnyPS5/pull/8203) | `core/libs/prx/libSceJpegDec/Export.cpp` |
blawesom commented 2026-10-20 07:49:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-20T07:49:38Z.


Rebase handoff — rebased onto current main (3fd1cc393, all three commits, authorship unchanged). Your series is self-deduplicating (commit 2 drops what commit 1 declares where main provides it), which needed two adaptations against current main:

  • BluetoothHid: your net effect on the file is zero (commit 1 declares parameterized versions of main's exports, commit 2 drops them) — but during the rebase the intermediate state replaced main's stubs, and the final drop then left main's guest_bluetooth_hid test with nothing to link against. The rebase restores main's stub block, so the file ends exactly where your series intends it: unchanged from main.
  • Debt files: your new 3.20-inventory entries unioned alongside main's newer entries (Acm, PlayGo, WebBrowserDialog); for SystemGesture and VrTracker2, main's current entries are kept and your new Unknown function info entries appended under the same section — your commit 2 then removes the VrTracker2 one itself, which I applied as a deletion of only your entry (main's own VrTracker2 debt stays).

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds; guest_bluetooth_hid, guest_playgo, guest_vr_tracker2, guest_web_browser_dialog pass; 1672/1675 — green apart from the three known main failures (#7584 BDA, #7784 guest-memory, tessellation), none from this PR; conventions pass (one pre-existing [debt-length] finding, warnings only).

Note for the thread: this PR is in the same family as #8021/#8028, where oneandonlydean is asking which database the unbacked names come from — the same answer will likely be wanted here for the parameterized BluetoothHid declarations.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/8106
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is f2ebaa3e8.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6286110930 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8106#issuecomment-6286110930). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-20T07:49:38Z. --- **Rebase handoff** — rebased onto current `main` (`3fd1cc393`, all three commits, authorship unchanged). Your series is self-deduplicating (commit 2 drops what commit 1 declares where `main` provides it), which needed two adaptations against current `main`: - **BluetoothHid:** your net effect on the file is zero (commit 1 declares parameterized versions of `main`'s exports, commit 2 drops them) — but during the rebase the intermediate state replaced `main`'s stubs, and the final drop then left `main`'s `guest_bluetooth_hid` test with nothing to link against. The rebase restores `main`'s stub block, so the file ends exactly where your series intends it: unchanged from `main`. - **Debt files:** your new 3.20-inventory entries unioned alongside `main`'s newer entries (Acm, PlayGo, WebBrowserDialog); for SystemGesture and VrTracker2, `main`'s current entries are kept and your new `Unknown function info` entries appended under the same section — your commit 2 then removes the VrTracker2 one itself, which I applied as a deletion of only your entry (`main`'s own VrTracker2 debt stays). Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): builds; `guest_bluetooth_hid`, `guest_playgo`, `guest_vr_tracker2`, `guest_web_browser_dialog` pass; **1672/1675 — green apart from the three known `main` failures** (#7584 BDA, #7784 guest-memory, tessellation), none from this PR; conventions pass (one pre-existing `[debt-length]` finding, warnings only). Note for the thread: this PR is in the same family as #8021/#8028, where oneandonlydean is asking which database the unbacked names come from — the same answer will likely be wanted here for the parameterized BluetoothHid declarations. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/8106 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `f2ebaa3e8`.
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!8106
No description provided.