feat(libSceGnmDriver): expose regular DingDong marker #18209
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18209"
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 DonRyuzaki on 2026-11-10T21:12:09Z.
What
Add
sceGnmInsertDingDongMarkerto regularlibSceGnmDriver. In #17581, inFAMOUS Second Son (CUSA00223) imports NIDNfvOrNzy6skfrom that provider, but currentmainexports the writer only fromlibSceGnmDriverForNeoMode. The regular wrapper writes the same four-dword PM4 NOP as the existing Neo writer, refuses a null or non-four-word buffer, and uses_nid_disambig1to retain the guest NID without duplicating the host export name.This removes one reported unresolved import. The title has other unresolved imports, so no launch claim is made. Open #17396 tests the Neo provider’s marker; this PR adds behavioral coverage for the regular provider. Open #17711 and #17942 implement different GNM writers. Their shared-file patches were compared and do not own this NID. #6977 is a broad draft integration branch and does not define this function in regular GNM.
Tested
0aa98c0a07c74b1ebc8b9389185b6ff1d2978b38, head67a7d120088b1e0dde8ab41020b9a0d1f261cab8: fulllibsruntime andguest_gnm_driver_testsbuilt with two compiler jobs at below-normal priority; the 833-step build completed, including PRX patching.ctest --test-dir build -R ^guest_gnm_driver$ --output-on-failure --repeat until-fail:3: three passes. The new assertions check a null buffer, sizes 3 and 5 without buffer mutation, the exact0xc0021000, 0, 0, 0packet for size 4, and the next-word sentinel.main02c52411e5b4df59e192301818182a228a9d353b:ctypes.CDLLloads the built regular PRX, but looking upNfvOrNzy6skfails withundefined symbol. The regular GNM paths did not change between that base and the tested base. On the tested head, the same lookup succeeds;readelf --dyn-syms --wideshowsNfvOrNzy6skas a defined function in regularlibSceGnmDriver.prx.tools/check_conventions.py --base origin/main,core/libs/tests/test_public_headers.py --audit-only(407 libraries, 33,860 exports), andgit diff --check origin/main...HEADpass.pr_overlap.pycould not run becauseghis unavailable locally; the open #17396, #17711, #17942, and draft #6977 changes were inspected manually for ownership of this NID.67a7d120; it was subsequently rebased without changing the feature patch.Rebased-head validation (November 10)
Current head
684b08b5fde958f7a57d8fe008a4304020fd2918is based on upstream4306c608e2a552d5c96f11679332a222a4683ef9, including both worker-spin fixes. On this exact source, full Linuxlibsandguest_gnm_driver_testsrebuilt successfully with two below-normal compiler jobs.guest_gnm_driverandpublic_headerseach passed three consecutive runs (6/6, no skips). The changed source matched the rebased head byte-for-byte; the patched regular PRX SHA-256 was2f88badd8098786523aff897a6807f18809f41bc59557e6d69c88daa520c2a69. The prior head had a successful dynamic NID and packet check, which was not repeated on the rebase. Emscripten portability, Progress report, and Conventions passed on this head; the hosted Windows job passed; hosted Linux and specialized PR jobs were skipped.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 MarcZX10 on 2026-11-10T21:21:10Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation matches the existing NeoMode four-dword NOP packet and the new test covers null, wrong-size, packet-content, and adjacent-word behavior; I’m leaving a comment while hosted Windows CI is still running.
What I ran
PR #18209 head
67a7d120088b1e0dde8ab41020b9a0d1f261cab8. GitHub reports based66e6aac01bdf52b7a0a97b255a4110e2efe03a3; the no-build precheck used the newer livemaintip41b9e25ddc2b29c1b2fffb4df7aaf495a8867fe0and its merge preview was clean. The commits between the author-reported test base0aa98c0a07c74b1ebc8b9389185b6ff1d2978b38and that live tip change unrelated libraries/docs, not GNM.Environment: Linux x86_64, Debian glibc 2.36; Python 3.11.2; GCC 12.2.0; Git 2.39.5. I inspected all three changed files and the existing NeoMode implementation/test.
Results
NfvOrNzy6sk.main; the heuristic warning is disproved by the explicit CMake registration.Precheck and CI output
git diff --checkproduced no output. The ABI audit reported"status": "passed"and computedNfvOrNzy6skfor the new declaration/definition. The live stack check reported a clean merge preview. At the final CI refresh, the Windows job wasin_progress; the other listed build matrix jobs were skipped.Negative control
Not run by me. The PR description reports that the preceding main build lacks
NfvOrNzy6skand the PR build exports it; I did not independently reproduce those lookups.Findings
No blocking or non-blocking source findings in the three changed files.
Sources
Not verified
I did not run the local build or CTest, independently reproduce the author’s negative control, or test on a console/GPU. The hosted Windows job had not finished when I refreshed its status.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-10T21:43:00Z.
Review: COMMENTED
Re-checked — Windows CI incomplete
The changed GNM test passed, but the Windows job failed on three worker-spin tests; the run does not establish whether those timeouts reproduce on the base.
What I ran
Reviewed head
67a7d120088b1e0dde8ab41020b9a0d1f261cab8against current basec3aa80ce32bd0e9161dec09cc1acde6c437ea4b3; the exact-head merge preview is clean. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0, CMake 3.25.1. I reran the no-build precheck and read the hosted Windows job log. I did not build or run CTest locally.Results
guest_gnm_driverpassed in 0.12 seconds.guest_job_manager_worker_spintests timed out.Precheck table and hosted output
Raw Windows job output:
Negative control
No negative control was run by me. I did not reproduce the author's reported export comparison.
Findings
Blocking
None substantiated in the changed GNM implementation or test.
Non-blocking
The hosted Windows job remains failed on the three worker-spin timeouts. They are outside this PR's changed files, but I did not run them against the base and cannot determine whether they are pre-existing. The passing
guest_gnm_driverresult does not make the overall hosted job pass.Sources
Not verified
No local build or CTest, base comparison for the worker-spin timeouts, or console/GPU run was performed. The hosted job did not complete successfully.
To get this to a good state
Compare or rerun the three timed-out tests on the base to establish whether they are pre-existing, and obtain a successful required Windows run. I will refresh the head and rerun the no-build precheck if the PR changes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T21:16:52Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
Head
684b08b5fde958f7a57d8fe008a4304020fd2918. The change adds the regularlibSceGnmDriverDingDong marker writer under the disambiguated export name, with a unit test beside the existing marker tests.What I ran
repo_read.py), and compared the new writer with the Neo writersceGnmInsertDingDongMarkerand the regularNophelper.Results
Commands and output
Findings
Blocking: none.
Non-blocking: none.
The new writer (
core/libs/prx/libSceGnmDriver/Export.cpp:444-448) rejects a null buffer and any size other than 4, and otherwise callsNop(cmd, 3). That helper writes the headerHeader(OpNop, 3)and zero-fills three body words, which is the same packet the Neo writer produces. The test (core/libs/tests/GuestGnmDriver.cpp:73-81) covers null, sizes 3 and 5 without buffer changes, and the exact packet for size 4. The declaration incore/libs/prx/libSceGnmDriver/include/Api.hpp:20matches the definition.Sources:
Not verified
guest_gnm_driverandpublic_headersruns, and the hosted Windows job are author-reported. I did not run them.NfvOrNzy6skfor this name does not appear in the repository, so I did not confirm that the disambiguated name maps to it. The description says a dynamic NID check passed on the earlier head67a7d120but was not repeated on the rebased head684b08b5.To get this to a good state
Nothing is required.
Optional: rerun the NID lookup from the description on head
684b08b5fde958f7a57d8fe008a4304020fd2918, since that check was not repeated after the rebase.