fix(agc): keep CPU stores made after a deferred DCC key store was recorded #6186

Open
ee6aba54 wants to merge 37 commits from upstream-pr/6186 into main
ee6aba54 commented 2026-10-15 01:17:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-15T01:17:16Z.


What

After a storage write-back the driver records a fill of the "uncompressed" DCC keys into the keys' host import (StoreUncompressedOnGpu, Recorder::QueueKeyStore). The fill lands whenever the GPU reaches it. A title that waited for its label, released the metadata block and reused it for something else had the 0xff pattern written over its new bytes. In PPSA15304 the reused block held a descriptor table, and the next dispatch built from it stopped the title in the recompiler:

[videoout] presentation failed: compute shader 0x1641a9c200: buffer descriptor uses an unsupported type

The change:

  • The queued key store takes a snapshot of the key bytes at record time and the batch stores the 0xff pattern through the changed-copy kernel of #6185: a dword is stored only where the import still holds the snapshot's value, so a CPU store made after the record keeps the CPU's value. A range whose pending writers are only earlier 0xff fills of the same keys stays guarded; a pending kernel of the title writing the keys, or a range without a device address or a snapshot, is filled as before. APS5_NO_GUARDED_KEY_STORE=1 restores the fills, and the [labels] line counts the guarded stores.
  • A unit shadow publish notes its pending write with its own value, so the key store queued right behind the publish of the key range's edge units stays guarded (the publish leaves the key bytes as they are).
  • The snapshot predicts the import: a title's key clear is a recorded fill of a known value, and after #5520 a third of the key stores in PPSA15304 had such a fill pending. The pending fills of known value are applied to the snapshot in note order, so the kernel stores over the clear's bytes and still keeps a later CPU store. APS5_TRACE_KEY_GUARD=1 prints the pending writers of the stores that stay unguarded.
  • The value compare cannot tell a late CPU store of the value the keys already held from no store. The queued store therefore collects the guest writes of its range before the snapshot, and when it is recorded, every 64 KiB block the CPU wrote since then is left as the CPU left it. The [labels] line counts those blocks. Without write watching, the value compare stays the only guard. Key dwords in such a block that the CPU did not write keep their old value instead of 0xff: write watching does not tell which dwords of a 64 KiB block were written, and the alternative, the value compare, overwrites a CPU store of the value the keys held. This is intended and recorded in docs/dev/debt/libSceAgcDriver.md.
  • The kernel's target is the device address of the keys in their import, taken from the start of the import's buffer (HostImportDeviceAddress, built on #6185's HostImportBufferStart), so an import whose buffer starts below its range (lead) is addressed at the keys.

Scope: the guard covers the deferred key stores; the unit shadow publishes (slab to import) stay unguarded, since a kernel over every published dword read the snapshot and the import over PCIe and halved the present rate of PPSA15304. #4794 stores results right behind the draw instead; on this title that mode (then APS5_EAGER_WRITEBACK=1) ran at 0.3 presents per second against 15 to 20 per 10 s with the deferred path and this guard, so the deferred path stays the one heavy titles need, and this guard keeps it safe where it crashed.

Tested

Linux, Ubuntu 24.04, NVIDIA GeForce RTX 5080 (driver 595.99.02). New test agc_guarded_key_store (a key clear recorded before the store: the keys end up stored; CPU stores made after the record survive, including one of the value the keys held, and the keys of a block the CPU left alone are stored). ctest -R agc_ passes. PPSA15304 on current main with #6185 alone stopped three times after 10 to 11 minutes in the section after the first drop with the descriptor fault above; with this change two runs of 20 and 25 minutes of continuous movement showed no fault, with 99.6 percent of the key stores guarded. Upstream's APS5_STORE_AT_LABEL=1 did not prevent the fault in the same section.

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; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: #6185
  • Fixes: none
  • Unblocks: PPSA15304 (no Game bring-up discussion yet)
  • GPUs tested: NVIDIA GeForce RTX 5080, driver 595.99.02, Ubuntu 24.04 (Linux)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4866770279 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186). Originally posted by [ee6aba54](https://github.com/ee6aba54) on 2026-10-15T01:17:16Z. --- ### What After a storage write-back the driver records a fill of the "uncompressed" DCC keys into the keys' host import (`StoreUncompressedOnGpu`, `Recorder::QueueKeyStore`). The fill lands whenever the GPU reaches it. A title that waited for its label, released the metadata block and reused it for something else had the 0xff pattern written over its new bytes. In PPSA15304 the reused block held a descriptor table, and the next dispatch built from it stopped the title in the recompiler: ``` [videoout] presentation failed: compute shader 0x1641a9c200: buffer descriptor uses an unsupported type ``` The change: - The queued key store takes a snapshot of the key bytes at record time and the batch stores the 0xff pattern through the changed-copy kernel of #6185: a dword is stored only where the import still holds the snapshot's value, so a CPU store made after the record keeps the CPU's value. A range whose pending writers are only earlier 0xff fills of the same keys stays guarded; a pending kernel of the title writing the keys, or a range without a device address or a snapshot, is filled as before. `APS5_NO_GUARDED_KEY_STORE=1` restores the fills, and the `[labels]` line counts the guarded stores. - A unit shadow publish notes its pending write with its own value, so the key store queued right behind the publish of the key range's edge units stays guarded (the publish leaves the key bytes as they are). - The snapshot predicts the import: a title's key clear is a recorded fill of a known value, and after #5520 a third of the key stores in PPSA15304 had such a fill pending. The pending fills of known value are applied to the snapshot in note order, so the kernel stores over the clear's bytes and still keeps a later CPU store. `APS5_TRACE_KEY_GUARD=1` prints the pending writers of the stores that stay unguarded. - The value compare cannot tell a late CPU store of the value the keys already held from no store. The queued store therefore collects the guest writes of its range before the snapshot, and when it is recorded, every 64 KiB block the CPU wrote since then is left as the CPU left it. The `[labels]` line counts those blocks. Without write watching, the value compare stays the only guard. Key dwords in such a block that the CPU did not write keep their old value instead of 0xff: write watching does not tell which dwords of a 64 KiB block were written, and the alternative, the value compare, overwrites a CPU store of the value the keys held. This is intended and recorded in `docs/dev/debt/libSceAgcDriver.md`. - The kernel's target is the device address of the keys in their import, taken from the start of the import's buffer (`HostImportDeviceAddress`, built on #6185's `HostImportBufferStart`), so an import whose buffer starts below its range (`lead`) is addressed at the keys. Scope: the guard covers the deferred key stores; the unit shadow publishes (slab to import) stay unguarded, since a kernel over every published dword read the snapshot and the import over PCIe and halved the present rate of PPSA15304. #4794 stores results right behind the draw instead; on this title that mode (then `APS5_EAGER_WRITEBACK=1`) ran at 0.3 presents per second against 15 to 20 per 10 s with the deferred path and this guard, so the deferred path stays the one heavy titles need, and this guard keeps it safe where it crashed. ### Tested Linux, Ubuntu 24.04, NVIDIA GeForce RTX 5080 (driver 595.99.02). New test `agc_guarded_key_store` (a key clear recorded before the store: the keys end up stored; CPU stores made after the record survive, including one of the value the keys held, and the keys of a block the CPU left alone are stored). `ctest -R agc_` passes. PPSA15304 on current `main` with #6185 alone stopped three times after 10 to 11 minutes in the section after the first drop with the descriptor fault above; with this change two runs of 20 and 25 minutes of continuous movement showed no fault, with 99.6 percent of the key stores guarded. Upstream's `APS5_STORE_AT_LABEL=1` did not prevent the fault in the same section. ### Checklist - [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 - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: #6185 - [x] Fixes: none - [x] Unblocks: PPSA15304 (no Game bring-up discussion yet) - [x] GPUs tested: NVIDIA GeForce RTX 5080, driver 595.99.02, Ubuntu 24.04 (Linux) - [x] AI-assisted: yes
ee6aba54 commented 2026-10-15 01:37:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-15T01:37:07Z.


The overlap with #6182 is the option list in the test binary's main (tests/Recorder.cpp), both add a --...-only entry at the same spot; whichever lands second rebases in a minute, no dependency.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6182381725 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#issuecomment-6182381725). Originally posted by [ee6aba54](https://github.com/ee6aba54) on 2026-10-15T01:37:07Z. --- The overlap with #6182 is the option list in the test binary's main (tests/Recorder.cpp), both add a `--...-only` entry at the same spot; whichever lands second rebases in a minute, no dependency.
Amoenus commented 2026-10-15 06:40:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-15T06:40:27Z.


Same-value late CPU store: GPU reproduction

At unchanged head dce8f47370a69581928466e3b93029a9b6e0d913, both agc_changed_copy and agc_guarded_key_store pass five runs each. Changing only the existing late store from 0x12345678u to 0u and its expected preserved value to zero fails 5/5 with:

AGC graphics: a guarded key store overwrote a CPU store made after it was recorded

Two-line reproducer on our fork; production is unchanged. This commit intentionally fails the test, not a proposed fix. Restoring the original head, rebuilding and rerunning both groups gives five passes each again. No internal skips; each run identifies the RTX 5080. Maximum iteration: 0.69s; same-value case 0.32s.

Environment: Windows 11 Enterprise 26200, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 5080, driver 610.62 / 32.0.16.1062. Built the recorder target/dependencies; shader caches disabled, APS5_NO_GUARDED_KEY_STORE and APS5_CHANGED_COPY_ALWAYS absent. Ran ctest -R '^agc_(guarded_key_store|changed_copy)$' -V --timeout 30 --repeat until-fail:5 -j 1; for the expected-failure variant, only agc_guarded_key_store with --repeat until-pass:5.

The shader sees value=0xffffffff, before=0, held=0 for both a same-value late store and no late store, so equality cannot distinguish them. Could the test retain this case? If preservation includes it, ordering/write provenance is needed beyond value equality; if the intended guest ordering forbids it, please state and test that constraint.

Scope: public synthetic test on this PR head, not current-main integration, AMD/Linux/console coverage, or attribution of Sonic's loading stop. AI-assisted: yes (Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186140753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#issuecomment-6186140753). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-15T06:40:27Z. --- <!-- codex-pr6186-same-value-gpu-v2 --> ### Same-value late CPU store: GPU reproduction At unchanged head `dce8f47370a69581928466e3b93029a9b6e0d913`, both `agc_changed_copy` and `agc_guarded_key_store` pass five runs each. Changing only the existing late store from `0x12345678u` to `0u` and its expected preserved value to zero fails **5/5** with: ```text AGC graphics: a guarded key store overwrote a CPU store made after it was recorded ``` [Two-line reproducer on our fork](https://github.com/Amoenus/AnyPS5/commit/44eca87f6fcbc864bcb4f548b28e8de4c5f6f6c7); production is unchanged. This commit intentionally fails the test, not a proposed fix. Restoring the original head, rebuilding and rerunning both groups gives five passes each again. No internal skips; each run identifies the RTX 5080. Maximum iteration: 0.69s; same-value case 0.32s. Environment: Windows 11 Enterprise 26200, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 5080, driver 610.62 / 32.0.16.1062. Built the recorder target/dependencies; shader caches disabled, `APS5_NO_GUARDED_KEY_STORE` and `APS5_CHANGED_COPY_ALWAYS` absent. Ran `ctest -R '^agc_(guarded_key_store|changed_copy)$' -V --timeout 30 --repeat until-fail:5 -j 1`; for the expected-failure variant, only `agc_guarded_key_store` with `--repeat until-pass:5`. The shader sees `value=0xffffffff`, `before=0`, `held=0` for both a same-value late store and no late store, so equality cannot distinguish them. Could the test retain this case? If preservation includes it, ordering/write provenance is needed beyond value equality; if the intended guest ordering forbids it, please state and test that constraint. Scope: public synthetic test on this PR head, not current-main integration, AMD/Linux/console coverage, or attribution of Sonic's loading stop. AI-assisted: yes (Codex).
ee6aba54 commented 2026-10-15 11:20:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-15T11:20:45Z.


Thanks, the reproduction is right. A late CPU store of the value the keys already held is indistinguishable from no store at all to the value compare. That case matters: zeroing reused memory that was already zero is exactly how a freed metadata block gets taken over. So preservation has to include it.

Pushed eb65a6577, which adds write provenance on top of the value compare:

  • QueueKeyStore collects the guest writes of the fill range (GuestMemory::CollectWritesUncached) right before it takes the snapshot, and keeps that generation with the store.
  • When the run is recorded, it collects the range again. Every 64 KiB tracker block the CPU wrote since that generation (the CPU stamps from ChangedBlocks, not the driver's own MarkWritten stamps) is left as the CPU left it. The kernel only runs over the other blocks, which keeps a store whatever value it wrote.
  • The [labels] line counts the key blocks left to a later CPU store.

agc_guarded_key_store now places the keys across a block boundary. Your same-value case is part of it: a late store of 0u must survive, and the keys of the other block must still be stored. With the provenance check disabled, the test fails. On Linux with an RTX 5080, agc_guarded_key_store and agc_changed_copy pass five runs each, and ctest -R agc_ passes.

Limits:

  • The block granularity is coarser than the store. Key bytes that share a 64 KiB block with a late CPU store keep their old value instead of 0xff. A title writing into a block of keys it still uses while their store is pending is racing the GPU anyway, while a write into a released block is the reuse this guards against.
  • Without write watching (an arena reserved without it) the value compare stays the only guard. The test then prints that the same-value case was not tested.
  • A same-value CPU store that lands after the run was recorded but before the GPU executes it is still covered only by the value compare.

In PPSA15304, two runs on top of current main (about 160,000 guarded key stores in the longer one) left no key block to a later CPU store, and neither run had a fault. So in that section the new check never changes what is stored, and it closes the same-value case for titles that do reuse such memory.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6190844364 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#issuecomment-6190844364). Originally posted by [ee6aba54](https://github.com/ee6aba54) on 2026-10-15T11:20:45Z. --- Thanks, the reproduction is right. A late CPU store of the value the keys already held is indistinguishable from no store at all to the value compare. That case matters: zeroing reused memory that was already zero is exactly how a freed metadata block gets taken over. So preservation has to include it. Pushed eb65a6577, which adds write provenance on top of the value compare: - `QueueKeyStore` collects the guest writes of the fill range (`GuestMemory::CollectWritesUncached`) right before it takes the snapshot, and keeps that generation with the store. - When the run is recorded, it collects the range again. Every 64 KiB tracker block the CPU wrote since that generation (the CPU stamps from `ChangedBlocks`, not the driver's own `MarkWritten` stamps) is left as the CPU left it. The kernel only runs over the other blocks, which keeps a store whatever value it wrote. - The `[labels]` line counts the key blocks left to a later CPU store. `agc_guarded_key_store` now places the keys across a block boundary. Your same-value case is part of it: a late store of `0u` must survive, and the keys of the other block must still be stored. With the provenance check disabled, the test fails. On Linux with an RTX 5080, `agc_guarded_key_store` and `agc_changed_copy` pass five runs each, and `ctest -R agc_` passes. Limits: - The block granularity is coarser than the store. Key bytes that share a 64 KiB block with a late CPU store keep their old value instead of 0xff. A title writing into a block of keys it still uses while their store is pending is racing the GPU anyway, while a write into a released block is the reuse this guards against. - Without write watching (an arena reserved without it) the value compare stays the only guard. The test then prints that the same-value case was not tested. - A same-value CPU store that lands after the run was recorded but before the GPU executes it is still covered only by the value compare. In PPSA15304, two runs on top of current main (about 160,000 guarded key stores in the longer one) left no key block to a later CPU store, and neither run had a fault. So in that section the new check never changes what is stored, and it closes the same-value case for titles that do reuse such memory.
oneandonlydean commented 2026-10-20 20:24:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T20:24:52Z.


Thanks for the rebase and the clear answers on #6185. One problem in the guarded key store's target address, the same lead point #6185 just fixed for the copy source:

StoreUncompressedOnGpu passes target = import->address + first, where first = HostImportOffset(*import, begin) = begin - base + lead is an offset into the import's buffer. But import->address is already the device address of base, i.e. buffer start + lead (entry.address = address + lead in the sparse import). So whenever an import has a lead, the target is lead bytes past the keys. The kernel then compares and stores 0xff up to lead bytes beyond the key range, into whatever guest memory follows, wherever that memory equals the snapshot's dword (zeros are common). The real keys aren't stored.

The fix is the helper from #6185: HostImportBufferStart(*import).device + first (or import->address - import->lead + first). agc_guarded_key_store builds its buffer offset as keysAddress - import->base, which assumes no lead, so it can't see this. A case with a lead (like the 0x1000-byte lead case you added to agc_changed_copy) would pin it. Leads only come from sparse dma-buf imports, so neither an NVIDIA proprietary driver nor a machine without udmabuf access reaches this path, which is probably why your runs didn't show it.

A smaller design point, for the description rather than code: after 960c01ac9, a 64 KiB block the CPU wrote after the queue keeps every byte as the CPU left it, so key dwords in that block the CPU did not write never get 0xff. That trades Amoenus's same-value case for stale keys around any single CPU store in a key block. If that's intended, please say so in the description and the debt entry.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6300697007 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#issuecomment-6300697007). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T20:24:52Z. --- Thanks for the rebase and the clear answers on #6185. One problem in the guarded key store's target address, the same `lead` point #6185 just fixed for the copy source: `StoreUncompressedOnGpu` passes `target = import->address + first`, where `first = HostImportOffset(*import, begin) = begin - base + lead` is an offset into the import's **buffer**. But `import->address` is already the device address of `base`, i.e. buffer start + `lead` (`entry.address = address + lead` in the sparse import). So whenever an import has a lead, the target is `lead` bytes past the keys. The kernel then compares and stores `0xff` up to `lead` bytes beyond the key range, into whatever guest memory follows, wherever that memory equals the snapshot's dword (zeros are common). The real keys aren't stored. The fix is the helper from #6185: `HostImportBufferStart(*import).device + first` (or `import->address - import->lead + first`). `agc_guarded_key_store` builds its buffer offset as `keysAddress - import->base`, which assumes no lead, so it can't see this. A case with a lead (like the 0x1000-byte lead case you added to `agc_changed_copy`) would pin it. Leads only come from sparse dma-buf imports, so neither an NVIDIA proprietary driver nor a machine without udmabuf access reaches this path, which is probably why your runs didn't show it. A smaller design point, for the description rather than code: after 960c01ac9, a 64 KiB block the CPU wrote after the queue keeps every byte as the CPU left it, so key dwords in that block the CPU did *not* write never get `0xff`. That trades Amoenus's same-value case for stale keys around any single CPU store in a key block. If that's intended, please say so in the description and the debt entry.
ee6aba54 commented 2026-10-21 23:01:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-21T23:01:08Z.


@oneandonlydean Thanks, that was a real error.

  • Target address: StoreUncompressedOnGpu now passes HostImportDeviceAddress(*import, begin), which is HostImportBufferStart(*import).device + HostImportOffset(*import, begin), so the lead is counted once. agc_guarded_key_store fills its keys at HostImportOffset(*import, keysAddress) instead of keysAddress - import->base, and checks HostImportDeviceAddress for an import with a 0x1000-byte lead (the keys' address, not lead bytes past it) and for its own import. The kernel itself does not run against an import with a lead here: those only come from sparse dma-buf imports, which this machine does not reach (/dev/udmabuf is not accessible to the test user).
  • CPU-written blocks: intended. Write watching tells which 64 KiB blocks the CPU wrote, not which dwords, and inside such a block the value compare cannot tell a CPU store of the value the keys held from no store. So the block is left to the CPU, and key dwords in it that the CPU did not write keep their old value. The description and a new entry in docs/dev/debt/libSceAgcDriver.md say so.

Both branches are merged with main a6dcea927 (keeping your merge into #6185).

Tested on Linux, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, same machine and GPU:

Tests main a6dcea927 #6186 head
agc_changed_copy, agc_guarded_key_store (not on main) pass
agc_recorder_read_list, agc_host_import_unmap, agc_parked_import_unmap, agc_host_import_retirement, agc_sparse_run_import, agc_sparse_run_import_copied, agc_draw_inputs_in_place, agc_draw_inputs_copied, agc_unit_shadow, agc_idle_publish_wait, agc_driver_graphics 11 of 11 pass 11 of 11 pass
VUID- lines 0 0

All 868 agc tests on the #6186 head pass except agc_driver_sample_order, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations, which fail the same way on main a6dcea927 on this machine. check_conventions.py passes on both branches.

Ubuntu 24.04, kernel 7.0.0, NVIDIA GeForce RTX 5080, driver 595.99.02.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328467250 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#issuecomment-6328467250). Originally posted by [ee6aba54](https://github.com/ee6aba54) on 2026-10-21T23:01:08Z. --- @oneandonlydean Thanks, that was a real error. - **Target address:** `StoreUncompressedOnGpu` now passes `HostImportDeviceAddress(*import, begin)`, which is `HostImportBufferStart(*import).device + HostImportOffset(*import, begin)`, so the `lead` is counted once. `agc_guarded_key_store` fills its keys at `HostImportOffset(*import, keysAddress)` instead of `keysAddress - import->base`, and checks `HostImportDeviceAddress` for an import with a 0x1000-byte lead (the keys' address, not `lead` bytes past it) and for its own import. The kernel itself does not run against an import with a lead here: those only come from sparse dma-buf imports, which this machine does not reach (`/dev/udmabuf` is not accessible to the test user). - **CPU-written blocks:** intended. Write watching tells which 64 KiB blocks the CPU wrote, not which dwords, and inside such a block the value compare cannot tell a CPU store of the value the keys held from no store. So the block is left to the CPU, and key dwords in it that the CPU did not write keep their old value. The description and a new entry in `docs/dev/debt/libSceAgcDriver.md` say so. Both branches are merged with `main` `a6dcea927` (keeping your merge into #6185). Tested on Linux, Release, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, same machine and GPU: | Tests | `main` `a6dcea927` | #6186 head | |---|---|---| | `agc_changed_copy`, `agc_guarded_key_store` | (not on `main`) | pass | | `agc_recorder_read_list`, `agc_host_import_unmap`, `agc_parked_import_unmap`, `agc_host_import_retirement`, `agc_sparse_run_import`, `agc_sparse_run_import_copied`, `agc_draw_inputs_in_place`, `agc_draw_inputs_copied`, `agc_unit_shadow`, `agc_idle_publish_wait`, `agc_driver_graphics` | 11 of 11 pass | 11 of 11 pass | | `VUID-` lines | 0 | 0 | All 868 `agc` tests on the #6186 head pass except `agc_driver_sample_order`, `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations`, which fail the same way on `main` `a6dcea927` on this machine. `check_conventions.py` passes on both branches. Ubuntu 24.04, kernel 7.0.0, NVIDIA GeForce RTX 5080, driver 595.99.02. AI-assisted: yes
oneandonlydean commented 2026-10-22 01:30:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T01:30:23Z.


@ee6aba54 thanks for the lead fix, that part checks out. The full CI run on d8c1459821 fails agc_guarded_key_store on Linux (llvmpipe) with "a guarded key store wrote into a block the CPU wrote after it was recorded". I think it's the test's expectation, not the store path.

On that runner the import probe prints host imports resolve write protection: yes ... imported ranges are compared, so host imports are compared rather than write-watched. Then CpuWrittenBlocks can't report the CPU store at keys + 400, the block isn't left to the CPU, and the guarded compare stores 0xff into the bytes that still equal the snapshot. That's the documented fallback. But the test decides its expectation from GuestMemory::WriteWatched() alone, which is still true there, so it expects 0x00.

I reproduced it on an NVIDIA host by forcing that mode. Your head passes by default (imports stay watched) and fails with APS5_WRITE_WATCH_IMPORTS=unwatch with the same message. Changing the test's flag to

const bool watched = AgcDriver::GuestMemory::WriteWatched() && PrepareImportWatch(context) == ImportWatch::Watch;

makes it pass both ways, and the guarded-store checks (late == 0x12345678, the guarded count) still run in compare mode.

Could you make that change, or something equivalent that keys the block expectation on whether this import is actually watched? It may also be worth a line in the debt entry: on hosts that compare imports, the block rule doesn't apply, so a CPU store of the same value inside a key block can still be overwritten.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330478917 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#issuecomment-6330478917). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-22T01:30:23Z. --- @ee6aba54 thanks for the lead fix, that part checks out. The full CI run on d8c1459821 fails `agc_guarded_key_store` on Linux (llvmpipe) with "a guarded key store wrote into a block the CPU wrote after it was recorded". I think it's the test's expectation, not the store path. On that runner the import probe prints `host imports resolve write protection: yes ... imported ranges are compared`, so host imports are compared rather than write-watched. Then `CpuWrittenBlocks` can't report the CPU store at `keys + 400`, the block isn't left to the CPU, and the guarded compare stores 0xff into the bytes that still equal the snapshot. That's the documented fallback. But the test decides its expectation from `GuestMemory::WriteWatched()` alone, which is still true there, so it expects 0x00. I reproduced it on an NVIDIA host by forcing that mode. Your head passes by default (imports stay watched) and fails with `APS5_WRITE_WATCH_IMPORTS=unwatch` with the same message. Changing the test's flag to ```cpp const bool watched = AgcDriver::GuestMemory::WriteWatched() && PrepareImportWatch(context) == ImportWatch::Watch; ``` makes it pass both ways, and the guarded-store checks (`late == 0x12345678`, the guarded count) still run in compare mode. Could you make that change, or something equivalent that keys the block expectation on whether this import is actually watched? It may also be worth a line in the debt entry: on hosts that compare imports, the block rule doesn't apply, so a CPU store of the same value inside a key block can still be overwritten.
EagleBearerYS commented 2026-10-22 11:52:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T11:52:27Z.


@ee6aba54 a merge-order note: #7446 and this PR both extend the [labels] profile line in PacketFlush.cpp. #7446 adds a count of packets redone for captured memory that changed before recording, and this PR adds the guarded DCC key stores and the key blocks left to a later CPU store. That's the only conflict, and composed, the line prints both. #7446 goes after this PR and rebases over it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340064431 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#issuecomment-6340064431). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T11:52:27Z. --- @ee6aba54 a merge-order note: #7446 and this PR both extend the `[labels]` profile line in `PacketFlush.cpp`. #7446 adds a count of packets redone for captured memory that changed before recording, and this PR adds the guarded DCC key stores and the key blocks left to a later CPU store. That's the only conflict, and composed, the line prints both. #7446 goes after this PR and rebases over it.
CnRJay commented 2026-11-01 19:59:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:59:02Z.

Review: COMMENTED


1. Carried commits. This PR targets main and lists "Depends on: #6185", but its history contains the whole of #6185 (the changed-copy kernel, StagingCopyBack.comp, WriteChangedKeepingGuest, the copy-back switches docs and tests) plus the key-store commits and several merge commits between the two branches. A reviewer cannot tell from the diff which part is this fix; the key-store guard (Recorder::QueueKeyStore target, NotePendingWrites with ShadowPublishWrite, the snapshot of known fills, and the 64 KiB CPU-written block exemption) is only a fraction of it. Please rebase onto #6185 once it merges, or state a base so the diff shows only the guard.

2. The behavior is a heuristic over what the CPU wrote. Per the description, a 64 KiB block the CPU wrote since the record is "left as the CPU left it", so key dwords in that block the CPU did not write keep their old value instead of 0xff; and with no write watching "the value compare stays the only guard", which by the text cannot tell a late CPU store of the old value from no store. These are stated as limits, but the consequence (stale DCC keys read as compressed after a metadata block is reused) is not covered by a test: agc_guarded_key_store checks that CPU stores survive and untouched blocks are stored, not what a later reader sees for the exempted block. Is there a case for that, and what does it do on the DCC read side?

3. Evidence. The result is one title (PPSA15304) on Linux NVIDIA (two runs of 20 and 25 minutes, "99.6 percent of the key stores guarded"), compared to a run with #6185 alone that faulted after 10 to 11 minutes, no pair with tools/trace_digest.py summaries of main and this change, and no validation-layer run. The copy kernel and its keepGuest branch in writeChanged run on every changed-copy write-back, so a cost comparison on the same scene is relevant. Please attach the digest for main and this head, and run agc_guarded_key_store and agc_changed_copy on both with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, showing no new VUID- lines.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729953835 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#pullrequestreview-5729953835). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:59:02Z. **Review:** COMMENTED --- **1. Carried commits.** This PR targets `main` and lists "Depends on: #6185", but its history contains the whole of #6185 (the changed-copy kernel, `StagingCopyBack.comp`, `WriteChangedKeepingGuest`, the copy-back switches docs and tests) plus the key-store commits and several merge commits between the two branches. A reviewer cannot tell from the diff which part is this fix; the key-store guard (`Recorder::QueueKeyStore` target, `NotePendingWrites` with `ShadowPublishWrite`, the snapshot of known fills, and the 64 KiB CPU-written block exemption) is only a fraction of it. Please rebase onto #6185 once it merges, or state a base so the diff shows only the guard. **2. The behavior is a heuristic over what the CPU wrote.** Per the description, a 64 KiB block the CPU wrote since the record is "left as the CPU left it", so key dwords in that block the CPU did not write keep their old value instead of 0xff; and with no write watching "the value compare stays the only guard", which by the text cannot tell a late CPU store of the old value from no store. These are stated as limits, but the consequence (stale DCC keys read as compressed after a metadata block is reused) is not covered by a test: `agc_guarded_key_store` checks that CPU stores survive and untouched blocks are stored, not what a later reader sees for the exempted block. Is there a case for that, and what does it do on the DCC read side? **3. Evidence.** The result is one title (PPSA15304) on Linux NVIDIA (two runs of 20 and 25 minutes, "99.6 percent of the key stores guarded"), compared to a run with #6185 alone that faulted after 10 to 11 minutes, no pair with `tools/trace_digest.py` summaries of `main` and this change, and no validation-layer run. The copy kernel and its `keepGuest` branch in `writeChanged` run on every changed-copy write-back, so a cost comparison on the same scene is relevant. Please attach the digest for `main` and this head, and run `agc_guarded_key_store` and `agc_changed_copy` on both with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, showing no new `VUID-` lines.
XairRrR commented 2026-11-03 07:16:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T07:16:52Z.

Review: APPROVED


Reviewed — approved

The guarded DCC key store and the host-copied WriteChangedKeepingGuest write-back behave as described: the new tests pass and fail when the production change is reverted, and there are no validation errors on lavapipe. One small non-blocking gap is noted below.

What I ran

Head 9a00b0c8168d67cdb62cd6e90e209f744e2c34ed, main d1ae628bc2f62459cce1e9872ba5632c938c71f2, merged with --no-ff in a clean worktree. Debian 13 VM, 2× Xeon Gold 6136 (AVX2/FMA), GCC 14.2.0, Release, Vulkan through lavapipe (Mesa 26.1.6, LLVM 19), no GPU, no /dev/udmabuf.

git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...9a00b0c8168d67cdb62cd6e90e209f744e2c34ed
python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2
env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -V -R '^agc_(guarded_key_store|changed_copy|copied_write_back|driver_pm4|unit_shadow)$'
env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -V -R '^agc_(bda_staging|guarded_key_store|copied_write_back|changed_copy)$'
env APS5_NO_GUARDED_KEY_STORE=1 ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build --output-on-failure -R '^agc_guarded_key_store$'
env APS5_WRITE_WATCH_IMPORTS=watch ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -V -R '^agc_(guarded_key_store|copied_write_back|bda_staging)$'
env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -V -R '^agc_(guarded_key_store|copied_write_back|changed_copy|bda_staging)$'
# negative control
git show d1ae628bc2f62459cce1e9872ba5632c938c71f2:<path> > <path>   # DccMetadata.cpp, GuestBufferMemory.cpp
ninja -C build -j32 -l32 agc_driver_recorder_tests
ctest --test-dir build --output-on-failure -R '^agc_(guarded_key_store|copied_write_back|changed_copy)$'
git show 824a482ca3ce167b6130631068b27bb12d398424:<path> > <path>
ninja -C build -j32 -l32 agc_driver_recorder_tests
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py "All conventions checks passed."
Configure / build / libs (script) ok
Selected tests (script): 2205 run 0 new failures, 0 timeouts; the 7 known failures also fail on main
Validation comparison (script): 767 tests layer loaded in 766, missing in none; 0 tests with new VUID- lines
agc_guarded_key_store, agc_changed_copy, agc_copied_write_back, agc_bda_staging, agc_driver_pm4 pass (each ≤ 0.21 s)
agc_unit_shadow skipped: this host compares imports instead of watching them
agc_guarded_key_store with APS5_NO_GUARDED_KEY_STORE=1 pass
agc_guarded_key_store with APS5_WRITE_WATCH_IMPORTS=watch pass, including the same-value late store and the 64 KiB block rule ("guarded key store tests passed")
The 4 new and changed tests with VK_LAYER_KHRONOS_validation layer inserted, 0 VUID- lines, no "was not found but was requested"
Default mode on this host (imports compared)
1950: host imports are compared
1950: host import not write-watched: a late CPU store of the value the keys held not tested
4/4 Test #1950: agc_guarded_key_store ............   Passed    0.11 sec

In this mode only the value compare runs. The block rule and the same-value case run only with the forced-watch run above.

Forced watch mode
1950: [write-watch] host imports stay watched (APS5_WRITE_WATCH_IMPORTS=watch)
1950: guarded key store tests passed
3/3 Test #1950: agc_guarded_key_store ............   Passed    0.10 sec

Negative control

I restored Graphics/src/DccMetadata.cpp (no kernel target passed to QueueKeyStore) and Graphics/src/GuestBufferMemory.cpp (no WriteChangedKeepingGuest and no changed copy-back) from main, then rebuilt agc_driver_recorder_tests:

agc_copied_write_back ...***Failed  AGC graphics: a copied write-back stored the shader's dword over the one the CPU wrote after the upload
agc_guarded_key_store ...***Failed  AGC graphics: the key store behind a pending fill was not guarded
agc_changed_copy ........   Passed

agc_changed_copy drives Recorder::RecordChangedCopy directly, so reverting these two files does not affect it. That is expected. After restoring the merged files and rebuilding, git status --porcelain was empty.

Findings

Blocking

None.

Non-blocking

  1. The unaligned edges of a key range are still a plain store, even inside a block left to the CPU. In Recorder::recordKeyStores (core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp:1812), the seed copies of the unaligned head and tail (up to 3 bytes each, 0xff from the seed made in DccMetadata.cpp:242) are recorded for every store. This happens whether the store is guarded or not, and whether the block holding those bytes is left to the CPU. A late CPU store into those bytes is overwritten. The new debt entry (docs/dev/debt/libSceAgcDriver.md:352) says a CPU-written block "is left exactly as the CPU left it", which does not hold for those bytes. The exposure is small: key ranges are normally dword-aligned, and the block skip already covers everything else. Suggested fix: skip the edge copy when its block is in cpuWritten, or add one clause to the debt entry saying the unaligned head and tail are always stored.

The point CnRJay raised still applies, and I have no new evidence on it: the diff still carries all of #6185 (StagingCopyBack.comp, WriteChangedKeepingGuest, the changed copy-back). This review covers the combined diff. The author has already agreed the landing order (#8887 → #12070 → this PR).

Not verified

  • Real GPU or other vendors: I did not run on a real GPU or on another vendor. lavapipe on this host compares imports by default, so the 64 KiB block rule ran only under APS5_WRITE_WATCH_IMPORTS=watch.
  • Imports with a lead: the kernel path into an import with a lead (sparse dma-buf) was not reached because there is no /dev/udmabuf. Only the address arithmetic was checked, through the test's HostImportDeviceAddress assertions.
  • Title results: I did not check the PPSA15304 claims (no fault in 20 and 25 minute runs, 99.6 % of key stores guarded, present rates). No title was launched.
  • Windows: I did not check the Windows PATH registration for the new tests.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5748434349 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#pullrequestreview-5748434349). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T07:16:52Z. **Review:** APPROVED --- # Reviewed — approved The guarded DCC key store and the host-copied `WriteChangedKeepingGuest` write-back behave as described: the new tests pass and fail when the production change is reverted, and there are no validation errors on lavapipe. One small non-blocking gap is noted below. ## What I ran Head `9a00b0c8168d67cdb62cd6e90e209f744e2c34ed`, `main` `d1ae628bc2f62459cce1e9872ba5632c938c71f2`, merged with `--no-ff` in a clean worktree. Debian 13 VM, 2× Xeon Gold 6136 (AVX2/FMA), GCC 14.2.0, Release, Vulkan through lavapipe (Mesa 26.1.6, LLVM 19), no GPU, no `/dev/udmabuf`. ``` git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...9a00b0c8168d67cdb62cd6e90e209f744e2c34ed python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -V -R '^agc_(guarded_key_store|changed_copy|copied_write_back|driver_pm4|unit_shadow)$' env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -V -R '^agc_(bda_staging|guarded_key_store|copied_write_back|changed_copy)$' env APS5_NO_GUARDED_KEY_STORE=1 ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build --output-on-failure -R '^agc_guarded_key_store$' env APS5_WRITE_WATCH_IMPORTS=watch ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -V -R '^agc_(guarded_key_store|copied_write_back|bda_staging)$' env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -V -R '^agc_(guarded_key_store|copied_write_back|changed_copy|bda_staging)$' # negative control git show d1ae628bc2f62459cce1e9872ba5632c938c71f2:<path> > <path> # DccMetadata.cpp, GuestBufferMemory.cpp ninja -C build -j32 -l32 agc_driver_recorder_tests ctest --test-dir build --output-on-failure -R '^agc_(guarded_key_store|copied_write_back|changed_copy)$' git show 824a482ca3ce167b6130631068b27bb12d398424:<path> > <path> ninja -C build -j32 -l32 agc_driver_recorder_tests git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | "All conventions checks passed." | | Configure / build / `libs` (script) | ok | | Selected tests (script): 2205 run | 0 new failures, 0 timeouts; the 7 known failures also fail on `main` | | Validation comparison (script): 767 tests | layer loaded in 766, missing in none; 0 tests with new `VUID-` lines | | `agc_guarded_key_store`, `agc_changed_copy`, `agc_copied_write_back`, `agc_bda_staging`, `agc_driver_pm4` | pass (each ≤ 0.21 s) | | `agc_unit_shadow` | skipped: this host compares imports instead of watching them | | `agc_guarded_key_store` with `APS5_NO_GUARDED_KEY_STORE=1` | pass | | `agc_guarded_key_store` with `APS5_WRITE_WATCH_IMPORTS=watch` | pass, including the same-value late store and the 64 KiB block rule ("guarded key store tests passed") | | The 4 new and changed tests with `VK_LAYER_KHRONOS_validation` | layer inserted, 0 `VUID-` lines, no "was not found but was requested" | <details><summary>Default mode on this host (imports compared)</summary> ``` 1950: host imports are compared 1950: host import not write-watched: a late CPU store of the value the keys held not tested 4/4 Test #1950: agc_guarded_key_store ............ Passed 0.11 sec ``` In this mode only the value compare runs. The block rule and the same-value case run only with the forced-watch run above. </details> <details><summary>Forced watch mode</summary> ``` 1950: [write-watch] host imports stay watched (APS5_WRITE_WATCH_IMPORTS=watch) 1950: guarded key store tests passed 3/3 Test #1950: agc_guarded_key_store ............ Passed 0.10 sec ``` </details> ## Negative control I restored `Graphics/src/DccMetadata.cpp` (no kernel target passed to `QueueKeyStore`) and `Graphics/src/GuestBufferMemory.cpp` (no `WriteChangedKeepingGuest` and no changed copy-back) from `main`, then rebuilt `agc_driver_recorder_tests`: ``` agc_copied_write_back ...***Failed AGC graphics: a copied write-back stored the shader's dword over the one the CPU wrote after the upload agc_guarded_key_store ...***Failed AGC graphics: the key store behind a pending fill was not guarded agc_changed_copy ........ Passed ``` `agc_changed_copy` drives `Recorder::RecordChangedCopy` directly, so reverting these two files does not affect it. That is expected. After restoring the merged files and rebuilding, `git status --porcelain` was empty. ## Findings ### Blocking None. ### Non-blocking 1. **The unaligned edges of a key range are still a plain store, even inside a block left to the CPU.** In [`Recorder::recordKeyStores`](https://github.com/boykopovar/AnyPS5/blob/9a00b0c8168d67cdb62cd6e90e209f744e2c34ed/core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp#L1812-L1818) (`core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp:1812`), the seed copies of the unaligned head and tail (up to 3 bytes each, 0xff from the seed made in `DccMetadata.cpp:242`) are recorded for every store. This happens whether the store is guarded or not, and whether the block holding those bytes is left to the CPU. A late CPU store into those bytes is overwritten. The new debt entry (`docs/dev/debt/libSceAgcDriver.md:352`) says a CPU-written block "is left exactly as the CPU left it", which does not hold for those bytes. The exposure is small: key ranges are normally dword-aligned, and the block skip already covers everything else. Suggested fix: skip the edge copy when its block is in `cpuWritten`, or add one clause to the debt entry saying the unaligned head and tail are always stored. The point CnRJay raised still applies, and I have no new evidence on it: the diff still carries all of #6185 (`StagingCopyBack.comp`, `WriteChangedKeepingGuest`, the changed copy-back). This review covers the combined diff. The author has already agreed the landing order (#8887 → #12070 → this PR). ## Not verified - **Real GPU or other vendors:** I did not run on a real GPU or on another vendor. lavapipe on this host compares imports by default, so the 64 KiB block rule ran only under `APS5_WRITE_WATCH_IMPORTS=watch`. - **Imports with a lead:** the kernel path into an import with a `lead` (sparse dma-buf) was not reached because there is no `/dev/udmabuf`. Only the address arithmetic was checked, through the test's `HostImportDeviceAddress` assertions. - **Title results:** I did not check the PPSA15304 claims (no fault in 20 and 25 minute runs, 99.6 % of key stores guarded, present rates). No title was launched. - **Windows:** I did not check the Windows `PATH` registration for the new tests. <!-- anyps5-bots job=3095 head=9a00b0c8168d67cdb62cd6e90e209f744e2c34ed -->
MarcZX10 commented 2026-11-23 03:03:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T03:03:09Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 9a00b0c8168d67cdb62cd6e90e209f744e2c34ed and its prepared diff. No build or tests were run; no merged-preview check was performed.

Results

Check Result Note
Diff and targeted code review passed Examined key-store and changed-copy paths
Build and tests not run Author reports ctest -R agc_ passed
Console behavior not run Author reports PPSA15304 runs

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text for core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was excluded because it was too large for the review folder; the diff and relevant test hunks were read. Other changed files in the manifest were read through the prepared diff or their included head text. No build, test suite, or console run was performed here. The author-reported test and console results were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6016105185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6186#pullrequestreview-6016105185). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T03:03:09Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this; the points below are optional. ## What I ran Reviewed head `9a00b0c8168d67cdb62cd6e90e209f744e2c34ed` and its prepared diff. No build or tests were run; no merged-preview check was performed. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Examined key-store and changed-copy paths | | Build and tests | not run | Author reports `ctest -R agc_` passed | | Console behavior | not run | Author reports PPSA15304 runs | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text for `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` was excluded because it was too large for the review folder; the diff and relevant test hunks were read. Other changed files in the manifest were read through the prepared diff or their included head text. No build, test suite, or console run was performed here. The author-reported test and console results were not independently verified. ## To get this to a good state Nothing is required.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/6186:upstream-pr/6186'
git switch 'upstream-pr/6186'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/6186'
git switch 'upstream-pr/6186'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/6186'
git switch 'upstream-pr/6186'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/6186'
git switch 'main'
git merge --squash 'upstream-pr/6186'
git switch 'main'
git merge --ff-only 'upstream-pr/6186'
git switch 'main'
git merge 'upstream-pr/6186'
git push origin 'main'
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!6186
No description provided.