Repository navigation
arm64: dts: apple: t602x: give the first ANE DART its power domain - #1694
DjDeveloperr wants to merge 1 commit into
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. |
Split out of #1676, which carried this commit alongside four other DART power-domain fixes. The rest of #1676 can merge without it; this one waits for a T602x boot.
ane_dart0(iommu@285800000) names the always-onps_pmp. The M2 Pro/Max device trees givedart-ane0the ANE-SYS-DART vote under ANE_SYS, and the M1-family ANE DARTs at the same place already nameps_ane_sys. Withps_pmp, nothing powers ANE_SYS beforeane_dart0probes: onlyane_dart1andane_dart2(ps_ane_cpu, a child ofps_ane_sys) bring it up. The first register read then depends on the loader having left ANE_SYS on, and if it hasn't,apple_dart_readltakes an SError and the boot panics. This change namesps_ane_sysinstead.This has only been build-checked.
Needs one boot
Please boot this on any one of J414s, J416s, J474s, J414c, J416c or J475c and check that:
285800000.iommuprobes cleanly (no probe error indmesg)Assisted-by: LLM (Claude:Opus 5.5)