Repository navigation
drm/asahi: g17: M5: report COMPUTE_NO_QUERY_ACCESS (timestamp queries 137 -> 0.03 us at depth 16) - #1422
Merged
DjDeveloperr merged 1 commit intoNov 10, 2026
Conversation
…ies stop costing a host round trip per command Every M5 compute command waited on the host for its predecessors' timestamp publication, because the kernel accepted DRM_ASAHI_COMPUTE_NO_QUERY_ACCESS but did not report the feature, so Mesa never set the flag. With a timestamp query in flight, a depth-16 stream of compute commands ran at depth-1 latency. Report the feature in the M5 command set. Mesa then marks the commands that neither copy nor reset queries, and only those that do still wait for the published timestamps. J714s (M5 Pro), gpubench timestamp row, us per query over the no-query row: depth 16 136.97 -> 0.025, depth 1 0 -> 0.38 (macOS: 0.12). dEQP-VK.pipeline.monolithic.timestamp.* 262/262 and dEQP-VK.query_pool.* 912/912 pass, as do the occlusion, multi-queue, synchronization, compute, glsl, draw and texture lists, with no GPU recoveries. Signed-off-by: Diljit Singh <[email protected]>
DjDeveloperr
force-pushed
the
dj/g17-m5-no-query-access
branch
from
November 10, 2026 09:11
2178d6c to
fb68a2b
Compare
DjDeveloperr
changed the base branch from
funkzy/t6050-gpu-on-integration
to
j716c/v27-swap-timebase
November 10, 2026 09:11
DjDeveloperr
changed the base branch from
j716c/v27-swap-timebase
to
funkzy/t6050-gpu-on-integration
November 10, 2026 10:21
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
The M5 command set accepts
DRM_ASAHI_COMPUTE_NO_QUERY_ACCESSbut doesn't reportDRM_ASAHI_FEATURE_COMPUTE_NO_QUERY_ACCESS, so Mesa never sets the flag. As a result, every compute command waits on the host until its predecessors' timestamps are published. With a timestamp query in flight, a depth-16 compute stream runs at depth-1 latency: +137 µs per query, where macOS takes 0.12 µs.This PR reports the feature. Mesa (honeykrisp,
asahi_fill_cdm_command) already sets the flag on commands that neither copy nor reset queries. Those that do still wait for the published timestamps. There's no Mesa change.The comment this replaces said that reporting the feature makes top-of-pipe timestamps read out of order. That doesn't reproduce: the whole timestamp group passes with the feature reported, including
sequential_timestamps,consistent_resultsandcheck_timestamp_compute_and_graphics.Measured
J714s (M5 Pro). Module built from the same change on the integration tree. Mesa is mesa-aurora with #32 and #33. One boot per kernel, measured before dEQP.
dEQP, all lists with 0 Fail and no GPU recoveries:
dEQP-VK.pipeline.monolithic.timestamp.*: 262/262dEQP-VK.query_pool.*: 912 Pass, 2 NotSupportedgpubench core-a,feat: 41/41 ok.
🤖 Generated with Claude Code