Repository navigation
arm64: dts: apple: t602x: give the first ANE DART its power domain - #1694
Conversation
ane_dart0 names the always-on ps_pmp, while the M2 device trees (macOS 27.2.1: J414s, J414c, J475d) give dart-ane0 the ANE-SYS-DART vote, parent ANE_SYS, and the engine votes ANE-SYS-V. The M1, M1 Pro/Max/Ultra and M2 ANE DARTs at the same place already name ps_ane_sys. With ps_pmp, nothing powers ANE_SYS before ane_dart0 probes. It is the first of the three ANE DARTs, and only ane_dart1 and ane_dart2 (ps_ane_cpu, a child of ps_ane_sys) bring ANE_SYS up. Its first register read then depends on the loader having left ANE_SYS on. When the loader has not, the read takes an SError and panics the boot in apple_dart_readl, as the T8132 scaler and JPEG DARTs did. Name ps_ane_sys. After probe nothing changes: ane_dart1 and ane_dart2 already hold ANE_SYS on. The ANE and its DARTs are enabled on the M2 Pro and M2 Max (J414s, J416s, J474s, J414c, J416c, J475c), where ane_dart0 binds today with ps_pmp. This change is build-checked only. Fixes: 49d05bc ("arm64: dts: apple: t602x: Add the die 0 ANE") Signed-off-by: Diljit Singh <hey@djdev.me>
|
Looks good; approve once one M2 Pro or M2 Max boots it.
HW row: J414s/J416s/J474s (M2 Pro) or J414c/J416c/J475c (M2 Max), integration/aurora with this DTB, booted the way the fleet boots with a dead-man. Pass if 285800000.iommu probes, the ANE binds and a ANE job (or the driver's self-test) runs, a runtime suspend/resume cycle of the ANE works with no DART fault, there is no SError, and the run has 0 AVC denials, 0 failed units and no new kernel errors against the same kernel without the change. Assisted-by: LLM (Claude:Opus 5.5) |
|
integration/aurora (110861f) still has power-domains = <&ps_pmp> on ane_dart0 in t602x-die0.dtsi, and neither #1676 nor #2261 changed it, so this one-line change is still needed. It applies cleanly to 110861f. What's missing is one boot on an M2 Pro or M2 Max (J414s, J416s, J474s, J414c, J416c or J475c): 285800000.iommu probes, the ANE binds, no SError. Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over every Apple DTB: no new warnings against the tip. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: HOLD at 97626fe0
Blockers:
- Missing T602x (M2 Pro / M2 Max) boot verification at
97626fe0. Changingane_dart0'spower-domainson a board wheret6021.dtsienables ANE can trigger a boot SError if the domain wiring differs from expectation. Please post a boot row on any T602x machine (J414s,J416s,J474s,J414c,J416c, orJ475c) confirming285800000.iommuprobes cleanly, ANE binds, and zero SErrors occur.
Checked:
- 1-line diff (
arch/arm64/boot/dts/apple/t602x-die0.dtsi:26:<&ps_pmp>-><&ps_ane_sys>),MERGEABLEagainstmain. - Matches M1
t600x-die0.dtsi:56andps_ane_cpu's parentps_ane_sys(t602x-pmgr.dtsi).
Evidence
- Code change is minimal and sound; strictly awaiting one T602x hardware boot row at
97626fe0.
There was a problem hiding this comment.
Verdict: MERGE at 97626fe0b103
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: - 1-line diff (arch/arm64/boot/dts/apple/t602x-die0.dtsi:26: <&ps_pmp> -> <&ps_ane_sys>), MERGEABLE against main.
- Matches M1
t600x-die0.dtsi:56andps_ane_cpu's parentps_ane_sys(t602x-pmgr.dtsi).
Follow-ups (not blocking): one T602x boot row (DART probe, ANE binds, no SError)
|
J414c M2 Max (T6021) at |
RyanTheTide
left a comment
There was a problem hiding this comment.
Approved at 97626fe0b103 under the 12-01 merge bar. One-line DT fix (t602x-die0.dtsi: ane_dart0 power-domains = <&ps_ane_sys>) matching M1/M2 and the M2 Pro/Max ADT; exact-head J414c M2 Max (T6021) PASS row posted by muness (all three ANE DARTs bound, 0 SErrors across boot + 68 s s2idle), 6/6 CI green.
|
Merging at |
What:
ane_dart0(iommu@285800000) on T602x names the always-onps_pmp. The M2 Pro/Max device trees givedart-ane0the ANE-SYS-DART vote under ANE_SYS, and the M1-familyane_dart0at the same place already namesps_ane_sys(t600x-die0.dtsi). Withps_pmp, nothing powers ANE_SYS beforeane_dart0probes: onlyane_dart1andane_dart2(ps_ane_cpu, a child ofps_ane_sys) bring it up, so the first register read depends on the loader having left ANE_SYS on, and if it hasn't,apple_dart_readltakes an SError and the boot panics. This namesps_ane_sysinstead. Split out of #1676.Tested: J414c M2 Max (T6021) at
97626fe0, posted by muness on 12-02:ane_dart0's power domain resolves toane_sys;285800000.iommu,285810000.iommuand285820000.iommubound toapple-dartwith no probe error; no SError during boot or across a 68 s s2idle sleep; the FaceTime camera (also behind a DART) streamed 30/30 frames before and after the sleep; 0 failed units. Device tree checks and host tests pass at this head.Risk: two-way · T602x only (M2 Pro and M2 Max: J414s, J416s, J474s, J414c, J416c, J475c). After probe nothing changes:
ps_ane_cpuis a child ofps_ane_sys, so the other two ANE DARTs already kept ANE_SYS on whenever they were active.Not yet: an ANE workload on a T602x Mac with the ANE firmware installed (the J414c run stopped at the ANE firmware preflight, so the ANE itself wasn't exercised).