Skip to content

arm64: dts: apple: t6002: enable PMP on M1 Ultra - #2164

Merged
RyanTheTide merged 3 commits into
aurora-silicon:mainfrom
joshuaswarren:w86/t600x-pmp-alias
Dec 1, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:mainfrom
joshuaswarren:w86/t600x-pmp-alias

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What: Define APPLE_USE_PMP in t6002.dtsi so the boot loader exposes /aliases/pmp = &pmp and enables the PMP on M1 Ultra (J375d). In t600x-dieX.dtsi, gate AVD's PMP report domain to DIE_NO == 0 so die 1 keeps its PMGR power domain (ps_avd_sys_die1), because t6002.dtsi has no die-1 AVD PMP report entry. T6001 (M1 Max) is covered separately by #3401, and all five T6000 and T6001 DTBs are byte-identical to main.

Tested: Compile-tested only at 290a761e63e8. All six t600* DTBs build cleanly with W=1; all five T6000 and T6001 DTBs match main byte for byte; decompiled t6002-j375d.dtb verifies /aliases/pmp = "/soc@200000000/pmp@28e700000", die-0 AVD bound to pmp_report_avd_sys, and die-1 AVD kept on ps_avd_sys_die1. checkpatch.pl reports 0 errors and 0 warnings.

Risk: two-way · M1 Ultra (J375d)

Not yet: No J375d (M1 Ultra) hardware boot or s2idle cycle has been run (we do not have an M1 Ultra). Needs a J375d boot confirming PMP manages fabric and DCS p-states and three s2idle cycles before merge.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Cross-check verdict: GREEN at head 80f93d5 (base dcce0e7, integration tip).

Reviewed by a GLM-family reviewer; the patch is byte-identical to the 94cbeb2331a6 commit that was reviewed line by line (verified: the only patch-text deltas are the commit hash and the blob-index line), rebased onto the integration tip with no adaptation.

The change is one file, +7 lines: #define APPLE_USE_PMP in t6001-j316c.dts before the includes.

  1. Scoping: the define is per compilation unit, so only the j316c board file gains the PMP-gated blocks (the pmp alias, the venc/JPEG/ProRes report nodes, the scaler and ProRes power-domain wiring in t6000.dtsi and the t600x includes). j314s and j316s keep their own defines; every other t600x board and all t602x/t8112 boards stay off. That matches the commit message exactly.
  2. Precedent: the identical pattern is already merged for j314s and j316s.
  3. The message honestly splits the result: the measured ANE prefix drop (438.75 to 289.45 ms, 1.52x, bit-exact output hash) is PMP fabric governance moving to the PMP, not DT calibration - and it matches independent lane measurements on this board.

Undraft gates: the DTS alone enables nothing (m1n1 performs the enablement), and the promised s2idle suspend/resume plus idle-power numbers are still pending, so boot plus resume evidence should land before this leaves draft. Author identity and single-commit hygiene are correct.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks. Two points.

  1. Shape: APPLE_USE_PMP only switches on SoC blocks (the PMP node and its report entries in the t600x dtsi files), and nothing about the PMP differs between T600x boards. Rather than opting in one more board, could the define move to the SoC include: once at the top of t6000.dtsi, t6001.dtsi and t6002.dtsi (next to APPLE_T600X_NON_ULTRA), dropping it from t6000-j314s.dts and t6000-j316s.dts? The M1 Pro trees stay byte-identical, and the M1 Pro rows from arm64: dts: apple: t6000-j316s: enable PMP #1302 cover T6000.
  2. Rows: as you note, this is not booted on the current base yet. On the J316c at this head: PMP ready with PMP manages fabric and DCS p-states; three real s2idle cycles with display, Wi-Fi and USB working after each; idle power with the PMP off and on (SMC total, 4 minutes each); and the ANE number re-measured on the current base.

If an M1 Max Mac Studio or an M1 Ultra owner can add one boot with the same PMP lines and three sleeps, that covers the rest of the family.

Enable the PMP in the T6001 and T6002 includes. T6000 inherits
the T6001 definition. Drop the two board-level definitions.

Only die 0 has a PMP report entry for AVD. Keep the existing PMGR
domain for die 1, which has no report entry.

All six board DTBs compile. The two existing M1 Pro DTBs are
byte-identical to the base DTBs.

Signed-off-by: Joshua Warren <[email protected]>
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

