feat(libSceAgcDriver): implement diagnostic fallbacks #9086
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9086"
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 xdCloudy on 2026-10-21T12:01:30Z.
What
Implement two diagnostic exports using behavior observed in the retail PS5
libSceAgcDriver.sprx:sceAgcDriverGetCoredumpAddressreturns the shared coredump-area pointer, which is null when no area is allocated. AnyPS5 currently disables coredump mode and allocates no such area, so the export returns null.sceAgcDriverSetTargetRingForDiagreturns0x8A6D0001(DRIVER_FEATURE_UNAVAILABLE), matching the retail export's observed response.A focused test covers both responses. The technical-debt entry records that coredump-area support and the retail diagnostic log are not implemented. No scanner, progress, UI, history, or percentage behavior changes are included.
Evidence: disassembly of the retail PS5
libSceAgcDriver.sprx; the coredump-mode and allocation state in AnyPS5.Tested
agc_driver_unsupported_diagnostics_teststarget and ranctest -R agc_driver_unsupported_diagnosticssuccessfully.python tools/check_conventions.py --base upstream/mainpassed.docs/dev/debt/libSceAgcDriver.md(main lines 11–12). A pairwisegit merge-treecheck confirms the conflict. The bot reports no same-export overlap. I manually checked the shared CMake warnings; they do not register or changeagc_driver_unsupported_diagnostics_tests.git diff --checkpassed.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 xdCloudy on 2026-10-21T17:01:05Z.
Manual review of the overlap report:
sceAgcDriverSubmitAcband other submission/packet behavior. This PR documents the separatesceAgcDriverGetCoredumpAddressandsceAgcDriverSetTargetRingForDiagresponses and removes those two names from the unresolved-stub list. The overlap is adjacent edits in the same debt list; the exports and implementation regions are distinct.agc_driver_unsupported_diagnostics_testsor duplicates this test name.The bot could not complete those comparisons because of the base conflicts, so this is a manual review. GitHub currently reports this PR mergeable. No unrelated PRs were changed.
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-21T23:44:07Z.
Review: APPROVED
Checked against the PS5 12.70 libSceAgcDriver module: sceAgcDriverGetCoredumpAddress returns the driver's coredump area pointer, which stays null until that area is allocated, and sceAgcDriverSetTargetRingForDiag logs and returns 0x8A6D0001. Both match what this PR does. Built on Linux together with main and your other open PRs; agc_driver_unsupported_diagnostics passes.
Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T01:33:50Z.
Relevant: the conflict with #7965 in docs/dev/debt/libSceAgcDriver.md (lines 11–12) is confirmed. I’ve updated this PR’s Depends on entry and asked #7965’s author to confirm the landing order; the report shows no same-export overlap. The other entries are skipped comparisons, so I’ll continue reviewing those shared files manually.
Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T02:26:17Z.
Follow-up to my note above: the remaining skipped comparisons have now been reviewed. The CMake warnings do not add a competing registration for gc_driver_unsupported_diagnostics_tests; the related edits are in other build/test sections. The debt-file warnings describe other AGC routines, while this PR's entries concern only sceAgcDriverGetCoredumpAddress and sceAgcDriverSetTargetRingForDiag. My earlier review summary is at https://github.com/boykopovar/AnyPS5/pull/9086#issuecomment-6321729579. #7965 remains the one confirmed adjacent debt-list conflict, and I have requested landing-order confirmation there.