Skip to content

arm64: dts: apple: t6041: add CPU cluster power-gate enables - #3147

Merged
RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
AxxzyWasTaken:pr/t6041-cluster-pwrgate
Nov 25, 2026
Merged

RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
AxxzyWasTaken:pr/t6041-cluster-pwrgate

Conversation

@AxxzyWasTaken

Copy link
Copy Markdown
Contributor

What

Add the cluster_pwrgate DT binding entry and SoC node for Apple M4 Max (T6041):

  1. dt-bindings: soc: apple,cluster-pwrgate: add apple,t6041-cluster-pwrgate to the compatible enum and document T6041 (per-core, matching T6050) and T8142 in the description.
  2. arm64: dts: apple: t6041: add cluster_pwrgate: power-gate@50282c000 with the two wake-gate enable words (0x50282c000 for E core 0 and 0x50282c040 for P0 core 0 / boot core, matching the two wake gates restored by t6041-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 from b7c843bc90a2):

  • Live DT verified at /proc/device-tree/power-gate@50282c000: compatible = "apple,t6041-cluster-pwrgate", "apple,cluster-pwrgate", reg = <0x5 0x0282c000 0x0 0x4>, <0x5 0x0282c040 0x0 0x4>.
  • 2/2 consecutive deep suspend-to-RAM cycles (rtc1 10s wakealarm): rc=0 (11s each), 0 failed systemd units, 0 GPU/SPMI/tipd errors.
  • Local validation: scripts/checkpatch.pl --strict 0 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-pwrgate early-boot driver using the same two PMGR enable words already touched by t6041-sleep on resume; cleanly revertible.

Not yet

  • Testing on other T6041 boards (e.g. J614c / J575c) beyond J616C.

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>
@joske

joske commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

J614c row (MacBook Pro 14" M4 Max, 40-core GPU, full T6041 with 32 memory channels), this PR's two commits (0a25328, b7c843b) on main 34bdf71 plus #2061, #2170, #2171, #3142, #3143 and a local speaker patch, aura 1.0.0b14.1, default command line:

  • Boot: 50282c000.power-gate present with both reg words, no new kernel errors, 0 failed units.
  • Deep sleep: 2 of 2, a lid sleep (111 s) and rtcwake -m mem -s 20 with the panel lit, both woke with the display, Wi-Fi and Bluetooth back.
  • Idle power on battery (macsmc-battery/power_now, panel at the same brightness, desktop idle, 24 samples at 2 s after a 12 s settle): median 5.32 W without this PR, 4.82 W with it. A single short measurement each, so not conclusive, but in the expected direction.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at b7c843bc: ready to merge

Check Detail
CI at head ok 3 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at b7c843bc
Conflicts ok none
PR text ok Risk: two-way · Adds the T6041 DT node for the existing apple-cluster-pwrgate early-boot driver using the same two PMGR enable words already touched by t6041-sleep on resume; cleanly revertible.

Areas: area:bringup
Merge: gh pr merge 3147 --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.

@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) 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

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-pwrgate to the binding enum and describing the per-core PMGR words (0x50282c000 for E core 0 and +0x40 for boot P0 core 0) matches the existing apple,cluster-pwrgate early-boot driver and aligns with the wake gates restored on resume by t6041-sleep.
  • Exact-head J614c (MacBook Pro 14-inch M4 Max, T6041) boot, 2/2 deep sleep cycles, and idle power drop are recorded at b7c843bc90a2.
Evidence
  • Head audited: b7c843bc90a21711f783a7734d490923621d2759 (aurora-silicon/linux#3147)
  • Paginated CI gate (check-runs + commit statuses): 5 completed, 0 active, 0 failed (readiness: ready to merge).

@RyanTheTide
RyanTheTide merged commit 49fc037 into aurora-silicon:main Nov 25, 2026
6 checks passed
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.

5 participants