Repository navigation
arm64: dts: apple: t6041: SIO and the Neural Engine on every M4 Max - #2288
Conversation
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]>
|
No blockers. Checked at 4ad124b. Both commits move nodes out of t6041-j614c-j616c.dtsi into t6041.dtsi without changing them ( One thing to watch: HW row: nice to have, not needed to merge: a J575c owner boot on this head. SIO adopted ( Assisted-by: LLM (Claude:Opus 5.5) |
|
Adversarial pass at 4ad124b: no blockers.
Still owed: a J575c boot on this head with SIO adopted, Assisted-by: LLM (Claude:Opus 5.5) |
There was a problem hiding this comment.
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 moveps_uart_p(@1a0),ps_dpa_p(@1a8), thesioalias,ps_sio_cpuparents/enable,sio_dart,sio_mbox,ane0_dart0-2, andanefromt6041-j614c-j616c.dtsiintot6041.dtsiwith zero functional diff to J614c/J616c. Verified against liveintegration/aurora(70a00e583b03): no PMGR unit-address collision witht604x-pmgr.dtsi(ps_sio@120,ps_sio_cpu@130,ps_spi_p@198),t6041-j575c.dtsalready includest6041-j616c-ane.dtsi(providing theanealias and firmware reservations without re-disabling&aneor&ane0_dart*), and&sioremainsdisableduntil the boot loader reserves its firmware. Not superseded onintegration/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 withAssisted-by:. - §6 Naming & Live CI: PASS —
dt-checksandhost-testsare bothSUCCESSon4ad124bcf9a5.
Blocker (§5 Evidence)
- Missing live hardware verification on the affected Mac (J575c Mac Studio M4 Max): Moving
ps_dpa_p(apple,always-on) and enablingps_sio_cpu,sio_dart,sio_mbox,ane0_dart0-2, andaneint6041.dtsiactively turns on these blocks on J575c for the first time, and no J575c boot has been run yet (as noted underStill to run). - Required to clear: Boot
4ad124bcf9a5(or a refreshed head) on a J575c and post the hardware + regression row:- SIO adopted (
apple-siobound),apple-anebound 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.
- SIO adopted (
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
Superseded by the review at 4ad124b
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]>
Signed-off-by: Ryan Murray <[email protected]>
satchlj
left a comment
There was a problem hiding this comment.
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 parentsps_sio,ps_spi_p,ps_uart_p,ps_dpa_p),sio_dart, andsio_mboxfromt6041-j614c-j616c.dtsiinto sharedt6041.dtsi, leaving board-specificps_dpa1/ps_dpa2/dpaudio1/dpaudio2int6041-j614c-j616c.dtsi. - Cross-checked
t6041-j575c.dts: includest6041.dtsiandt6041-j616c-ane.dtsi, has no conflictingsioalias or SIO PMGR overrides, and already enables&ane0_dart0..2/&aneidempotently while&sioremains disabled until bootloader firmware handoff. - Live CI at
d470c6fc30d0: 4/4 unique checks green (dt-checks,host-tests,pr-text / pr-text,readiness / readiness;0active,0failing).
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.