Repository navigation
drm/asahi: T6040: 16" M4 Pro (J616s): admit the fourth loaded 25G83 firmware image - #2150
Conversation
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]>
|
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. |
|
Blockers: 1.
HW row: J616s on this head, three cold boots, each logging Assisted-by: LLM (Claude:Opus 5.5) |
There was a problem hiding this comment.
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
- §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.rsandhw/t6041.rs:176-205: this adds a fourth SHA-256 entry ("third alternate J616s fill") for the exact same T604025G83TEXT (text_size: 0x60000,data_size: 0x138000,entropy: &[[0x59839, 0x5991c]]), all withboot_filled: &[]. - On T6041 (
hw/t6041.rs:181-198), the same25G83boot-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 singleboot_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 of25G83per earlier review feedback.
- Verified against live
- §4 Attribution — AI commit trailers present (hard rule):
- Commit
ab0b7b5339d5carriesAssisted-by: Claude:claude-opus-5-5andCo-Authored-By: Claude Opus 5.5 <[email protected]>. Per §4, commits must carry human author/committer and humanSigned-off-by:only, with zero AI commit trailers. Replace the PR body'sGenerated with [Claude Code]footer with a plainAssisted-by:line.
- Commit
- §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 consistentGPU firmware build:admission,renderD128present, a GLES/Vulkan render smoke with 0 GPU faults, and the §5 regression triad (0 SELinux denials[orN/A],0 failed units,0 new kernel errors).
- The stacked-set boot explicitly excluded M4 Pro (
ab0b7b5 to
c268dc5
Compare
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
Superseded by the review at c268dc5
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
J616s (M4 Pro, T6040 / G16S B1, 25G83 stub, Stage 2 b17, default cmdline) 2-boot guarded one-shot PASS at |
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
a7dd26e6d60ewith the 7.3 package config, LLVM 18 and Rust 1.85:make W=1 drivers/gpu/drm/asahi/: buildsa7dd26e6plus 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.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_fillednormalization, 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.