Repository navigation
feat(agc): DMA_DATA prefetches to DST_SEL nowhere - #1709
Merged
oneandonlydean merged 1 commit intoOct 10, 2026
Merged
Conversation
DMA_DATA with DST_SEL 2 (V_411_NOWHERE in Mesa's src/amd/common/sid.h) reads its source into L2 and stores nothing; libSceAgc emits it as an L2 prefetch with the source address repeated as the destination. It threw as a register or prefetch destination. A prefetch of a memory source is now accepted and writes nothing: ResolveStore returns it as an empty store, so the packet stays ordered without a drain, DecodeMemoryCopy keeps rejecting it and Execute skips it. A prefetch of a register, GDS or immediate source and a register destination still throw. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
9 tasks done
Contributor
|
Linux results, since this was tested on Windows only. Everything passes here. Nobara 44 (Linux 7.2), GCC 16.2.1, Release,
The CPU failure is |
Contributor
|
Uncharted: Legacy of Thieves Collection (PPSA05684) stops at this on I fixed it independently the same way (DST_SEL 2 from a memory source writes nothing and is not ordered as a store) while bringing the title up to its main menu, so I'm not opening a competing PR. I have not run this branch itself with the title. |
|
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.
|
9 tasks done
This was referenced Oct 10, 2026
oneandonlydean
added a commit
to oneandonlydean/AnyPS5
that referenced
this pull request
Oct 10, 2026
oneandonlydean
added a commit
to oneandonlydean/AnyPS5
that referenced
this pull request
Oct 10, 2026
SleglJan
pushed a commit
to SleglJan/AnyPS5
that referenced
this pull request
Oct 10, 2026
…-data-prefetch feat(agc): DMA_DATA prefetches to DST_SEL nowhere
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
DMA_DATAwithDST_SEL2 (V_411_NOWHEREin Mesa'ssrc/amd/common/sid.h) reads its source into L2 and stores nothing. libSceAgc emits it as an L2 prefetch, with the source address repeated as the destination (c0055000 60200000 8038e000 1d 8038e000 1d 8000caf0). The validator rejected it with "DMA_DATA register or prefetch destination is not implemented", so a title that prefetches aborts.A prefetch of a memory source (
SRC_SEL0 or 3) is now accepted and writes nothing:ResolveStorereturns it as an empty store, so the packet stays ordered without a drain.DecodeMemoryCopystill rejects it, so no buffer copy is recorded.Executereturns before reading the source.A prefetch of a register, GDS or immediate source still throws ("DMA_DATA prefetch of a register, GDS or immediate source is not implemented"), and so does a register destination (
DAS).Source of the semantics: Mesa
src/amd/common/sid.h(S_411_DST_SEL,V_411_NOWHERE). Not measured on hardware: a prefetch has no visible memory effect to measure.Tested
Windows 11, RTX 3060.
agc_driver_pm4covers the new path: a prefetch resolves as an empty store, does not decode as a copy, leaves memory unchanged, and the immediate-source and register-destination forms throw. All 183agc_drivertests pass, andtools/check_conventions.py --base origin/mainpasses. PPSA07906 (Unreal Engine 5) issues these packets at startup and aborted on them; with the change it gets past them and renders its intros.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs).mdfiles or images added to the repository (attach them to this PR)