AMM virtual range is reserved in the path of the title's hinted maps: Ratchet & Clank maps over its own AMM command buffers #3146

Closed
opened 2026-10-10 23:11:26 +00:00 by fma-rc · 0 comments
fma-rc commented 2026-10-10 23:11:26 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-10T23:11:26Z.


On main 91b13413 Ratchet & Clank: Rift Apart (PPSA01474 v01.005.003, Linux, RTX 5080) segfaults about 40 s in, inside sceAmprAmmCommandBufferMap, writing through a command buffer object whose base is 0xaaaaaaac00000000.

_ammBase reserves the 64 GiB AMM range wherever the next free address is, here 0x12c3000000, straight after the title's last mapping. The title then keeps mapping its own heaps with non-fixed hints at 4 MiB steps (0x12c5000000, ..., 0x12c6000000+0x104000). Those hints now fall inside the AMM reservation and, since #2907, are placed there. The title's AmmCommandBuffer objects live at 0x12c6100000. Its first sceAmprAmmSubmitCommandBuffer carries a map of 0x12c60b0000+0x60000, which replaces that memory, and the next map call uses the object at 0x12c6100018.

With the reservation in _ammBase given a hint of 0x4000000000 and nothing else changed, the title's heaps land at the same addresses as plain maps, the AMM maps go to 0x4000000000+, and the run gets to about 100 s, where it stops on the prepared shader artifact is missing for the requested static ABI error.

I don't know where the console puts the AMM range, so I have not picked an address for a fix.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5796121719 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3146). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-10T23:11:26Z. --- On `main` 91b13413 Ratchet & Clank: Rift Apart (PPSA01474 v01.005.003, Linux, RTX 5080) segfaults about 40 s in, inside `sceAmprAmmCommandBufferMap`, writing through a command buffer object whose base is `0xaaaaaaac00000000`. `_ammBase` reserves the 64 GiB AMM range wherever the next free address is, here `0x12c3000000`, straight after the title's last mapping. The title then keeps mapping its own heaps with non-fixed hints at 4 MiB steps (`0x12c5000000`, ..., `0x12c6000000+0x104000`). Those hints now fall inside the AMM reservation and, since #2907, are placed there. The title's `AmmCommandBuffer` objects live at `0x12c6100000`. Its first `sceAmprAmmSubmitCommandBuffer` carries a map of `0x12c60b0000+0x60000`, which replaces that memory, and the next map call uses the object at `0x12c6100018`. With the reservation in `_ammBase` given a hint of `0x4000000000` and nothing else changed, the title's heaps land at the same addresses as plain maps, the AMM maps go to `0x4000000000+`, and the run gets to about 100 s, where it stops on the `prepared shader artifact is missing for the requested static ABI` error. I don't know where the console puts the AMM range, so I have not picked an address for a fix.
Sign in to join this conversation.
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#3146
No description provided.