docs(debt): fold the PPSA15246 submit sizes into the PM4 type-0 entry #18091

Merged
xXPBSXx merged 4 commits from upstream-pr/18091 into main 2026-11-21 09:19:55 +00:00
xXPBSXx commented 2026-11-10 11:25:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-11-10T11:25:07Z.


What

The PR first added a second entry for the PPSA15246 stop; the review pointed to the existing 'PM4 type-0 packets' entry in docs/dev/debt/libSceAgcDriver.md (line 249 on main). The new entry is removed and the new facts are added to that entry as one sentence:

Three later runs rejected 6387 dwords rather than the 6369 of an earlier run; in one of them the submit starts 0x5620 bytes into a region whose previous accepted submit of 5512 dwords (0x5620 bytes) began at its base, a dump has 4097 non-zero dwords, and a type 0/2/3 walk from dword 15 does not reach dword 6382.

(The entry was 1077 characters on main and is 1391 now; the added sentence is 314 characters.)

Tested

Docs only; python -I tools/check_conventions.py --base upstream/main passes. PPSA15246 was run on the host (not a console measurement) in three runs, 2026-11-09 and twice on 2026-11-10 (UTC), and all three reject 6387 dwords ('unsupported PM4 packet type: header 0x00000000 at DWORD 15 of 6387'); the 6369 of the existing entry is from an earlier run. The buffer address differs per run. Trace run (APS5_TRACE_GPU=1): the rejected submit of 6387 dwords starts at 0x2d51a5620; 91 earlier submits of the region start at its base 0x2d51a0000 with 716 to 5512 dwords, and the last accepted one holds 5512 dwords (0x5620 bytes). Dump run: 6387 dwords, 4097 non-zero. An offline walk (type 0 and 3: ((h>>16)&0x3fff)+2 dwords, type 1 and 2: 1 dword) from DWORD 15 and from DWORDs 16 to 30 does not reach DWORD 6382. No console measurement was made. The dump is not attached.

Overlap: the open pull requests that change docs/dev/debt/libSceAgcDriver.md (152, found by listing all open pull requests by update time) were checked on 2026-11-10 at about 19:40 UTC against main 56c80b0917 (the branch merges into it without a conflict). 54 of them already conflict with main without this change and 98 merge cleanly with and without it; none conflicts only with this change, because the change is one sentence at the end of one existing entry.

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 (docs change)
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5240450257 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18091). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-11-10T11:25:07Z. --- ### What The PR first added a second entry for the PPSA15246 stop; the review pointed to the existing 'PM4 type-0 packets' entry in docs/dev/debt/libSceAgcDriver.md (line 249 on main). The new entry is removed and the new facts are added to that entry as one sentence: Three later runs rejected 6387 dwords rather than the 6369 of an earlier run; in one of them the submit starts 0x5620 bytes into a region whose previous accepted submit of 5512 dwords (0x5620 bytes) began at its base, a dump has 4097 non-zero dwords, and a type 0/2/3 walk from dword 15 does not reach dword 6382. (The entry was 1077 characters on main and is 1391 now; the added sentence is 314 characters.) ### Tested Docs only; python -I tools/check_conventions.py --base upstream/main passes. PPSA15246 was run on the host (not a console measurement) in three runs, 2026-11-09 and twice on 2026-11-10 (UTC), and all three reject 6387 dwords ('unsupported PM4 packet type: header 0x00000000 at DWORD 15 of 6387'); the 6369 of the existing entry is from an earlier run. The buffer address differs per run. Trace run (APS5_TRACE_GPU=1): the rejected submit of 6387 dwords starts at 0x2d51a5620; 91 earlier submits of the region start at its base 0x2d51a0000 with 716 to 5512 dwords, and the last accepted one holds 5512 dwords (0x5620 bytes). Dump run: 6387 dwords, 4097 non-zero. An offline walk (type 0 and 3: ((h>>16)&0x3fff)+2 dwords, type 1 and 2: 1 dword) from DWORD 15 and from DWORDs 16 to 30 does not reach DWORD 6382. No console measurement was made. The dump is not attached. Overlap: the open pull requests that change `docs/dev/debt/libSceAgcDriver.md` (152, found by listing all open pull requests by update time) were checked on 2026-11-10 at about 19:40 UTC against `main` `56c80b0917` (the branch merges into it without a conflict). 54 of them already conflict with `main` without this change and 98 merge cleanly with and without it; none conflicts only with this change, because the change is one sentence at the end of one existing entry. ### 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 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a (docs change) <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no --> AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gabichuuuuu commented 2026-11-10 17:50:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:50:10Z.