The define moved into the SoC includes. It now sits next to APPLE_T600X_NON_ULTRA at the top of t6001.dtsi and in t6002.dtsi, before their t600x-common.dtsi includes. It is gone from t6000-j314s.dts and t6000-j316s.dts, comments included.

t6000.dtsi needs no define of its own. Its line 14 includes t6001.dtsi, so a T6000 build sees the define before the #ifdef APPLE_USE_PMP blocks at t6000.dtsi:88 and :195. Defining it a second time there would be a duplicate on that include path.

Verification compiled base and candidate with the in-tree dtc. The T6000 boards are byte-identical to their integration DTBs: j314s 7deb967d…, j316s 19004c1f…. The T6001 board j316c gains the PMP nodes: eae2fab8… to 847efee7…. All six board DTBs compile. The Ultra's die-1 AVD stays on its PMGR domain.

Point 2: queued. The rows you listed run on our J316c against the reshaped head as soon as it lands on this PR. That is three real s2idle cycles with display, Wi-Fi and USB checked after each. Then four minutes of SMC total power per arm, PMP off and on. Then the ANE workload re-measured on the current base. The PR stays draft until they pass.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks. Your reasoning on t6000.dtsi is right: it defines APPLE_T6000_SUBSET and includes t6001.dtsi at line 14, so it picks up the define from there, and a second define would be a duplicate.

The reshape isn't on the PR yet, though. The head is still 80f93d5, which only adds #define APPLE_USE_PMP to t6001-j316c.dts, and t6000-j314s.dts and t6000-j316s.dts still carry their own defines. Please push the reshaped commit. The J316c rows you queued then run against that head.

Once it is pushed, the define in t6002.dtsi also switches PMP on for the M1 Ultra. One boot from a Mac Studio M1 Ultra owner showing the PMP ready line and three sleeps would cover it. That doesn't need to block the J316c rows.

@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

The reshape is now on this PR at b2e8324f08c36f7d6b28705ed9ef68e4b3f798b8. dt-checks and host-tests passed.

The PR stays in draft until we have the J316c hardware results. An M1 Ultra boot with the PMP ready line and three sleep cycles would cover that board separately.

@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

We do not have an M1 Ultra here, so that boot cannot come from us. The ask stays open for a Mac Studio M1 Ultra owner.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, b2e8324 is what we asked for. The define sits in t6001.dtsi:24 and t6002.dtsi:23, the two board defines are gone, and the M1 Pro DTBs are byte-identical. The die-1 AVD fallback in t600x-dieX.dtsi:33-37 is right: the t6002.dtsi report list has die-1 entries only for dispext0-3, so pmp_report_avd_sys_die1 doesn't exist. CI is green.

Left:

  1. The title and body still describe a single-board change ("Scoped to one board ... every other t600x board keeps PMP off"). This head enables PMP on every T6001 and T6002 board (J314c, J316c, J375c, J375d). Please retitle to match the commit and update the body.
  2. The J316c rows you queued: three s2idle cycles, SMC power PMP off vs on, and the ANE re-measure on this head.

Understood on the M1 Ultra. That ask stays open for a Mac Studio owner.

@joshuaswarren joshuaswarren changed the title arm64: dts: apple: t6001-j316c: enable PMP arm64: dts: apple: enable PMP on T6001 and T6002 Nov 20, 2026
@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Title and body updated to the T6001/T6002 scope. The head stays b2e8324f08c3, and both checks pass. Two offline rows are also in: the six board DTBs at this head compare against the base, and on J375d the die-0 AVD resolves to the PMP report while die-1 AVD resolves to its PMGR controller. The J316c reference and matched rows stay with the hardware queue.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, title and body now match the T6001/T6002 scope, and the offline DTB comparison plus the J375d die-0/die-1 AVD resolution cover what we can check without the hardware. From here it waits only on the J316c rows in your queue and one M1 Ultra boot from a Mac Studio owner.

@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Acknowledged. The J316c matched rows are queued: package verification against the exact head first, then the hardware slot. The M1 Ultra ask stays open for a Mac Studio owner.

@DanteCpp

Copy link
Copy Markdown
Contributor

I measured the PMP-off side on a 16-inch M1 Max (J316c) running 7.2.11-14-1-ARCH with m1n1 stage 2 bc79acc4-dirty. The live tree has no pmp alias, the controller is disabled, and the PMP report driver is bound.

I sampled SMC Total System Power once a second for four minutes (241 readings). With AC power and the internal panel at 86/500 brightness, it averaged 26.61 W (median 20.22 W, range 19.23–65.26 W). The desktop was in use with no benchmark running. The GPU busy counter advanced for 52.2% of the interval.

I also built the J316c DTB at b2e8324f08c3 and its parent. The head adds the PMP alias and moves AVD to report@11. The power reading above is a stock-kernel desktop reference. A matched idle off/on comparison, three s2idle cycles and ANE timings on the booted head are still outstanding.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@joshuaswarren 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.

T6001 (M1 Max) is covered by aurora-silicon#3401, which adds the DRAM OPP table, CPU
memory floor, and media report entries on top of APPLE_USE_PMP. Drop the
T6001 define and restore the two T6000 board defines so this PR touches
only T6002 (M1 Ultra) and the die-1 AVD fallback.

Signed-off-by: Joshua Warren <[email protected]>
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

T6001 (M1 Max) is covered by #3401, which adds the DRAM OPP table, CPU memory floor, and media report entries on top of APPLE_USE_PMP and already has a J316c hardware row. Narrowing this PR to T6002 (M1 Ultra) only, keeping the die-1 AVD fallback to PMGR because t6002.dtsi has no die-1 AVD report entry. This stays a draft until someone with a J375d can run the boot and s2idle rows.

@joshuaswarren joshuaswarren changed the title arm64: dts: apple: enable PMP on T6001 and T6002 arm64: dts: apple: t6002: enable PMP on M1 Ultra Nov 28, 2026
@joshuaswarren
joshuaswarren marked this pull request as ready for review November 28, 2026 11:23
@joshuaswarren
joshuaswarren requested review from a team as code owners November 28, 2026 11:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-28T11:23:04.398489Z
We couldn’t complete this review. Comment @codex review to try again.
290a761 Draft marked ready
🔒 Security Review ❌ Failed 2026-11-28T11:23:12.092653Z
We couldn’t complete this review. Comment @codex security review to try again.
290a761 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@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 290a761e

Blockers:

  1. Missing live M1 Ultra (T6002 / J375d) hardware boot row at 290a761e (currently compile-tested only, as noted in Tested:), confirming PMP probes cleanly and die-1 AVD stays functional on ps_avd_sys_die1.
  2. Queued CI checks (dt-checks, host-tests, pr-text, readiness) are still pending; wait for green CI.

Checked:

  • arch/arm64/boot/dts/apple/t6002.dtsi & t600x-dieX.dtsi: clean 5-line DT change defining APPLE_USE_PMP for t6002.dtsi and scoping &pmp_report_avd_sys to DIE_NO == 0 so die 1 keeps &DIE_NODE(ps_avd_sys) (since t6002.dtsi has no die-1 AVD PMP report entry), leaving all T6000 and T6001 DTBs byte-identical.
  • Checked for Apple material, tool attribution, private serials, and board gating: clean; human Signed-off-by present; MERGEABLE on main.
Evidence
  • Head: 290a761e63e8 (base: main, mergeable: MERGEABLE, +5/-2 across 2 files).

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 290a761e: not ready yet

Check Detail
CI at head ok 4 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 290a761e
Conflicts ok none
PR text ok Risk: two-way · M1 Ultra (J375d)

Areas: area:platform

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

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026

@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: MERGE at 290a761e63e8

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: - arch/arm64/boot/dts/apple/t6002.dtsi & t600x-dieX.dtsi: clean 5-line DT change defining APPLE_USE_PMP for t6002.dtsi and scoping &pmp_report_avd_sys to DIE_NO == 0 so die 1 keeps &DIE_NODE(ps_avd_sys) (since t6002.dtsi has no die-1 AVD PMP report entry), leaving all T6000 and T6001 DTBs byte-identical.

  • Checked for Apple material, tool attribution, private serials, and board gating: clean; human Signed-off-by present; MERGEABLE on main.

Follow-ups (not blocking): M1 Ultra J375d boot row, queued CI

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 290a761e63e8 (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: the hardware row at 290a761 that the readiness check found (PR body or comment). CI: linux train L3 = main 429e7e1 + 28 approved PRs (candidate 45c2fa4b): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit dcp-fabric/dcp-topology/dcp-display/macsmc/spi-hid-apple/mt7932/asahi/sep pass; ave failed to build only because of #3153 (unused static helper under -Werror; #3153 held out) and passes with #3153 reverted from the candidate; host tests apple-dcp and apple-scaler-recovery pass. The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit ecee997 into aurora-silicon:main Dec 1, 2026
6 of 9 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) blast:m1 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants