Repository navigation
drm/asahi: g17: M5: bind the task-stage mesh storage on J813-form boards - #3582
Conversation
tiling_with_scratch_into() writes the TA mesh rendering buffer register (0x1ca48, after the scratch-window register 0x10799) for task-stage kicks, but the J813-form path (chip 0x8142: J813, J815, J704) pushes its common registers and continues before that match, so a task kick there never got the buffer the kernel had mapped for it. The kernel still reports DRM_ASAHI_FEATURE_TASK_MESH_STORAGE, Mesa advertises taskShader, and every task-stage render on those boards ends in a firmware recovery. Write 0x1ca48 after 0x10799 on that path too, as on the other M5 boards. Signed-off-by: Nick <[email protected]>
There was a problem hiding this comment.
Verdict: MERGE at 8d5b38fc once the fork PR's CI workflows are approved and pass.
Blockers: none in code (await fork CI workflow approval and green checks).
Checked: Full 1-file diff (drivers/gpu/drm/asahi/g17/fw/m5/render_registers.rs), tiling_with_scratch_into() register emission and TaProgram capacity bounds, and exact-head J815 (T8142 / G17G) task/mesh CTS results.
Evidence
- Code audit (
render_registers.rs:382-390):- Matches the non-
e.j813path verbatim (if r.reg == 0x10799 && mesh_storage != 0 { out.push(0x1ca48, mesh_storage)?; }), emitting the TA mesh rendering buffer register immediately after0x10799on J813-form (0x8142: J813, J815, J704) task-stage kicks. - Non-task renders (
mesh_storage == 0) and non-e.j813boards are unchanged;TaProgramcapacity easily accommodates the single added register write.
- Matches the non-
- Verification at
8d5b38fc(J815M5/G17G): 24 previously crashing task-stage dEQP-VK cases pass24/24with0GPU kernel lines (down from 386 firmware recovery lines);mesh_shader.ext.smoke.*61 Pass / 6 NotSupported / 0 Crash(down from 12 Crash);15,958-case gate sample11,151 Pass / 4,807 NotSupported / 0 Fail,0failed units,0new GPU kernel lines.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train 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 (Ryan 09:29, permanent), at |
What: Bind the task-stage mesh storage on J813-form M5 boards.
tiling_with_scratch_into()writes the TA mesh rendering buffer register (0x1ca48, after0x10799) for task-stage kicks, but the J813-form path (chip0x8142: J813, J815, J704) pushes its common registers andcontinues before that match. A task kick there never got the buffer the kernel mapped for it, while the kernel still reportsDRM_ASAHI_FEATURE_TASK_MESH_STORAGEand Borealis advertisestaskShader, so every task-stage render on those boards ended in a firmware recovery. Write0x1ca48after0x10799on that path too, as on the other M5 boards.Tested: J815 MacBook Air 15" M5 (T8142, G17G),
aurora.kobuilt frommain0701a920154e+ this commit (head8d5b38fc74f2), Borealisaurora-wip. dEQP-VK task-stage cases that recovered before (24): 24/24 Pass (before: 24/24 Crash, 386 recovery lines).mesh_shader.ext.smoke.*(67): 61 Pass, 6 NotSupported, 0 Crash (before: 12 Crash). dEQP-VK gate sample (15,958 cases): 11,151 Pass, 4,807 NotSupported, 0 Fail. Regression line: 0 SELinux denials (N/A on this image), 0 failed units, 0 new GPU kernel lines.Risk: two-way door · J813-form M5 boards (J815 tested; J813 and J704 take the same path); other M5 boards and other chips unchanged.
Not yet: J813 and J704 hardware rows. No task-shader performance A/B (before this change task-stage renders did not complete on these boards).
Details
g17/fw/m5/render_registers.rs: in thee.j813branch oftiling_with_scratch_into(), after pushing0x10799, also push0x1ca48 = mesh_storagewhen the kick has mesh storage (mesh_storage != 0). That is the same match and value the non-J813 path below already uses; render kicks without a task stage passmesh_storage == 0and are unchanged.main's driver without this change (main0701a920154eplus an unrelated watchdog change, same Image): in the gate sample exactly these 24 task-stage cases crash (11,127 Pass, 4,807 NotSupported, 24 Crash, 383 recovery lines); with this change they pass and nothing else moves.Evidence
Machine: J815 MacBook Air 15" M5 (T8142, G17G), kernel
7.3.0-aurora-j815-dev, dEQP-VK 1.4, 60 s per-case timeout, shader cache off.binding_model.descriptorset_random.*.task.*,mesh_shader.ext.*with_task*,mesh_and_task)mesh_shader.ext.smoke.*(67)A recovery before the change looked like this: