Skip to content

kboot: hand off the ANE firmware preload on the M4 - #260

Merged
DjDeveloperr merged 3 commits into
mainfrom
j713/ane-t8132-handoff
Nov 19, 2026
Merged

DjDeveloperr merged 3 commits into
mainfrom
j713/ane-t8132-handoff

Conversation

@erikwb

@erikwb erikwb commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Hands off the M4 (T8132) Neural Engine's firmware preload, as for the M4 Pro, M5 Pro and A18 Pro: /arm-io/ane is pre-loaded with a __TEXT and a __DATA segment, so an apple,t8132-ane node gets its two no-map reservations, memory-region/memory-region-names and apple,firmware-iovas.

Kernel side: aurora-silicon/linux#1952.

Testing

  • tests/python/test_ane_preload.py gets a J713 case with the J713's 26.6.2 segment values (TEXT 0x10000ac8000, DATA 0x10001a2c000); 4/4 pass. Full host suite: 737 passed, 25 skipped; the 2 test_loadobjs.py failures also fail on main.
  • Clang release build clean.
  • On a J713 (one-shot aura-try stage 2, b11 plus this change): FDT: /soc/ane@500000000: ANE firmware TEXT 0x10000ac8000 DATA 0x10001a2c000 reserved, and the kernel ANE driver accepted the preload and ran programs, including after suspend to RAM.

Developed and tested by Claude (Anthropic), working with me on the J713.

🤖 Generated with Claude Code

The M4 (T8132) Neural Engine runs firmware that iBoot preloads, like the
M4 Pro: /arm-io/ane is pre-loaded with a __TEXT and a __DATA segment.
Give an apple,t8132-ane node its two reservations, memory regions and
firmware IOVAs as on the other preloaded ANEs.

Signed-off-by: Erik Bourget <erik@ebourget.net>
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Tested on a J773g (Mac mini M4, 26.6.2 stub): this commit on top of the J773g aura stack (e553f9d = boot-HDMI + #113 + #310 + #311 + DCP handoff), as an ESP Stage 2.

  • FDT: /soc/ane@500000000: ANE firmware TEXT 0x10000ab8000 DATA 0x10000d78000 reserved.
  • Linux (with linux#1952 + #2244): preload accepted, H16 boots to the program stage (ran=1 error=0), /dev/accel/accel0.
  • 5 boots; it is in the mini's configured boot.bin now (sha256 362f839e...).

RyanTheTide and others added 2 commits November 20, 2026 00:11
Formatting only: clang-format 20.1.8 (the CI version) packs the five
compatibles onto one line.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@DjDeveloperr
DjDeveloperr merged commit 8fb038f into main Nov 19, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants