Skip to content

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

Draft
RyanTheTide wants to merge 1 commit into
mainfrom
spec-m3m4/t8132-ane-all-boards-v2
Draft

RyanTheTide wants to merge 1 commit into
mainfrom
spec-m3m4/t8132-ane-all-boards-v2

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #2244 (same changes, commit trailers fixed).

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.

Rows from #2244. DjDeveloperr ran it on a J773g (Mac mini M4) with aura#260, 4 boots: the preload identity is accepted, all three DARTs come up, the ANE stage reports program ran=1 refused=0, /dev/accel/accel0 is present, 0 IRQ timeouts (row).

Still to run. An inference on a board other than the J713 (the J773g row had no HWX fixture), and one boot on a J604 or J715.

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).

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

Copy link
Copy Markdown
Contributor Author

Review at ea50ee1 (non-author, draft). No blocker found; ready once the listed rows are in.

  • Merges cleanly onto integration/aurora 6748d83. One commit, human sign-off only. arm64: dts: apple: t8132: enable the Neural Engine on every M4 board #2244 is closed.
  • The change moves status = "okay" for ane and the three ANE DARTs from t8132-j713.dts to t8132-peripherals.dtsi. All four nodes name ps_ane_sys, so each DART's first register access is behind its power domain on every board.
  • The driver side does not depend on the board: ane_fw_platform_preflight() returns before any resource, power or MMIO use when apple,firmware-preloaded is absent, and the loader hand-off (aura#260, merged) is keyed on the apple,t8132-ane compatible.
  • The J773g row (4 boots, identity accepted, 3 DARTs up, /dev/accel/accel0) covers one board besides the J713.

Small points, not blocking:

  • "Behaves as today" is not quite right for a board booted by a loader without the hand-off: the node is now probed and ane_fw_platform_preflight() fails with dev_err_probe(-EINVAL, "H16 firmware identity missing or invalid"), so such a boot gains an error-level line plus the driver core's "probe failed with error -22". The same happens with "H16 preload matches none of N firmware profiles" on a board whose firmware build is not in the profile list. If those cases are expected in the field, -ENODEV with an info line would keep error counts at 0.
  • Commit message: the last paragraph still says "Not tested on the ... J773g" and carries an internal working note; the description has the J773g row. Please bring the message in line.
  • Rows still open: an inference on a board other than the J713, one boot on a J604 or J715, and (not listed) one boot on a J623/J624, whose DTs change the same way. An s2idle cycle on a non-J713 board with the three DARTs enabled would also be worth having.

Assisted-by: LLM (Claude:Opus 5.5)

This branch has not been deployed

No deployments
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.

1 participant