Skip to content

drm/asahi: T6040: 16" M4 Pro (J616s): admit the fourth loaded 25G83 firmware image - #2150

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
scottjones:upstream/t6040-m4pro-firmware
Nov 25, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
scottjones:upstream/t6040-m4pro-firmware

Conversation

@scottjones

@scottjones scottjones commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A 16-inch M4 Pro (J616s) on 26.6.2 boot firmware (25G83) loads a fourth normalized T6040 TEXT identity. Without it the probe stops with "GPU firmware image not admitted" and there is no render node. This adds the digest next to the three existing ones and to the KUnit case that runs every listed image through the lookup.

Evidence

  • Built on integration/aurora a7dd26e6d60e with the 7.3 package config, LLVM 18 and Rust 1.85:
    • make W=1 drivers/gpu/drm/asahi/: builds
    • W=1: no warnings the base does not have
    • run-host-tests.py: every tools/asahi test is registered
    • Stacked with the other 12 PRs on the same base, the full kernel, modules and DTBs build and package (linux-aurora 7.3.0-0testastip2-1-ARCH, 137 DTBs).
  • Booted as part of the full set: a kernel built from integration/aurora a7dd26e6 plus all 13 branches of this set (before the three small fix-up commits) booted on an M3 MacBook Air (J613), a Neo (J700) and an M1 Pro with no regressions against their baselines (on the M1 Pro, only the checks already known to differ: GPU name and DRAM OPP), and a 25-minute GPU soak was clean on all three. No M3 Pro, M3 Max, J504, J615 or M4 Pro ran this kernel.
  • On Scott's 16" M4 Pro (J616s, 26.6.2 boot firmware), our 7.3 test kernel with this change brought the GPU up on two boots, with Hyprland running on the GPU (from our testing notes). Before it, the same Mac booted to software rendering because the probe refused this image.

Boot firmware and the four fills

This digest is from the 25G83 (26.6.2) boot firmware. Admitting the 27.2 (26B123) stub is separate work: it needs that stub's GPU firmware measured on a J616s, and a check that its interface matches the 25G83 variant this build uses. This PR doesn't guess either.

Review asked why the J616s images differ instead of adding a fourth raw digest. We will capture the loaded TEXT on three cold boots to diff the images. If they collapse under boot_filled normalization, as the T6041 J575C row does, the per-fill rows will be replaced by one normalized row; if not, the differing offsets will be documented in the commit message.

Merge Danger

Door: two-way

Blast Radius: M4 Pro

Additive: one more admitted digest. 16" M4 Pro only.

A 16-inch M4 Pro (J616s) with 26.6.2 boot firmware (25G83, iBoot
mBoot-18000.161.10) loads a fourth normalized T6040 TEXT identity:
TEXT 0x60000, DATA 0x138000, the same entropy offsets, sha256
19d997493e00763de31f400a592d8aeae6bd1172c5859661781b4215debc870b.
Without it the GPU probe stops with "GPU firmware image not admitted"
and the Mac has no render node.

Add the digest to the 26.6.2 T6040 image list next to the three
existing identities, and to the KUnit test that runs every listed
image through the lookup identify() uses.

Signed-off-by: Scott Jones <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor

The production boot stub pins at macOS 27.2 (26B123), so please retarget this to 27.2. This admits a GPU image that the 26.6.2 stub (25G83) loads; please admit the J616s image that the 27.2 stub loads instead.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 1.

  1. Commit ab0b7b5 carries Assisted-by: Claude:claude-opus-5-5 and Co-Authored-By: Claude Opus 5.5 <[email protected]>. Keep only the human Signed-off-by; the Assisted-by note belongs on the last line of the PR body, which now ends with a "Generated with Claude Code" line.
  2. drivers/gpu/drm/asahi/hw/t6040.rs:73-120: this is the fourth digest for the same 25G83 TEXT on the J616s, all with boot_filled: &[]. The T6041 J575C entry (hw/t6041.rs:152) exists because iBoot rewrites the header load field and the SLID record block from boot to boot; four J616s "fills" of one build looks like the same thing. Measure the four J616s images with (0x224, 4), (0x59839, 0x231) zeroed. If they collapse to one digest, list that single normalized entry instead of a fifth one on the next boot that lands on a new fill. If they do not, say in the commit which bytes differ, so the next reviewer knows the entries are distinct builds and not boot noise.

HW row: J616s on this head, three cold boots, each logging GPU firmware build: ... (normalized ...) with the same entry, renderD128 present, a Mesa GLES/Vulkan smoke (e.g. vkcube offscreen or deqp smoke subset) with no GPU faults, and 0 AVC / 0 failed units / no new kernel errors. The set boot in the PR did not include an M4 Pro, and the J616s run is not tied to a build of this head.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal §1–§6 pre-PR review at verified live head ab0b7b5339d592a10b943db1993f0d92f353646b (base integration/aurora 70a00e583b03; not superseded; MERGEABLE/clean; live CI Host tests run 44113783596: PASS).

Blockers Before APPROVE

  1. §2 Root-cause normalization missing — fourth unnormalized fill digest for the same 25G83 build (drivers/gpu/drm/asahi/hw/t6040.rs:73-120):
    • Verified against live hw/t6040.rs and hw/t6041.rs:176-205: this adds a fourth SHA-256 entry ("third alternate J616s fill") for the exact same T6040 25G83 TEXT (text_size: 0x60000, data_size: 0x138000, entropy: &[[0x59839, 0x5991c]]), all with boot_filled: &[].
    • On T6041 (hw/t6041.rs:181-198), the same 25G83 boot-to-boot variance was caused by iBoot rewriting the header load field and SLID record block (boot_filled: &[(0x224, 4), (0x59839, 0x231)]). Appending a fourth raw fill digest without determining why the four J616s images differ will just fail again on the next boot or machine that hits a fifth fill.
    • Fix: Diff the four J616s loaded TEXT images (and test zeroing boot_filled: &[(0x224, 4), (0x59839, 0x231)] or the exact boot-filled offsets). If they collapse to one normalized digest, replace the per-fill entries with that single boot_filled-normalized entry; if they genuinely differ outside boot-filled fields, document the exact differing offsets in the commit message. Also address whether 27.2 (26B123) stub admission is needed alongside/instead of 25G83 per earlier review feedback.
  2. §4 Attribution — AI commit trailers present (hard rule):
    • Commit ab0b7b5339d5 carries Assisted-by: Claude:claude-opus-5-5 and Co-Authored-By: Claude Opus 5.5 <[email protected]>. Per §4, commits must carry human author/committer and human Signed-off-by: only, with zero AI commit trailers. Replace the PR body's Generated with [Claude Code] footer with a plain Assisted-by: line.
  3. §5 Exact-head J616s hardware & regression evidence missing:
    • The stacked-set boot explicitly excluded M4 Pro ("No M3 Pro, M3 Max, J504, J615 or M4 Pro ran this kernel"), and the informal two-boot J616s note is not tied to this exact head (ab0b7b5339d5), with no kernel/build string, no GPU workload/conformance check, and no §5 regression triad.
    • Please post exact-head J616s (M4 Pro) evidence on default cmdline across 3 cold boots confirming consistent GPU firmware build: admission, renderD128 present, a GLES/Vulkan render smoke with 0 GPU faults, and the §5 regression triad (0 SELinux denials [or N/A], 0 failed units, 0 new kernel errors).

@scottjones
scottjones force-pushed the upstream/t6040-m4pro-firmware branch from ab0b7b5 to c268dc5 Compare November 23, 2026 23:25
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at c268dc5b7a03: the code is ready; it needs only a row at this head.

Blockers: none in the code. Missing row: the boots in the set ran on J613, J700 and M1 Pro, not on a J616s with this image. Needed: one J616s at this head with the fourth image admitted (a render node, the GPU up on two boots). Thanks for chasing this one down.

Checked: no Apple material, no gates: the digest goes next to the three existing T6040 25G83 identities, with the KUnit case covering every listed image. CI green.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 24, 2026 22:14

Superseded by the review at c268dc5

@github-actions github-actions Bot removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at c268dc5b: not ready yet

Check Detail
CI at head ok 1 check passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head no no line with the head SHA c268dc5b, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:gpu

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor

J616s (M4 Pro, T6040 / G16S B1, 25G83 stub, Stage 2 b17, default cmdline) 2-boot guarded one-shot PASS at c268dc5b7a03 (merged cleanly onto fleet89 645f7cd3589d as 7.3.0-aurora-pr2150+ 80c79706b767): Boot 1 (b9e902ab) & Boot 2 (04ad842b) both brought up /dev/dri/renderD128, gpubench-vk 4/4 OK (render.light, compute.light, copy.bw, sync.signal), gl-smoke 32/32 PASS (Apple M4 Pro (G16S B1)), 0 GPU faults, 0 AVC, 0 kernel errors, 0 failed units, Enforcing; restored to saved 7.3.0-aurora-fleet89 (cf08ef29). Scope note: this lab J616s iBoot loads Apple GFX 25G83 for T6040 (normalized loaded image, alternate J616s fill), so this row proves 2-boot T6040/25G83 non-regression with the fourth digest entry present in hw/t6040.rs (the fourth digest itself is covered by the PR's fwid unit test and units whose iBoot loads that fourth fill).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gpu Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants