Repository navigation
drm/asahi: g17: give back the pool pages of kept render graphs - #1946
Merged
Merged
Conversation
A render graph stays allocated after its queue is released, until the GPU firmware is stopped, when the queue's work list still links work. Such a graph also kept its render pool with all of the pool's pages, mapped in the address window that every client's pools share. Each one took the room of a whole pool until then, so repeated failures in one session could use the window up; new render work would then wait for room and fail, and the client would see a lost device. This has not been seen in normal use. Give those pages back from the worker's housekeeping pass. The pool of a kept graph is never staged again; its pages go back once its final free-list release is consumed. The graph and the pool's identity stay as before. Signed-off-by: Diljit Singh <[email protected]>
m0d16l14n1
added a commit
to m0d16l14n1/linux
that referenced
this pull request
Nov 15, 2026
…t-next G17 stability: aurora-silicon#1926 watchdog reason, aurora-silicon#1925 closed-client teardown, aurora-silicon#1946 kept-graph pool pages, aurora-silicon#1948 reclaim idle render pools; configs: aurora-silicon#1938, aurora-silicon#1939 shared defaults.
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.
When a render queue is released while its work list still links work, the driver keeps the queue's render graph allocated until the GPU firmware is stopped, because the firmware may still walk into it. The kept graph also kept its render pool, with all of the pool's pages. Those pages are mapped in the address window that the render pools of all clients share, which has room for about forty pools.
Each kept graph therefore took the room of one pool until the firmware stopped. With enough of them, a new render would find no room for its pool, wait, and fail:
Graphs are kept after GPU recoveries and failed commands that leave work linked. In normal use of the current driver we have not seen any (none in a four-hour session of conformance runs), so this is a hardening change. It was found while reading the code for a report of the refusal above and is not the cause of that report.
Change
Limit
A kept graph still holds one of the 127 render pool identities and a few hundred KiB. Not leaving work linked at release, so that nothing has to be kept, is a larger change and not part of this one.
Testing
🤖 Generated with Claude Code