Skip to content

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

Merged
RyanTheTide merged 3 commits into
mainfrom
spec-m3m4/t8132-ane-all-boards-v2
Dec 5, 2026
Merged

RyanTheTide merged 3 commits 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 <ryan@aurorasilicon.org>
@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)

@DjDeveloperr

Copy link
Copy Markdown
Contributor

This still applies to main and closes #4144, so here is the forward merge, built and ready to take.

On main c09b61228e62 only t8132-j713.dts conflicts: main has added the DisplayPort alt-mode block after the four &ane* overrides. Keep that block and drop the four overrides (&ane_dart0, &ane_dart1, &ane_dart2, &ane). The t8132-peripherals.dtsi hunks apply as they are.

cpp + dtc of all twelve M4 boards, main against that tree: the J713 and the six M4 Pro/Max boards are the same; J604, J715, J623, J624 and J773g change only in the four status values.

Since the J773g row here (26.6.2), main has gained the T8132 26B123 preload profile, so on 27.2 the row to add is: boot, preload ... accepted in the log, /dev/accel/accel0, one inference or the add-128 selftest, and one deep sleep with the ANE bound (the J713 already sleeps with it on). J773g or J715 covers it; J604 needs #4007 to #4009 first for the sleep part.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Forward-merged main f02bd68 as 10df05e (merge commit, no rebase). The one conflict in t8132-j713.dts is resolved as DjDeveloperr described: main's DisplayPort alt-mode and dcpext blocks kept, the four &ane* overrides dropped.

Local check (cpp + dtc with CHECK_DTBS=y, dtschema): all six T8132 DTBs build, 0 new schema or dtc warnings against main. J713 DTB byte-identical to main; J604, J623, J624, J715 and J773g differ only in the four status values (ane, ane_dart0/1/2 disabled -> okay).

DT-only and inert where the loader does not hand off the ANE preload, so marking it ready. Still wanted as a follow-up row: an inference on a non-J713 board (J773g with an HWX fixture) and one J604 or J715 boot. None of those is in our lab.

@RyanTheTide
RyanTheTide marked this pull request as ready for review December 5, 2026 01:04
@RyanTheTide
RyanTheTide requested review from a team as code owners December 5, 2026 01:04
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) and removed ci-failing A check failed at the PR head (bot) labels Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Merge readiness at 324e8216: not ready yet

Check Detail
CI at head ok 4 checks passed
Review no approved by aurora-silicon-review, but GitHub does not count it yet (code owner from Core, Omarchy Mac or Aurora Maintainers needed, or approval went stale)
Requested changes ok none
Hardware row at head no no line with the head SHA 324e8216, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:bringup

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

@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 324e821
Checked: The shared T8132 description enables the ANE and its three DART nodes without changing their resources or IOMMU references. J713 already enabled all four through board overrides. Removing those overrides leaves the board's other changes, including DisplayPort routing, intact. The ANE preflight still rejects absent or malformed TEXT/DATA reservations before the firmware backend runs. Exact hosted DT checks passed. The J773g boot result in the description is from the predecessor PR.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Exact-head DTB verification at 324e8216987c758f1c07cb71f52cf40d190b39a7 (cpp + dtc -s against main 508a78a719f6): PASS

  • t8132-j713.dtb (acf8d847b157): sorted decompile byte-identical to main.
  • t8132-j773g.dtb, t8132-j604.dtb, t8132-j715.dtb: diff is strictly the 4 intended status = "disabled" -> status = "okay" transitions (ane@500000000, iommu@501800000, iommu@501820000, iommu@501840000), matching the J773g 4-boot PASS row (program ran=1 refused=0, /dev/accel/accel0, 0 IRQ timeouts).

Merging under the six-point gate at exact head 324e8216987c:

  • CI green at exact head (4/4 checks passed).
  • Independent review approved at exact head (aurora-silicon-review).
  • Hardware row verified (J773g 4-boot ANE PASS + J713 byte-identical DTB proof).
  • No taint; no Stage 1 / 1TR / LocalPolicy / default-boot change.
  • Using --admin only because aurora-silicon-review App approval does not satisfy GitHub branch-protection reviewer count.
  • Revert path: git revert -m 1 <merge-sha>.

@RyanTheTide
RyanTheTide merged commit c07f292 into main Dec 5, 2026
6 checks passed
@RyanTheTide
RyanTheTide deleted the spec-m3m4/t8132-ane-all-boards-v2 branch December 5, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants