Repository navigation
drm/asahi: g17: M4 Pro 25G83: stage-prefixed renders and render identity at create - #3463
Conversation
The M4 Pro 25G83 variant kept render_stage_prefixes off as not measured, so GET_PARAMS never advertised RENDER_STAGE_PREFIXES_V2 there and Borealis never sent staged or compute-prefixed renders. The M4 Max runs the same 25G83 firmware train with the flag on (ec3ced9), and the A18 Pro has it on. Turn it on in V25G83 and drop the now redundant M4 Max 25G83 override. 25F84 (and 26B123, which inherits it) keeps it off until measured there. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
V25G83 kept the first-render claim of the render pool identity because the M4 Pro had not been tested with the claim at creation. The M4 Max runs the same 25G83 firmware train with it on (ec3ced9), as does the A18 Pro. The claim is host policy: with it, a context that cannot get an identity fails at creation instead of at its first render. Turn it on in V25G83 and drop the now redundant M4 Max 25G83 override. 25F84 keeps the first-render claim; the M4 Max 26B123 override stays. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at 95b8c0dd (once queued KUnit CI finishes green)
Blockers: none (queued KUnit and readiness checks are still running; merge once green).
Checked:
drivers/gpu/drm/asahi/g17/fw/variant.rs:115-268: verifiedrender_stage_prefixesandrender_id_at_createare enabled inV25G83whileV25F84explicitly pins both tofalsesoV25F84andV26B123(which inheritsV25F84) do not change behavior.drivers/gpu/drm/asahi/hw/t6041.rs:208-218: verified removing the now-redundant overrides fromBUILD_25G83preserves identicalT604125G83 fields.- Checked all
V25G83references acrossdrivers/gpu/drm/asahi/hw/: onlyt6040.rs(BUILD_25G83) andt6041.rs(BUILD_25G83) inheritV25G83, so only M4 Pro (T6040) 25G83 changes behavior. - Verified J616s M4 Pro (
T6040, 25G83) A/B hardware results (GET_PARAMSSTAGE_PREFIXES_V20 -> 1, 37,406 VK CTS cases with 0 regressions, pool churn and concurrent client waves clean, 0 GPU faults, gpubench neutral).
Evidence
- Diff reviewed at
95b8c0dd:drivers/gpu/drm/asahi/g17/fw/variant.rs,drivers/gpu/drm/asahi/hw/t6041.rs. git grep -n V25G83 -- drivers/gpu/drm/asahi/hw/: onlyt6040.rs:122andt6041.rs:217.- CI at review time:
apple-build,host-tests,pr-text,KUnit ane-boot,ane-pm,dcp-fabric,dcp-topologyPASS; remaining KUnit jobs andreadinessqueued.
|
Merge-train status at |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merging under the 6-point rule at |
What: turn on two G17 host flags for the M4 Pro (T6040) 25G83 firmware that were off only as "not measured":
render_stage_prefixes: GET_PARAMS now advertisesRENDER_STAGE_PREFIXES_V2, so Borealis sends staged and compute-prefixed renders on the M4 Pro. Without it, the staged-render work in drm/asahi: g17: support staged and compute-prefixed renders in render_direct() #3388 (render_direct for staged/compute-prefixed renders) never reaches the M4 Pro.render_id_at_create: take the render pool identity at context creation (host policy).The M4 Max already runs the same 25G83 firmware train with both on (ec3ced9). The A18 Pro has both on. This PR sets them in
V25G83and drops the now-redundant M4 Max 25G83 overrides.V25F84(andV26B123, which inherits it) is pinned to the previous values until measured, so only the T6040 25G83 build changes behaviour. Part of the chip-gate audit in lane GPU-UNGATE (Ryan: M5/A18 Pro work must reach the M4 Pro unless the hardware or firmware lacks it).Tested: J616s M4 Pro (T6040, 25G83) at 79319fd9 (these two commits on main 30dd09b + #3388; the touched files are byte-identical to head 95b8c0d): 0 CTS regressions in 37,406 cases, 0 GPU faults, 0 failed units, default restored.
Details on the J616s (M4 Pro, T6040, "Apple GFX 25G83 for T6040"). Same-tree A/B, one one-shot boot each: A = main 30dd09b + #3388 6d28e86, B = A + these two commits. Both commits are byte-identical to the tested ones for the touched files, and main has not changed them since.
STAGE_PREFIXES_V20 -> 1.submit.empty+5% (1.34 -> 1.42 us/submit, about 0.08 us), andcompute.lightsingle queue d4-d16 +2-4%. gpubench has no compute->render prefix dependencies, so the drm/asahi: g17: support staged and compute-prefixed renders in render_direct() #3388 gain is not exercised here; the M5 Pro numbers in drm/asahi: g17: support staged and compute-prefixed renders in render_direct() #3388 are the reference for that.tools/asahi/run-host-tests.py --only g17: 242/242 on current main.Risk: two-way door. T6040 25G83 only. Revert = flip the two flags back.
Not yet: a workload with compute-prefixed renders on the M4 Pro (GTA V / chainbench_diag class) to show the gain, and 25F84 / 26B123 measurements.
Evidence: traces/gpu/20261128-gpu-ungate/j616s-k1/ (lab store).