Skip to content

fix(tools): drop the acquire-memory cases that now match the console - #21513

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
kaiffeetasse:contrib/oracle-acquire-mem-now-matching
Nov 16, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
kaiffeetasse:contrib/oracle-acquire-mem-now-matching

Conversation

@kaiffeetasse

Copy link
Copy Markdown
Contributor

What

Drops the six agcbuild_{Acb,Dcb}AcquireMem_{a,b,c} lines from tools/library-oracle/known.tsv. Each of them recorded the ACQUIRE_MEM encoding; #18479, i.e. a difference that #18479 (8d21d67e96, fix(libSceAgc): encode ACQUIRE_MEM ranges and fields as the console does, merged 06:05:40Z today as 1613a3fb84) removed: the ACB and DCB encoders now produce the console's packet, so the replay compares equal and the entries are stale. Six deleted lines, no code.

Tested

Linux, Ubuntu 24.04 (kernel 6.8.0-51), GCC 13.3, work-queue/build-oracle built from main dcf3d15978 right before the run (library_oracle_replay libc libkernel libkernel_sys libSceRtc libSceHttp libSceNet libSceUserService libSceAgc, 389 targets), then python3 tools/library-oracle/library_oracle.py --build build-oracle:

  • Before, with main's known.tsv: 138 known findings, 6 new, 6 now matching, and the tool names them: NOW MATCHES agcbuild_AcbAcquireMem_a/_b/_c and NOW MATCHES agcbuild_DcbAcquireMem_a/_b/_c.
  • After removing the six lines, same modules, same command: 138 known findings, 6 new, 0 now matching.
  • The six remaining new cases are agcbuild_{Acb,Dcb}CopyData_{a,b,c}, which return a packet where known.tsv records throw (more than six arguments; the console's stack arguments are not known). That is the replay's call signature and is what open PR fix(tools): pass every replay argument explicitly #21326 addresses; it is untouched here on purpose.
  • python3 tools/library-oracle/test_library_oracle.py: 22 tests, OK (0.011 s).
  • python3 tools/check_conventions.py --base origin/main: All conventions checks passed.
  • python3 tools/pr_overlap.py --branch contrib/oracle-acquire-mem-now-matching --jobs 8, verbatim: probed 1684/1684 pull requests, 18 share files or exports, merged 18/18 pull requests into the base, cannot confirm overlap with PR 19191: tools/library-oracle/known.tsv, overlap check failed closed; manually compare every reported PR branch before opening this one. The one named row is PR fix(libSceAgc): encode direct register writes as the console does #19357, tools/library-oracle/known.tsv L59-63.
  • Hand check of the report: git merge-tree --write-tree HEAD pr-19357 answers rc=1 CONFLICT (content): Merge conflict in tools/library-oracle/known.tsv. The cause is adjacency, not the same case: fix(libSceAgc): encode direct register writes as the console does #19357 deletes agcbuild_CbSetShRegisterRangeDirect_c and agcbuild_CbSetUcRegisterRangeDirect_c (L59-60) immediately above the three agcbuild_DcbAcquireMem_* lines this PR deletes (L61-63); fix(libSceAgc): encode direct register writes as the console does #19357 keeps the whole ACQUIRE_MEM block as context and never touches it (grep AcquireMem over its diff hits only DcbAcquireMem_a as context next to its deletion). Whoever merges second re-applies three deleted lines by hand. Depends on: none.
  • git merge-tree --write-tree HEAD pr-19191 answers rc=1 only on core/libs/prx/libSceAgc/Command/include/Memory.hpp (that PR's own pre-existing conflict with main); known.tsv merges clean against it, and its hunks are the six agcbuild_{Acb,Dcb}PrimeUtcl2_* lines — a different case.
  • Against my own open fix(tools): pass every replay argument explicitly #21326, which also edits known.tsv (the CopyData/DmaData lines at L10-18 and L76-84): git merge-tree --write-tree HEAD pr-21326 is rc=0, clean.

Not tested: Windows and macOS (one data file for a Python tool, no platform code).

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

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 19357 tools/library-oracle/known.tsv L59-63

@oneandonlydean
oneandonlydean merged commit c3668a6 into boykopovar:main Nov 16, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants