Skip to content

accel/ane: t6050: admit the 27.2 26B8125 firmware the K boards ship - #3525

Merged
RyanTheTide merged 2 commits into
mainfrom
fix/ane-t6050-26b8125-pin
Nov 29, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
fix/ane-t6050-26b8125-pin

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The K114/K116 MacBook Pros (T6050) run macOS 27.2 as build 26B8125. The driver knows the T6050 27.0 (26A428) and 27.2 (26B123) ANE images only. 26B8125's image has the same name (h17_ane0_fw_hyperion_j71y), RTKit (3514.41.1), preload layout and loader-filled sections as 26B123, but its code is different. The layout selects the 26B123 entry, the code pin does not match, and the engine is left off on every K board. From the K114s, this boot:

H17 ANE: firmware 27.2 26B123, TEXT code sha256 8d552dcd27c4f539e89a285c5af893849ab8ae2e3efffed0aba8944e44e431a8 (not the code pin)
H17 ANE: no loader hand-off (firmware TEXT pin); leaving the engine alone
ane_t6021 508000000.neural-processor: H17 ANE: bound; no hand-off, engine left off

Change

  • ane_fw_platform.h: a build entry can name a second code pin, text_code_pin_alt, for another build with the same layout and environment sections.
  • ane_fw_cold.c: ane_fw_code_pinned() accepts either pin, both in the check and in the per-boot log line.
  • ane_fw_platform.c: the 26B8125 pin is added to the T6050 27.2 entry. I computed it from Firmware/ane/h17_ane0_fw_hyperion_j71y.im4p in Apple's public UniversalMac_27.2_26B8125_Restore.ipsw: the image laid out from its segments, the first 0xbc000 bytes, ce_env (0x4000 at 0xb4f80) and text_env (0x20 at 0xb8f80) zeroed. That gives 8d552dcd..., the digest the K114s reports for the TEXT iBoot loaded. The hash of the code before the first section matches too: 87d1ae72....
  • KUnit: the T6050 builds test checks that the 27.2 entry has a second pin, that it differs from the first, and that 27.0 has none.

No layout or protocol change. Other SoCs are untouched.

Testing

  • kunit.py run --arch=arm64 (qemu, DRM_ACCEL_ANE=y, DRM_ACCEL_ANE_FW_KUNIT_TEST=y): ane-fw-platform 9/9 passed, including ane_t6050_builds_test.
  • K114s row: PASS at 4af41e80 (see the row comment): code pin, engine starts, /dev/accel/accel0, add64 exact over 5 runs, 0 new kernel errors.

Risk

two-way · T6050 boards that run 26B8125 (the K114/K116). The engine now starts on these boards, where it used to be left off. 26B123 and 26A428 boards are unchanged.

Tested: K114s (T6050, macOS 27.2 26B8125 firmware) at 4af41e8: ANE code pin accepted, engine starts, /dev/accel/accel0 present, add64 exact over 5 runs, 0 new kernel errors.
Risk: two-way · T6050 machines on the 27.2 26B8125 ANE image only (other firmware keeps its existing pin).

The K114/K116 MacBook Pros run macOS 27.2 as build 26B8125. Its ANE
image has the same name (h17_ane0_fw_hyperion_j71y), RTKit (3514.41.1),
preload layout and environment sections as 26B123, but other code. The
layout selects the 26B123 build, its code pin misses, and the engine is
left off on every K board:

  H17 ANE: firmware 27.2 26B123, TEXT code sha256 8d552dcd... (not the code pin)
  H17 ANE: no loader hand-off (firmware TEXT pin); leaving the engine alone

Give a build a second code pin for another build with its layout, and
add the 26B8125 pin, computed from the image in the 26B8125 restore
image with both loader-filled sections zeroed. A K114s reports the same
digest for the TEXT iBoot loaded.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide force-pushed the fix/ane-t6050-26b8125-pin branch from 0a51200 to e01e982 Compare November 28, 2026 12:51
The last 12 bytes of the pin were mistyped, so a K114s still reported
'not the code pin' for the 26B8125 image. Generate the array from the
digest (8d552dcd...e431a8).

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s (14-inch M5 Pro, T6050, 27.2 26B8125) hardware row at head 4af41e80: PASS.

The first K114s row, at the first head, still refused the image. That head had 12 bytes of the pin array mistyped. 4af41e80 generates the array from the digest and checks it.

  • Test: this PR's drivers/accel/ane modules (no other change), loaded on the running bridge kernel 7.3.0-k114sstack5 (main 68253d52 plus open K114s PRs). Built with M=, signed with that kernel's key.
H17 ANE: firmware 27.2 26B123/26B8125, TEXT code sha256 8d552dcd...e431a8 (code pin)
H17 ANE: loader hand-off verified; starting the engine
[drm] Initialized ane 3.1.0 for 508000000.neural-processor on minor 0
H17 ANE: accel node ready; firmware starts on the first request
  • /dev/accel/accel0 appears.
  • add64 HWX through the ABI 3 node, 5 runs: 4096/4096 exact each, max 0 ulp; host p50 194 us, p90 370 us.
  • Firmware bring-up, LOAD, CREATE, TERMINATE and UNLOAD all returned 0. After that the engine powered down and parked, with its DARTs off.
  • 0 new kernel errors.
  • With the stock module (26B123 pin only) the same Mac logs "not the code pin" and leaves the engine off.

Once the engine has started, the module stays pinned (rmmod: in use), so the row ended with a plain reboot to the saved default.

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 28, 2026 20:01
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 20:01

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at 4af41e80

Blockers: None (wait for remaining queued KUnit CI jobs to finish; apple-build, host-tests, pr-text, KUnit ane-boot, and KUnit ane-pm are already green).

Checked:

  • Audited all four touched files (ane_fw_platform.h, ane_fw_cold.c, ane_fw_platform.c, ane_fw_platform_test.c): ane_fw_code_pinned() cleanly checks both soc->text_code_pin and soc->text_code_pin_alt with NULL guards in both ane_fw_text_pinned() and the ane_fw_handoff_present() boot log.
  • Verified ane_t6050_code_26b8125 matches the 32-byte SHA-256 digest 8d552dcd27c4f539e89a285c5af893849ab8ae2e3efffed0aba8944e44e431a8 byte-for-byte, leaving 26B123, 26A428, and all non-T6050 SoCs untouched.
  • Verified KUnit coverage in ane_t6050_builds_test() (9/9 local arm64 KUnit + KUnit ane-boot/KUnit ane-pm green in CI) and the exact-head 4af41e80 K114s (14" M5 Pro, T6050, 27.2 26B8125) hardware row ((code pin) accepted, /dev/accel/accel0 bound, 5/5 add64 HWX runs 4096/4096 exact 0 ulp, clean power-down/park, 0 new kernel errors, stock negative control confirmed).
Evidence
  • drivers/accel/ane/ane_fw_cold.c: ane_fw_text_pinned() already requires soc->text_code_pin && soc->text_env[0].size before hashing with zeroed env sections, and ane_fw_code_pinned() accepts either text_code_pin or text_code_pin_alt.
  • drivers/accel/ane/ane_fw_platform.c: .build_name = "27.2 26B123/26B8125", .text_code_pin_alt = ane_t6050_code_26b8125 (32 bytes verified against 8d552dcd...e431a8).
  • drivers/accel/ane/ane_fw_platform_test.c: asserts b27_2->text_code_pin_alt is non-NULL and differs from b27_2->text_code_pin, while b27_0->text_code_pin_alt remains NULL.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 4af41e80. App approved (NEON-PR-REVIEW2); rows K114s exact-head, T6050-26B8125-fw-only. Merges 1 h from now under the 6-point rule once hosted CI is green, unless you object.

@github-actions github-actions Bot added area:media Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 4af41e80: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text, pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 4af41e80
Conflicts ok none
PR text ok Risk: two-way · T6050 boards that run 26B8125 (the K114/K116). The engine now starts on these boards, where it used to be left off. 26B123 and 26A428 boards are unchanged. · T6050 machines on the 27.2 26B8125 ANE image only (other firmware keeps its existing pin).

Areas: area:media

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

@github-actions github-actions Bot removed the needs-template PR body lacks Tested or Risk (bot) label Nov 29, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at 4af41e80. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: K114s exact-head;T6050-26B8125-fw-only. (5) There's no blocking review. (6) Dj was pinged here 642 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 5c6bf42 into main Nov 29, 2026
22 of 27 checks passed
@RyanTheTide
RyanTheTide deleted the fix/ane-t6050-26b8125-pin branch November 29, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:media Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant