Repository navigation
drm/asahi: advertise vertex scratch on scheduled render queues - #3714
Conversation
A scheduled AGX2 queue gained vertex scratch admission and the matching firmware field in 57d2e88. Tell userspace it can run a spilling vertex shader on this queue. The older AGX2 queue interface already supports vertex scratch. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: HOLD at 27320e21
Blockers:
- Queued hosted CI at
27320e21(2P/0F/18Q): Wait forapple-build,host-tests,pr-text, and KUnit suites to complete green at27320e21. - Exact-head hardware rows missing (noted in PR body
Not yet:): BecauseDRM_ASAHI_FEATURE_SCHEDULED_VERTEX_SCRATCH(1ULL << 49) is a one-way-door UAPI capability bit, please post the paired kernel/MesaJ313(M1 Air) exact-head27320e21verification row (confirming the bit is advertised viaGET_PARAMand vertex scratch renders cleanly without rejections) plus the M4 mini stock-kernel Mesa regression check.
Checked:
- Audited full
+9/-0diff (drivers/gpu/drm/asahi/g14_v27_2.rs,include/uapi/drm/asahi_drm.h):- Cleanly defines
DRM_ASAHI_FEATURE_SCHEDULED_VERTEX_SCRATCHas((1ULL) << 49)with clear ABI documentation (explaining AGX2 non-scheduled queues already accept vertex scratch) and advertises it ing14_v27_2::Backend::feature_flags(). - Confirmed bit 49 does not collide with any existing bit in
include/uapi/drm/asahi_drm.h(including bit 48).
- Cleanly defines
Evidence
- Head commit:
27320e21078b5fb0ab45f40b8dd6697f485589cd(MERGEABLEintomain). - CI snapshot:
2P/0F/18Q.
Keep scheduled vertex scratch distinct from the feature bits assigned to linux#3685 and linux#2059. Signed-off-by: DjDeveloperr <hey@djdev.me>
There was a problem hiding this comment.
Verdict: HOLD at 77b1d51184a6
Blockers:
- Queued hosted CI at
77b1d51184a6(2passed,18queued) — wait forapple-build,host-tests,pr-text, and KUnit suites to complete green. - Missing exact-head
77b1d51184a6hardware verification rows (still listed underNot yet:): paired kernel +mesa#1437verification on an M1/M2 scheduled-queue Mac (J313) confirming bit 51 is advertised and vertex scratch runs cleanly, plus a second-family regression row (e.g. M4 mini stock/regression check confirming bit 51 stays clear on non-AGX2 backends).
Checked:
- Audited commit
77b1d51184a6(drm/asahi: use bit 51 for scheduled vertex scratch): movesDRM_ASAHI_FEATURE_SCHEDULED_VERTEX_SCRATCHto(1ULL) << 51ininclude/uapi/drm/asahi_drm.h, avoiding bits 48–50 and matching companionaurora-silicon/mesa#1437(4aee2c9ce9f3). - Confirmed
drivers/gpu/drm/asahi/g14_v27_2.rsremains unchanged in logic (feature_flags()advertisesDRM_ASAHI_FEATURE_SCHEDULED_VERTEX_SCRATCHonly on the G14 v27.2 scheduled backend).
Evidence
- Head:
77b1d51184a68270aeacecb709730f0b4ec10e1e(basemain,MERGEABLE, 2 commits:27320e21078b,77b1d51184a6). - Verified
#define DRM_ASAHI_FEATURE_*bit allocation ininclude/uapi/drm/asahi_drm.h: bits 32–47 assigned, bit 51 unused and collision-free.
There was a problem hiding this comment.
Verdict: MERGE at 77b1d51184a6
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: - Audited commit 77b1d51184a6 (drm/asahi: use bit 51 for scheduled vertex scratch): moves DRM_ASAHI_FEATURE_SCHEDULED_VERTEX_SCRATCH to (1ULL) << 51 in include/uapi/drm/asahi_drm.h, avoiding bits 48–50 and matching companion aurora-silicon/mesa#1437 (4aee2c9ce9f3).
- Confirmed
drivers/gpu/drm/asahi/g14_v27_2.rsremains unchanged in logic (feature_flags()advertisesDRM_ASAHI_FEATURE_SCHEDULED_VERTEX_SCRATCHonly on the G14 v27.2 scheduled backend).
Follow-ups (not blocking): queued CI; J313 kernel + mesa#1437 row (2nd family not required)
|
Merging at |
What: Advertise helper-backed vertex scratch on scheduled AGX2 render queues. Linux #3455 added admission and firmware programming. Userspace needs a way to distinguish those queues from earlier kernels that reject the same render.
Tested: At
77b1d51184a6, cross-built the arm64aurora.koon a warm x86-64 build tree withCONFIG_DRM_ASAHI_G14_V27_2=y. The J313 (M1 Air) hardware row is pending.Risk: One-way door for the UAPI bit assignment. It describes existing M1/M2 scheduled queue behavior. Older Mesa ignores the bit.
Not yet: The paired kernel/Mesa J313 run. The companion Mesa regression row passed on stock J773g (98,776 identical case results). On the older J313 daily kernel, the companion Mesa change eliminated the reported render rejections, but the four-worker robustness group still timed out.
Evidence
Base
d71f3b2101e1. After refreshing the warm Rust UAPI dependencies, built withM=drivers/gpu/drm/asahi. The generated Rust UAPI constant was 2251799813685248 (1ULL << 51). The module linked and passed modpost. The shared kernel/Mesa assignment is bit 51; bits 48–50 are reserved by the pending submit, G16 and fence-error features. The original AGX2 render interface already accepts vertex scratch.On daily kernel
c78766a6b703, the same robustness group timed out on both Mesa base8b59f2b0and Mesa heada80347544787. Base had 151 scratch rejections. Head had zero rejected renders before its first firmware timeout. Four workers were active, and the recorded case count does not identify the stopped render.