Skip to content

arm64: dts: apple: t8132: enable the Neural Engine on every M4 board - #2244

Closed
RyanTheTide wants to merge 1 commit into
integration/aurorafrom
spec-m3m4/t8132-ane-all-boards
Closed

RyanTheTide wants to merge 1 commit into
integration/aurorafrom
spec-m3m4/t8132-ane-all-boards

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem. Every T8132 has the Neural Engine, but the DT enabled it (and its three DARTs) only in t8132-j713.dts, the board it first ran on. The J604, J715, the iMacs and the Mac mini never get the node.

Change. Enable ane, ane_dart, ane_dart1 and ane_dart2 in t8132-peripherals.dtsi and drop the J713 copy. The driver still binds only when the loader hands off the firmware preload (aura#260 does that for any apple,t8132-ane node), so a board whose loader doesn't hand it off behaves as today.

Testing. cpp + dtc on all six T8132 boards: same warning counts as the base. J713's sorted decompile is byte-identical to the base. On J604, J715 and J773g the only change is those four nodes going from disabled to okay.

Still to run. One boot on a J773g, J604 or J715 with aura#260: ane probes and a small inference runs.

Assisted-by: LLM (Claude:Opus 5.5)

Every T8132 has the ANE; the DT enabled it, with its three DARTs, on the
J713 only, the board it was first run on (#1952). The node's resources
and power domains are the SoC's, and the driver binds only when the
loader hands off the firmware preload (aura#260 does so for any
apple,t8132-ane node), so enable it in the SoC file and drop the J713
copy. The J713's DT is unchanged.

Not tested on the J604, J715, J623/J624 or J773g (desk audit, lane
SPEC-M3M4).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Ran it on a J773g (Mac mini M4, 26.6.2 stub), the "still to run" item. Setup: this commit + #1952 cherry-picked onto the M4 mini GPU stack (7.3.0); boot.bin = aura e553f9dc (J773g stack) + aura#260.

  • aura: FDT: /soc/ane@500000000: ANE firmware TEXT 0x10000ab8000 DATA 0x10000d78000 reserved.
  • Kernel: ane_t6021 500000000.ane: H16 preload identity H16 T8132 26.6.2 25G83 J713 accepted. DART PARAMS3 0x2a2a0202 on all three, DAPF 5 records, power ACTUAL as on the J713.
  • /sys/kernel/debug/ane-h16/500000000.ane/stage: program ran=1 refused=0 quarantined=0 error=0; /dev/accel/accel0 present; 0 irq timeouts, 0 recoveries.
  • 4 boots in a row, the same. Not run: an HWX inference (I have no H16G add-128 fixture on this host).

It's the mini's default boot now.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blockers: 1.

  1. Commit 5df0283 has no Signed-off-by and ends with Co-Authored-By: Claude Opus 5.5 <[email protected]>. Add the human sign-off and drop the trailer; the PR body's Assisted-by: line already covers the help. While rewording, drop the "(desk audit, lane SPEC-M3M4)" aside from the message. It says nothing about the code.

Otherwise this is fine. The J773g run above covers the second board: preload accepted, the three DARTs up, the program stage ran, 4 boots. The J713 DTB is unchanged. The merge onto current integration is clean, and dt-checks and host-tests pass.

  1. One correction to the body and the new DT comment (t8132-peripherals.dtsi:347-349): a board whose loader doesn't hand off the preload does not "behave as today". ane_dart0/1/2 (:152, :163, :174) now probe on all six T8132 boards whatever the loader does, and power ps_ane_sys to do it. Only the ANE node itself stays unbound. That is probably harmless, since it is the same probe the J713 has always done, but the comment should say so. A boot of a J604 or J715 would show it.

HW row: not needed to merge, given the J773g run. If one is easy: a J604 or J715 on this head with a current loader shows ane probing and program ran=1, the three DARTs probe cleanly, and there are 0 DART faults, 0 AVC, 0 failed units and no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Replaced by #2792: the same changes with the commit trailers fixed, on the current integration/aurora.The J773g row from this PR is carried into the new description.

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.

2 participants