Repository navigation
drm/asahi: g17: enable render stage prefixes on T6041 (25G83) - #2862
Conversation
A render whose vertex work depends on a narrower prefix of earlier render and compute work than its fragment work currently waits as a whole for that compute work on T6041, because DRM_ASAHI_RENDER_STAGE_PREFIXES is rejected when variant.render_stage_prefixes is false. On non-M5 builds (!variant.m5_commands), stage-prefix splitting is handled entirely in the host device-mutex submission path: g17/runtime/render/direct.rs keeps staged renders off the direct path, g17/runtime/render/submit.rs resolves the narrower tiling prefixes and whole fragment prefixes, and g17/queue/render.rs emits standard KickDependency words into the kick barrier arrays with dependency_types set to None. A18 Pro (V26A428, also !m5_commands) already runs this exact path with render_stage_prefixes enabled. There are no new firmware descriptor fields or firmware ABI changes. Enable render_stage_prefixes on T6041's 25G83 firmware variant (both 32-core and 40-core configurations share BUILD_25G83), exposing DRM_ASAHI_FEATURE_RENDER_STAGE_PREFIXES_V2. T6040 (M4 Pro), T6041 26B123, and T6041 25F84 are left unchanged. Test scope: compile-tested here; runtime verification on J616C (32-core T6041, 25G83) with staged-render Vulkan/Mesa workloads is pending, and 40-core configurations (J614C/J575C) have not been hardware-tested. Signed-off-by: AxxzyWasTaken <[email protected]>
|
Review at d9c2c29 (non-author, draft). No blocker in the code; it waits on the J616C staged-render row.
Point to consider: if the split has no firmware dependency (standard Assisted-by: LLM (Claude:Opus 5.5) |
|
J616C (MacBook Pro 16" M4 Max, T6041, 32-core 25G83) exact-head hardware verification at
Moving out of Draft — ready for review. Assisted-by: LLM (Google:Gemini 4 Neon) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at live head d9c2c299096c0aa2059b3c399d7637615bd58f77 (CI green: host-tests).
Technical Audit
drivers/gpu/drm/asahi/hw/t6041.rs(+3/-0): Setsrender_stage_prefixes: trueonBUILD_25G83, exposingDRM_ASAHI_FEATURE_RENDER_STAGE_PREFIXES_V2(g17/mod.rs:2529) and enablingDRM_ASAHI_RENDER_STAGE_PREFIXES(g17/command.rs:597).- Cross-checked
g17/runtime/render/direct.rs:291-292,g17/runtime/render/submit.rs:633-655, andg17/queue/render.rs:731-782: for!variant.m5_commands, stage-prefix splitting stays on the host device-mutex submission path and emits standardKickDependencywords (dependency_types: None), the exact path already proven on A18 Pro (V26A428) with no firmware ABI changes. V25G83base default (g17/fw/variant.rs:189) remainsfalse, leaving T6040 (M4 Pro), T604126B123, and T604125F84unchanged.
Checklist Summary
- §1 No model gating: Pass (uses the existing per-firmware-build
fw::variant::Variantqualification flag; J616C 32-core T604125G83is a sound same-SoC stand-in for 40-core T6041 sharingBUILD_25G83on this host-only path). - §2 Production-ready: Pass (default cmdline, no parameters or hacks).
- §3 Safety: Pass (no hardware/power/thermal limits touched).
- §4 Clean-room & attribution: Pass. Commit
d9c2c299096ccarries human author/committer (AxxzyWasTaken) andSigned-off-by:, zero AI trailers in commit; PR body ends withAssisted-by:. - §5 Evidence: Pass. CI
host-testsgreen +make ARCH=arm64 LLVM=1 drivers/gpu/drm/asahi/aurora.o(0 warnings) +checkpatch.pl --strictclean. Exact-head J616C (7.3.0-j616c-pr2862,d9c2c299096c) verification provesDRM_ASAHI_FEATURE_RENDER_STAGE_PREFIXES_V2(bit 33 =1),1,799live staged render hits acrossg17p-vulkan-cross-queue(0/300mismatches),88,456dEQP-VKsync/sync2/draw CTS cases (57,583 Pass / 30,873 NS / 0 Fail / 0 Warn,0 EINVAL,0 device lost), and full §5 health (0failed units,0SELinux AVC denials,0GPU faults/errors). - §6 Naming: Pass (Borealis used in testing report; existing
drm/asahipath unchanged).
Approved for MERGETRAIN-LINUX4. (Non-blocking notes: the PR body still has the pre-hardware-row Draft text superseded by the 06:54Z J616C comment; as Ryan noted, once T6040 is measured, dropping the per-build flag for !m5_commands altogether is a clean follow-up.)
Assisted-by: LLM (Gemini 4 Neon)
6d3d3cd
into
aurora-silicon:integration/aurora
Problem
On T6041 (M4 Max),
BUILD_25G83inheritsrender_stage_prefixes: falsefromfw::variant::V25G83. Because of that, any render submitted withDRM_ASAHI_RENDER_STAGE_PREFIXESis rejected and userspace (DRM_ASAHI_FEATURE_RENDER_STAGE_PREFIXES_V2) cannot split tiling vs. fragment dependencies: a render whose vertex/tiling work depends on a narrower prefix of earlier render and compute work than its fragment work has to wait as a whole for that compute work.Change
Enable
render_stage_prefixes: trueon T6041'sBUILD_25G83variant indrivers/gpu/drm/asahi/hw/t6041.rs, exposingDRM_ASAHI_FEATURE_RENDER_STAGE_PREFIXES_V2to userspace.On non-M5 builds (
!variant.m5_commands), stage-prefix splitting is handled entirely in the host device-mutex submission path with no new firmware descriptor fields or firmware ABI changes (A18 Pro onV26A428, also!m5_commands, already runs this exact path withrender_stage_prefixes: true):g17/runtime/render/direct.rskeeps staged renders off the direct publication path.g17/runtime/render/submit.rsresolves the narrower tiling prefixes and whole fragment prefixes.g17/queue/render.rsemits standardKickDependencywords into the kick barrier arrays withdependency_typesset toNone.Scope boundaries:
BUILD_25G83.26B123, and T604125F84keeprender_stage_prefixes: falseunchanged.Testing
scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks (9 lines checked).make ARCH=arm64 LLVM=1 drivers/gpu/drm/asahi/aurora.o: compiles cleanly with 0 warnings indrivers/gpu/drm/asahi/hw/t6041.rs(clang 22.1.8, rustc 1.99.1).host-tests): green.25G83) hardware verification at exact headd9c2c299096c(7.3.0-j616c-pr2862, see#issuecomment-7093785837):DRM_ASAHI_FEATURE_RENDER_STAGE_PREFIXES_V2(bit 33) verified live (features=0x0000007a6001dc07,chip_id=0x6041).aurora-silicon/mesa#792(593c70a6) overlay:g17p-vulkan-cross-queuePASS (0/300mismatches,1,799live AGX3 staged-render hits);88,456Vulkan CTS cases (57,583 Pass / 30,873 NS / 0 Fail / 0 Warn,0 EINVAL,0 device lost).0GPU faults/errors/warnings,0failed systemd units,0SELinux AVC denials.Uncovered Hardware
J614C/J575C, sharesBUILD_25G83). T604126B123, T604125F84, and T6040 (M4 Pro) are left onrender_stage_prefixes: false.Reviewer detail
integration/auroraf5fae3cbb047.drivers/gpu/drm/asahi/hw/t6041.rs(+3 lines onBUILD_25G83).V25G83base default ing17/fw/variant.rsremainsrender_stage_prefixes: false, so T6040 is unaffected.Assisted-by: LLM (Anthropic:Claude Opus 5.5, Google:Gemini 4 Neon)