Skip to content

drm/asahi: g15: allow 8 prefixes in flight per VM (was 2), tunable with g15_max_inflight - #261

Open
samucarre wants to merge 1 commit into
omacom:integration/aurorafrom
samucarre:g15-max-inflight
Open

samucarre wants to merge 1 commit into
omacom:integration/aurorafrom
samucarre:g15-max-inflight

Conversation

@samucarre

Copy link
Copy Markdown

On the T6031 (J516C) a browser submits one render per job. With two prefixes in flight and ~612 µs of host/firmware turnaround per flight while the GPU work per render is ~88 µs (asahi-g15/stats span vs busy), the engine held publication on the in-flight cap ~3 times per job (hold[0]) and the GPU idled ~85% of every flight: at 120 Hz Chrome's ~2.7k renders/s hit the ~3.3k/s ceiling and frames queued up as stutter. Power (17–24 W) and a resolution-scaling test (1322 → 1276 fps for 4× pixels) showed the GPU was starved, not busy; pstate was already 8/8.

Change. Raise FLIGHTS and MAX_INFLIGHT to 8 and add the module parameter g15_max_inflight (0: tuned value, 1..8) so it can be lowered without a rebuild. Later flights still have to be of the same VM; pass slots (16) and CT buffers bound the rest, and publish_prefix_into already backs off with EAGAIN when they are held.

Checked on a J516C (M3 Max, 64 GB) since 26 October, with the desktop (Hyprland) and Chrome: hold[0] 8,731/s → 0/s, starved 85% → 1%, glmark2 1322/1276 → 1589/1572 fps. Builds cleanly on 30a6518 together with my three other PRs of today, which touch other files.

Not checked. T6030 (M3 Pro); whether you prefer to keep 2 as the default and leave 8 to the parameter — happy to change it.

🤖 Generated with Claude Code

…th g15_max_inflight

On the T6031 (J516C) a browser submits one render per job. With only two
prefixes in flight and ~612 us of host/firmware turnaround per flight while
the GPU work per render is ~88 us (asahi-g15/stats span vs busy), the engine
held publication on the in-flight cap ~3 times per job (stats hold[0]) and the
GPU idled ~85% of every flight: at 120 Hz Chrome's ~2.7k renders/s hit the
~3.3k/s ceiling and frames queued up as stutter. Power (17-24 W) and a
resolution-scaling test (1322 -> 1276 fps for 4x pixels) showed the GPU was
starved, not busy; pstate was already 8/8.

Raise FLIGHTS and MAX_INFLIGHT to 8 and add g15_max_inflight (0: tuned value,
1..8) so it can be lowered without a rebuild. Later flights still have to be of
the same VM; pass slots (16) and CT buffers bound the rest, and
publish_prefix_into already backs off with EAGAIN when they are held.

Generated-by: LLM
Signed-off-by: Samuel Carreño <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant