Skip to content

arm64: dts: apple: t6041: SIO and the Neural Engine on every M4 Max - #2288

Merged
RyanTheTide merged 4 commits into
mainfrom
spec-m3m4/t6041-sio-ane-all
Nov 26, 2026
Merged

RyanTheTide merged 4 commits into
mainfrom
spec-m3m4/t6041-sio-ane-all

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable the SIO setup and Neural Engine for all M4 Max boards in the shared t6041.dtsi. J575c gets the same setup as the existing MacBook Pro boards. The bootloader still enables SIO after the firmware handoff.

Tested: At d470c6f, built J575c, J614c and J616c device trees with cpp and dtc against current main. Compile diagnostics are unchanged. Every decoded J614c and J616c node property matches main. The J575c tree changes only the intended SIO and ANE properties. These are offline checks.

Risk: two-way door · M4 Max J575c, J614c and J616c.

Not yet: J575c production boot with SIO and ANE probing and one successful inference, plus a shared J614c or J616c regression.

Details

The ADT describes SIO and the Neural Engine on all three M4 Max boards. The laptop shared file enabled their support only on J614c and J616c. The shared t6041.dtsi now names the SIO alias, its power-state attachments and mailbox/DART enables, and enables the ANE and its three DARTs. The forward uses main's existing pmgr state definitions and leaves the display-audio state enables with the boards that describe those endpoints. The driver already matches apple,t6041-ane.

The earlier all-T604x device-tree pass also found no change on T6040. The current forward includes the merged CLKREQ routing. On J575c it adds the SIO alias, attaches the four existing power parents to the SIO CPU, and flips nine status properties.

The SIO coprocessor is part of the T6041 and has no board wiring; the
J575c device tree has the same /arm-io/sio as the MacBook Pros. Its DART,
mailbox, CPU power state (with the SPI, UART and DP audio parents its
firmware needs), the UART_P and DPA_P power states and the alias the boot
loader uses to find and enable the SIO node were only described in the
MacBook Pros' shared file, so the J575c never got a running SIO.

Move them to t6041.dtsi. The MacBook Pros' file keeps DPA1, DPA2 and
their DP audio clients. The J614c and J616c decompile unchanged (phandle
values aside); the J575c gains only these nodes, their status, the
SIO_CPU parents and the sio alias.

Signed-off-by: Ryan <[email protected]>
The Neural Engine is part of the T6041 and has no board wiring. The
J575c device tree has the same ane0 and dart-ane0 as the MacBook Pros,
and the J575c already includes the firmware reservations and the ane
alias the boot loader fills, but only the MacBook Pros' shared file
enabled the engine and its three DARTs.

Enable them in t6041.dtsi and drop the MacBook Pros' copy. The J614c and
J616c decompile unchanged; the J575c gains only these four status
changes.

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

Copy link
Copy Markdown
Contributor Author

No blockers.

Checked at 4ad124b. Both commits move nodes out of t6041-j614c-j616c.dtsi into t6041.dtsi without changing them (ps_uart_p, ps_dpa_p, the sio alias, ps_sio_cpu parents, sio_dart, sio_mbox, ane and ane0_dart0-2), so the J614c and J616c DTBs do not change. The J575c already includes t6041-j616c-ane.dtsi (t6041-j575c.dts:19), so the ANE reservations and the alias the boot loader fills are present there. The SIO node itself stays disabled until the boot loader has reserved the firmware, so a J575c with an older loader only gains powered domains, and the ANE/SIO drivers refuse without a handoff as they do on the laptops. dt-checks are green and the PR merges cleanly. It can leave draft.

One thing to watch: ps_dpa_p is apple,always-on (t6041.dtsi, the moved node), and it now keeps SIO's domain up on the Mac Studio too. That matches the laptops and is what the SIO firmware needs.

HW row: nice to have, not needed to merge: a J575c owner boot on this head. SIO adopted (apple-sio bound), apple-ane bound with its three DARTs, one inference run, 0 DART faults, 0 AVC, 0 failed units, no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 22, 2026 10:09
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Adversarial pass at 4ad124b: no blockers.

  • Built every Apple DTS with cpp + dtc at integration/aurora and with this PR merged in (clean merge). Only t6041-j575c changes; t6041-j614c and t6041-j616c come out identical, every T6040 tree is unchanged, and dtc warning counts are the same on every board.
  • On J575c the new ps_uart_p (0x1a0) and ps_dpa_p (0x1a8) nodes do not collide with anything already under pmgr, ps_sio_cpu gets its four parents, and sio_dart, sio_mbox, ane and ane0_dart0-2 turn on. The ANE's five power domains and the DARTs' ps_ane_sys are all enabled there, and memory-region resolves through t6041-j616c-ane.dtsi (t6041-j575c.dts:19).
  • Nothing later in the include chain re-disables the &ane overrides that now sit near the top of t6041.dtsi.
  • Merges cleanly alongside arm64: dts: apple: t6041: enable the first video encoder on every M4 Max #2266, which touches the same two files.

Still owed: a J575c boot on this head with SIO adopted, apple-ane bound with its three DARTs, one inference run and 0 DART faults.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Formal §1–§6 pre-PR review at 4ad124bcf9a5ac445edf10410a21fa18546ebb59: REQUEST_CHANGES (0 DT/attribution/CI blockers; blocked on §5 hardware & regression evidence for the affected Mac).

DT & Correctness Audit (§1–§4, §6)

  • DT cleanliness (§1–§3): PASS — both commits (c50248ea66d0, 4ad124bcf9a5) cleanly move ps_uart_p (@1a0), ps_dpa_p (@1a8), the sio alias, ps_sio_cpu parents/enable, sio_dart, sio_mbox, ane0_dart0-2, and ane from t6041-j614c-j616c.dtsi into t6041.dtsi with zero functional diff to J614c/J616c. Verified against live integration/aurora (70a00e583b03): no PMGR unit-address collision with t604x-pmgr.dtsi (ps_sio @120, ps_sio_cpu @130, ps_spi_p @198), t6041-j575c.dts already includes t6041-j616c-ane.dtsi (providing the ane alias and firmware reservations without re-disabling &ane or &ane0_dart*), and &sio remains disabled until the boot loader reserves its firmware. Not superseded on integration/aurora; merges cleanly alongside #2266/#1369/#2751.
  • §4 Clean-room & attribution: PASS — both commits carry human author/committer and Signed-off-by: Ryan <[email protected]> only (zero AI commit trailers); PR body ends with Assisted-by:.
  • §6 Naming & Live CI: PASS — dt-checks and host-tests are both SUCCESS on 4ad124bcf9a5.

Blocker (§5 Evidence)

  • Missing live hardware verification on the affected Mac (J575c Mac Studio M4 Max): Moving ps_dpa_p (apple,always-on) and enabling ps_sio_cpu, sio_dart, sio_mbox, ane0_dart0-2, and ane in t6041.dtsi actively turns on these blocks on J575c for the first time, and no J575c boot has been run yet (as noted under Still to run).
  • Required to clear: Boot 4ad124bcf9a5 (or a refreshed head) on a J575c and post the hardware + regression row:
    • SIO adopted (apple-sio bound), apple-ane bound with all three DARTs (ane0_dart0-2), and at least one ANE inference run with 0 DART faults.
    • Standard §5 regression row: 0 SELinux denials, 0 failed units, 0 new kernel errors.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at d470c6fc: ready to merge

Check Detail
CI at head ok 4 checks passed
Review ok approved by satchlj
Requested changes ok none
Hardware row at head ok in the PR body at d470c6fc
Conflicts ok none
PR text ok Risk: two-way · M4 Max J575c, J614c and J616c.

Areas: area:bringup
Merge: gh pr merge 2288 --merge (Owners and Core through the bypass: add --admin).

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

DjDeveloperr
DjDeveloperr previously approved these changes Nov 25, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: FINISH, then merge at 4ad124bcf9a5: the code is ready; it needs only a row at this head.

Blockers: none in the code. Missing row: this turns on SIO, its DART and mailbox, and the ANE with its DARTs on the J575c (M4 Max Mac Studio) for the first time. Needed: one J575c boot at this head with those probing and no new errors.

Checked: no Apple material, no board gates (SoC-level nodes in t6041.dtsi), CI green.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 25, 2026 03:20

Superseded by the review at 4ad124b

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
Keep the shared PMGR state definitions and move the SIO and ANE enables
to t6041.dtsi. Preserve the display-audio state enables on the boards
that describe those audio endpoints.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide requested a review from a team as a code owner November 25, 2026 03:45
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) labels Nov 25, 2026
@github-actions github-actions Bot added blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 25, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verdict: MERGE at d470c6fc30d0

Blockers: none

Checked: Full diff across arch/arm64/boot/dts/apple/t6041-j614c-j616c.dtsi and arch/arm64/boot/dts/apple/t6041.dtsi (+45/-51), cross-checked against arch/arm64/boot/dts/apple/t6041-j575c.dts on main, verified J614c/J616c DTB equivalence, non-collision of sio alias / ps_uart_p / ps_dpa_p / ps_sio_cpu / sio_dart / sio_mbox / ANE nodes on J575c, bootloader-gated SIO enablement, Signed-off-by: across all 4 commits, and live CI (dt-checks, host-tests, pr-text, readiness). Untested scope: live J575c kernel boot with SIO/ANE probe and inference (DTS code and CI audit only).

Evidence
  • Moves ane0_dart0, ane0_dart1, ane0_dart2, ane (status = "okay"), / { aliases { sio = &sio; }; }, ps_uart_p, ps_dpa_p, ps_sio_cpu (4 power-domain parents ps_sio, ps_spi_p, ps_uart_p, ps_dpa_p), sio_dart, and sio_mbox from t6041-j614c-j616c.dtsi into shared t6041.dtsi, leaving board-specific ps_dpa1/ps_dpa2/dpaudio1/dpaudio2 in t6041-j614c-j616c.dtsi.
  • Cross-checked t6041-j575c.dts: includes t6041.dtsi and t6041-j616c-ane.dtsi, has no conflicting sio alias or SIO PMGR overrides, and already enables &ane0_dart0..2/&ane idempotently while &sio remains disabled until bootloader firmware handoff.
  • Live CI at d470c6fc30d0: 4/4 unique checks green (dt-checks, host-tests, pr-text / pr-text, readiness / readiness; 0 active, 0 failing).

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) ready-to-merge Meets the merge policy: merge it (bot) labels Nov 25, 2026
@RyanTheTide
RyanTheTide merged commit e30f56c into main Nov 26, 2026
8 checks passed
@RyanTheTide
RyanTheTide deleted the spec-m3m4/t6041-sio-ane-all branch November 27, 2026 13:21
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) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants