feat(libSceSdma): declare _sceSdmaNop import #9620

Closed
xdCloudy wants to merge 2 commits from upstream-pr/9620 into main
xdCloudy commented 2026-10-22 04:42:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T04:42:25Z.


Update (2026-10-25)

The branch is based on current upstream main at f26434afa3. Corrected the APS5_EXPORT registration literal to verified NID vPP6vKHY8Tg. Local conventions and diff-check pass. Refreshed hosted checks are running; product/platform jobs are skipped.

What

Adds the _sceSdmaNop import declaration to libSceSdma. The name and NID are present in the PS5 3.20 libSceSdma import-stub list; tools/nid_names.py recomputes the NID as vPP6vKHY8Tg. Its signature and behavior are unverified, so the no-parameter wrapper throws through NotImplemented_nid_no_patch for import resolution only.

Open PR #9173 also edits libSceSdma/Export.cpp, but it changes other exports. Manual exact-name/NID review and the live pr_overlap.py scan found no duplicate or conflicting hunk. No dependency is required.

Tested

  • Windows: libSceSdma compiled and linked successfully
  • Ubuntu under WSL: libSceSdma compiled and linked successfully
  • python -I tools/check_conventions.py --base upstream/main --head HEAD — passed
  • git diff --check upstream/main...HEAD — passed
  • python -I tools/nid_names.py --name _sceSdmaNop --json — recomputed vPP6vKHY8Tg
  • Independent exact library/NID audit against current main and the shared-file PR #9173 — no duplicate
  • python -I tools/pr_overlap.py --branch feat/ps5-sdma-nop-1-export --repo boykopovar/AnyPS5 --jobs 8 — no overlap with open PRs
  • No runtime tests or full CI were run

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 (not applicable)
  • 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:4962214705 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9620). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-22T04:42:25Z. --- ### Update (2026-10-25) The branch is based on current upstream main at f26434afa36e58778a9ff4b948aea52dff19eb0c. Corrected the APS5_EXPORT registration literal to verified NID vPP6vKHY8Tg. Local conventions and diff-check pass. Refreshed hosted checks are running; product/platform jobs are skipped. ### What Adds the `_sceSdmaNop` import declaration to `libSceSdma`. The name and NID are present in the [PS5 3.20 libSceSdma import-stub list](https://github.com/DNNDHH/PS5-3.20_Libs/blob/d6eafa54d0464258574fd2f71889754d05a5bc93/libSceSdma.c); `tools/nid_names.py` recomputes the NID as `vPP6vKHY8Tg`. Its signature and behavior are unverified, so the no-parameter wrapper throws through `NotImplemented_nid_no_patch` for import resolution only. Open PR #9173 also edits `libSceSdma/Export.cpp`, but it changes other exports. Manual exact-name/NID review and the live `pr_overlap.py` scan found no duplicate or conflicting hunk. No dependency is required. ### Tested - Windows: `libSceSdma` compiled and linked successfully - Ubuntu under WSL: `libSceSdma` compiled and linked successfully - `python -I tools/check_conventions.py --base upstream/main --head HEAD` — passed - `git diff --check upstream/main...HEAD` — passed - `python -I tools/nid_names.py --name _sceSdmaNop --json` — recomputed `vPP6vKHY8Tg` - Independent exact library/NID audit against current `main` and the shared-file PR #9173 — no duplicate - `python -I tools/pr_overlap.py --branch feat/ps5-sdma-nop-1-export --repo boykopovar/AnyPS5 --jobs 8` — no overlap with open PRs - No runtime tests or full CI were run <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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 (not applicable) - [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
fogydes commented 2026-10-22 08:24:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-22T08:24:20Z.


Reviewed; verified the NID chain end-to-end: compute_nid("_sceSdmaNop") under tools/nid_names.py returns vPP6vKHY8Tg, which is exactly the NID the PS5 3.20 stub list binds to _sceSdmaNop (checked against the cited generation of the stub file), so the guest import resolves to this declaration and there is no name collision with the 26 exports already in the table. Body throws through NotImplemented_nid_no_patch per the unimplemented-export rule, the pending-export count stays 26 with the new export under its own bullet, and the debt entry says "for import resolution only", which is both accurate and the honest framing. No test expected for a declaration-only change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336242931 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9620#issuecomment-6336242931). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-22T08:24:20Z. --- Reviewed; verified the NID chain end-to-end: `compute_nid("_sceSdmaNop")` under `tools/nid_names.py` returns `vPP6vKHY8Tg`, which is exactly the NID the PS5 3.20 stub list binds to `_sceSdmaNop` (checked against the cited generation of the stub file), so the guest import resolves to this declaration and there is no name collision with the 26 exports already in the table. Body throws through `NotImplemented_nid_no_patch` per the unimplemented-export rule, the pending-export count stays 26 with the new export under its own bullet, and the debt entry says "for import resolution only", which is both accurate and the honest framing. No test expected for a declaration-only change.
MarcZX10 commented 2026-10-22 09:25:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T09:25:35Z.

Review: CHANGES_REQUESTED


The _sceSdmaNop declaration matches the 3.20 inventory NID, recomputes to vPP6vKHY8Tg, and throws through NotImplemented_nid_no_patch for import resolution only. The independent review verifies no collision with the existing exports; the #9173 shared-file edits are distinct. Exact-head conventions and git diff --check pass. Windows and WSL target builds are author-reported; product CI was skipped and no runtime test is expected for a throwing declaration.

I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5612025040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9620#pullrequestreview-5612025040). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T09:25:35Z. **Review:** CHANGES_REQUESTED --- The `_sceSdmaNop` declaration matches the 3.20 inventory NID, recomputes to `vPP6vKHY8Tg`, and throws through `NotImplemented_nid_no_patch` for import resolution only. The independent review verifies no collision with the existing exports; the #9173 shared-file edits are distinct. Exact-head conventions and `git diff --check` pass. Windows and WSL target builds are author-reported; product CI was skipped and no runtime test is expected for a throwing declaration. I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
MarcZX10 commented 2026-10-22 13:11:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T13:11:09Z.

Review: CHANGES_REQUESTED


I withdraw the earlier #5239 intake-hold objection. I checked exact head 182ce1d9293e10630493f1662e8758589c9a284a against current main 3ca07d086d5f44fbe3c00370e7f03953ab46ca1b: whitespace and conventions pass, tools/nid_names.py --name _sceSdmaNop --json recomputes vPP6vKHY8Tg, and Export.cpp passes a local GCC 12.2 C++20 syntax-only compile with -Wall -Wextra -Werror. The current-main merge tree is clean. No runtime test is expected for a throwing import declaration; Windows/WSL target builds are author-reported and hosted product jobs are skipped.

The PR base is d6eafa54d0464258574fd2f71889754d05a5bc93, behind current main. The repository requires keeping branches up to date with main. Please rebase/update and refresh the convention/NID/overlap checks on the resulting head. The current shared-file edits in #9173 are reported as distinct and do not duplicate this export. This request is for the branch-update rule only, not the obsolete intake hold.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5614739784 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9620#pullrequestreview-5614739784). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T13:11:09Z. **Review:** CHANGES_REQUESTED --- I withdraw the earlier #5239 intake-hold objection. I checked exact head `182ce1d9293e10630493f1662e8758589c9a284a` against current main `3ca07d086d5f44fbe3c00370e7f03953ab46ca1b`: whitespace and conventions pass, `tools/nid_names.py --name _sceSdmaNop --json` recomputes `vPP6vKHY8Tg`, and `Export.cpp` passes a local GCC 12.2 C++20 syntax-only compile with `-Wall -Wextra -Werror`. The current-main merge tree is clean. No runtime test is expected for a throwing import declaration; Windows/WSL target builds are author-reported and hosted product jobs are skipped. The PR base is `d6eafa54d0464258574fd2f71889754d05a5bc93`, behind current main. The repository requires keeping branches up to date with main. Please rebase/update and refresh the convention/NID/overlap checks on the resulting head. The current shared-file edits in #9173 are reported as distinct and do not duplicate this export. This request is for the branch-update rule only, not the obsolete intake hold.

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!9620
No description provided.