Skip to content

arm64: dts: apple: enable PMP for M2 Pro and Max - #2013

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
muness:codex/j414c-enable-pmp
Nov 27, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
muness:codex/j414c-enable-pmp

Conversation

@muness

@muness muness commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Move APPLE_USE_PMP into the T6021 SoC include. T6020 inherits it from T6021, so the J414s board-level define can go. The PMP can then manage fabric and DCS p-states on M2 Pro and M2 Max. Ship these DTBs after the Aura loader fix.

Enabling the same define on T6022 exposed a missing pmp_report_avd_sys_die1 phandle. M2 Ultra needs a separate change to describe that power domain.

DTB build

All eight T602x DTBs build with Aurora’s bundled dtc. J414s and both M2 Ultra DTBs are byte-for-byte identical to the base. Five boards gain the PMP alias (J416s, J474s, J414c, J416c, J475c).

J414c results from the board-level trial

On Aurora Alarm -40, the original board-level DTB booted with patched Aura, passed 87 tunables (13,220 value bytes), and logged PMP firmware and endpoint ready and PMP manages fabric and DCS p-states. The DTB SHA-256 is ad16664a8cbc1e323bb883999a741ae1ca9fae20b0aa57c4aedc787c5ab28058.

The original board-level DTB passed 10/10 s2idle cycles on a J414c with patched
Aura 52af355c, Aurora Alarm -40 and a Microsoft Surface Thunderbolt 4 Dock.
The built-in panel returned, the stock BCM4388 driver reconnected and
answered a Wi-Fi gateway ping, and 22 USB devices enumerated after every
wake. The Wi-Fi reload workaround was disabled. PMP stayed enabled.

Suspend durations in seconds, cycles 1–10: 24.7, 31.1, 30.6, 37.9, 49.1, 69.2, 27.4, 32.0, 43.6, 33.2.

Each wake logged a DRM resume error (-22), USB4 DisplayPort discovery and
tunnel messages, and DCP lane-count warnings. Nine wakes also logged USB
descriptor errors (-32) on a dock hub and USB audio sample-rate warnings.
The devices still enumerated. The cycle logs contain no PMP or RTKit warnings.
The PMP-on boot logged that pmp-isp-sys would stay powered. The Aura PR records the
stock bootloader failure and patched boot comparison.

Screen-on idle power

J414c on battery at 40% built-in brightness with the dock unplugged. Both
boots used Aurora Alarm -40, the same Aura Stage 2 and U-Boot, and differed
only in the J414c DTB. Each run settled for 60 seconds, then sampled the SMC
power sensors at 1 Hz for 240 seconds.

Average PMP off PMP on Reduction
Total system 10.938 W 8.963 W 1.975 W (18.1%)
Heatpipe 5.930 W 2.675 W 3.255 W (54.9%)

One run per setting, PMP on first. CPU activity averaged 2.7% with PMP off
and 3.6% with PMP on.

Review checklist

  • Build and compare all eight T602x DTBs.
  • Land the Aura loader fix before shipping the PMP-enabled DTBs.
  • Boot the revised J414c DTB and confirm PMP initializes.
  • Boot another T602x board covered by this change, capture PMP manages fabric and DCS p-states, and run three s2idle cycles with no PMP or RTKit warnings.
  • Run the repository’s DT and host checks.
  • Add human DCO sign-off for the revised patch.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for the thorough J414c rows: the tunables count, 10/10 s2idle with display, Wi-Fi and USB checked after each wake, and the idle power table.

One request on the shape. APPLE_USE_PMP only switches on SoC blocks (the PMP node and its report entries in the t602x dtsi files). Today it is set on the J414s only, and this PR adds a second board. Since nothing about the PMP differs between T602x boards, could the define move to the SoC include instead: once at the top of t6021.dtsi (next to APPLE_T602X_NON_ULTRA), and the same in t6020.dtsi/t6022.dtsi, dropping it from t6020-j414s.dts? The real dependency is the loader change (aura#268), so this would land after that. If you prefer, we can do the family move and use your J414c rows as the T6021 evidence.

The extra rows for the SoC-level form, where an owner can run them: one other T602x machine (e.g. a J475c) with PMP manages fabric and DCS p-states, three s2idle cycles, and no PMP or RTKit warnings.

Move APPLE_USE_PMP to the T6021 SoC include. T6020 inherits it from that include, so drop the J414s board define.

Pair the DTBs with a bootloader that can copy the PMP tunables. T6022 needs a separate change for its second-die AVD power domain.

Link: aurora-silicon/aura#268
Signed-off-by: Muness Castle <[email protected]>
@muness
muness force-pushed the codex/j414c-enable-pmp branch from b5d5dfa to 1500657 Compare November 22, 2026 14:54
@muness muness changed the title arm64: dts: apple: t6021-j414c: enable PMP arm64: dts: apple: enable PMP for M2 Pro and Max Nov 22, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, 1500657 is the shape I asked for. APPLE_USE_PMP now sits once in t6021.dtsi next to APPLE_T602X_NON_ULTRA, T6020 inherits it through t6020.dtsi, and T6022 stays out because it doesn't include t6021.dtsi. The J414s board define is gone. The change is SoC-level, so it now also turns PMP on for the J416c and J475c, which is the point. Your J414c rows cover the SoC.

One merge-order point: this depends on aura#268 (OPEN), which makes room for the PMP tunables in the boot device tree. Merging the DTBs first would leave the PMP node enabled on loaders that can't copy them. So please land aura#268 first, or confirm what the PMP does on these boards when its tunables are absent. If it then stays off cleanly, the order doesn't matter. Approving with that ordering.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review at 1500657. Moving APPLE_USE_PMP to the T6021 include keeps the previously enabled J414s DTB unchanged and enables the alias on five additional T6020/T6021 boards. Treat the bootloader's full-PMP-property handoff as a dependency. Please verify a current default boot on one newly enabled board, with the PMP actually driving the expected fabric states. Keep the M2 Ultra unchanged until it can describe the other die's power domain.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@muness checking open drafts today. To come out of draft, this still needs:

  • A test run at the current head on a Mac with the hardware it touches, then mark it ready for review.

If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done.

@muness

muness commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Tested the J414c DTB from the current head, 150065747fdb, on my 14-inch M2 Max (T6021), one of the boards newly enabled by this PR. I rebuilt the DTB and verified it was byte-for-byte identical to the one in the tested boot image (SHA-256 639127317e860c623a3c3b6a6871ef7797ef7665d58d73ced50779462ce6d0f3).

I booted the normal Aurora ALARM -41 entry with Aura Stage 2 1.0.0b14-ged9c5bab from the now-merged loader fix. The live PMP node had 87 tunables (13,220 bytes). Linux reported PMP firmware and endpoint ready and PMP manages fabric and DCS p-states. One s2idle cycle passed, Wi-Fi reconnected in five seconds, and systemd reported zero failed units after wake. Aura #268

The DeepIdle work also exercised PMP on this J414c with its experimental S2R stack. PMP restarted after both timed RAM-root wakes, and it came back after three desktop suspend-to-RAM cycles. DeepIdle #13 · RAM-root results · Desktop results

@muness
muness marked this pull request as ready for review November 26, 2026 15:17
@muness
muness requested review from a team as code owners November 26, 2026 15:17
@muness
muness requested review from Acelogic and malik-na November 26, 2026 15:17
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 15006574: not ready yet

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at 15006574
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 150065747fdb6aa09b9bbc95b74967f5d127211d

Blocker: Please remove the tool attribution trailer from the PR description. The commit already has a human sign-off and needs no history rewrite.

Checked: The enable now lives in the shared non-Ultra SoC include. Removing the J414s define avoids duplicate board policy, and T6022 remains outside the enable. Aura #268 has merged. The J414c current-head DTB and stock-loader wake row are posted. The second affected-family regression row and current DT/host checks are still open. Please post the DT comparison and a second-board baseline/wake result or the closest supported stand-in and an owner regression request. No new bindings or private material found in the patch.

@muness

muness commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

tool attribution trailer removed from the PR description

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict at 15006574: approve.

Blockers: none.

Checked

  • APPLE_USE_PMP moves from the J414s board file into t6021.dtsi, so every T6020/T6021 board gets the PMP from the SoC include. That's the shared-dtsi pattern we want, with no board gate.
  • The J414s and both M2 Ultra DTBs are byte-identical; five boards gain the PMP.
  • The loader fix it depends on (aurora-silicon/aura#268) is merged.
  • Row at this head: J414c (M2 Max) with the merged loader. 87 tunables, PMP ready and managing fabric/DCS, 1 s2idle cycle, 0 failed units.

Follow-ups (not merge items)

  • The J416s, J474s, J416c and J475c gain the PMP untested. A boot row from any of them is welcome.
  • On a Stage 2 older than aura#268, the PMP node arrives without its tunables. #3085 carries a PMC change that keeps PMC running in that case; it's being split into its own PR.
  • The body isn't in the What/Tested/Risk/Not yet template yet (needs-template).

@RyanTheTide
RyanTheTide merged commit a8fea0b into aurora-silicon:main Nov 27, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants