Repository navigation
arm64: dts: apple: t6041: add CPU cluster power-gate enables - #3147
Conversation
T6041 has the per-core PMGR power-gate enable page at 0x50282c000 where the boot loader leaves the boot core's word clear, preventing it and its cluster from power-gating in WFI. Add the T6041 compatible and note T6041 and T8142 in the binding description. Signed-off-by: AxxzyWasTaken <axxzytte@gmail.com>
Add the cluster_pwrgate node to t6041.dtsi for the E core 0 (0x50282c000) and P0 core 0 / boot core (0x50282c040) power-gate enable words, matching the two wake gates restored by t6041-sleep. Setting bit 31 early in boot lets the boot core and P0 cluster power-gate in WFI without depending on the boot loader. Signed-off-by: AxxzyWasTaken <axxzytte@gmail.com>
|
J614c row (MacBook Pro 14" M4 Max, 40-core GPU, full T6041 with 32 memory channels), this PR's two commits (0a25328, b7c843b) on
|
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: MERGE
Checked: Full diff in Documentation/devicetree/bindings/soc/apple/apple,cluster-pwrgate.yaml and arch/arm64/boot/dts/apple/t6041.dtsi, exact-head J614c bare-metal verification row, and paginated CI status (5/5 completed, 0 active, 0 failed).
Notes:
- Adding
apple,t6041-cluster-pwrgateto the binding enum and describing the per-core PMGR words (0x50282c000for E core 0 and+0x40for boot P0 core 0) matches the existingapple,cluster-pwrgateearly-boot driver and aligns with the wake gates restored on resume byt6041-sleep. - Exact-head J614c (MacBook Pro 14-inch M4 Max, T6041) boot,
2/2deep sleep cycles, and idle power drop are recorded atb7c843bc90a2.
Evidence
- Head audited:
b7c843bc90a21711f783a7734d490923621d2759(aurora-silicon/linux#3147) - Paginated CI gate (
check-runs+ commit statuses):5completed,0active,0failed (readiness: ready to merge).
What
Add the
cluster_pwrgateDT binding entry and SoC node for Apple M4 Max (T6041):dt-bindings: soc: apple,cluster-pwrgate: addapple,t6041-cluster-pwrgateto the compatible enum and document T6041 (per-core, matching T6050) and T8142 in the description.arm64: dts: apple: t6041: addcluster_pwrgate: power-gate@50282c000with the two wake-gate enable words (0x50282c000for E core 0 and0x50282c040for P0 core 0 / boot core, matching the two wake gates restored byt6041-sleep), so early boot enables bit 31 and lets the boot core / P0 cluster power-gate in WFI without relying on iBoot.Tested
Hardware row at
b7c843bc90a2: Apple M4 Max 16" (T6041 / J616C) (7.3.0-j616c-main25nov+with DTB built fromb7c843bc90a2):/proc/device-tree/power-gate@50282c000:compatible = "apple,t6041-cluster-pwrgate", "apple,cluster-pwrgate",reg = <0x5 0x0282c000 0x0 0x4>, <0x5 0x0282c040 0x0 0x4>.deepsuspend-to-RAM cycles (rtc110s wakealarm):rc=0(11seach),0failed systemd units,0GPU/SPMI/tipd errors.scripts/checkpatch.pl --strict0 errors / 0 warnings / 0 checks on both commits;make dt_binding_check(apple,cluster-pwrgate.yaml) 0 errors / 0 warnings;make dtbs_check(apple/t6041-j616c.dtb) 0 new warnings.Risk
two-way · Adds the T6041 DT node for the existing
apple-cluster-pwrgateearly-boot driver using the same two PMGR enable words already touched byt6041-sleepon resume; cleanly revertible.Not yet