Review: COMMENTED


Read 29a226aaaf against main.

Defect. This duplicates an existing entry. docs/dev/debt/libSceAgcDriver.md:249 on main (PM4 type-0 packets, same CommandValidation.cpp) already records that PPSA15246 hits a zero header at DWORD 15 after a seven-dword NOP and an eight-dword ACQUIRE_MEM (15 valid dwords), that Driver::validate rejects it (CommandValidation.cpp:57-67: the header fails (header & 0xc0000000) == 0xc0000000 and is not a FillerPacket, Pm4.hpp:92), and that letting it through only moves the stop. The new entry describes the same stop for the same title. Its only new facts are the 6387-dword size (the existing entry says 6369), the base+0x5620 offset and that a type 0/2/3 walk from DWORD 15 does not reach DWORD 6382. Fold those into the existing entry instead of adding a second one.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846668389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18091#pullrequestreview-5846668389). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:50:10Z. **Review:** COMMENTED --- Read `29a226aaaf` against `main`. **Defect.** This duplicates an existing entry. `docs/dev/debt/libSceAgcDriver.md:249` on main (`PM4 type-0 packets`, same `CommandValidation.cpp`) already records that PPSA15246 hits a zero header at DWORD 15 after a seven-dword NOP and an eight-dword ACQUIRE_MEM (15 valid dwords), that `Driver::validate` rejects it (`CommandValidation.cpp:57-67`: the header fails `(header & 0xc0000000) == 0xc0000000` and is not a `FillerPacket`, `Pm4.hpp:92`), and that letting it through only moves the stop. The new entry describes the same stop for the same title. Its only new facts are the 6387-dword size (the existing entry says 6369), the `base+0x5620` offset and that a type 0/2/3 walk from DWORD 15 does not reach DWORD 6382. Fold those into the existing entry instead of adding a second one. Not run here; this is from reading the code. AI-assisted: yes.
MarcZX10 commented 2026-11-21 04:51:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:51:20Z.

Review: APPROVED


Reviewed — looks good

The documentation change is limited to adding a concise follow-up observation to the existing PPSA15246 entry; no defect is evident in the inspected code, though the new measurements are author-reported and their dump is not attached.

What I ran

  • Reviewed head 8334fd3ba9dc7b1ec712f231cc34c356b6ebabc6 and its prepared diff; no commands or tests were run.
  • Read description.md, commits.md, manifest.json, diff.patch, the changed debt entry, and the linked PM4 validation function using repo_read.py.

Results

Check Result Note
Patch scope passed One documentation line added
PM4 rejection behavior passed Validation throws on unsupported packet type
Tests and conventions not run Documentation-only change

Findings

Blocking

None.

Non-blocking

None.

Not verified

The added run counts, buffer address relationship, dump contents, and offline packet walk are reported in the PR description and cannot be independently confirmed from the repository; the dump is not attached. No tests or convention checker were run. The reader’s files.json was not available through the supplied reader interface, so excluded-file details were not independently checked; the manifest lists one changed file and marks its full text as included.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002921030 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18091#pullrequestreview-6002921030). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T04:51:20Z. **Review:** APPROVED --- # Reviewed — looks good The documentation change is limited to adding a concise follow-up observation to the existing PPSA15246 entry; no defect is evident in the inspected code, though the new measurements are author-reported and their dump is not attached. ## What I ran - Reviewed head `8334fd3ba9dc7b1ec712f231cc34c356b6ebabc6` and its prepared diff; no commands or tests were run. - Read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, the changed debt entry, and the linked PM4 validation function using `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Patch scope | passed | One documentation line added | | PM4 rejection behavior | passed | Validation throws on unsupported packet type | | Tests and conventions | not run | Documentation-only change | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The added run counts, buffer address relationship, dump contents, and offline packet walk are reported in the PR description and cannot be independently confirmed from the repository; the dump is not attached. No tests or convention checker were run. The reader’s `files.json` was not available through the supplied reader interface, so excluded-file details were not independently checked; the manifest lists one changed file and marks its full text as included. ## To get this to a good state Nothing is required.
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!18091
No description provided.