Skip to content

arm64: dts: apple: t6050-k114s: start the PMP - #3524

Draft
RyanTheTide wants to merge 1 commit into
mainfrom
feat/t6050-k114s-pmp
Draft

RyanTheTide wants to merge 1 commit into
mainfrom
feat/t6050-k114s-pmp

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On the K114s (14-inch M5 Pro, T6050) apple_pmp loads but nothing binds: the K114s DT never enables pmp0. The PMP report, the PMP's PMC votes and the PMP thermal and power data are missing. The K116s and the J714s already have them.

Change

t6050-k114s.dts gets the same PMP block as the K116s: the ps_pms, ps_pmp and ps_pms_sram power states, pmp0_dart, pmp0_mbox, pmp0 and pmp0_report, and the PMC's static voters with apple,pmp. The boot arguments come from the K114s ADT: /chosen board-id 20 and dram-vendor-id 1, and /arm-io/pmgr pmc 1 and pmc-pmgr 63.

The new t6050-k114s-pmp-tunables.dtsi holds the raw bytes of /arm-io/pmp0/iop-pmp0-nub from the K114sAP 27.2 ADT. It has the same 147 property names as the K116s file, and every value matches except agx-dvfs-state-voltages. The generator script reads an ADT and uses an existing tunables file as the list of names: work/k114s-ladder/tools/adt_pmp_tunables.py.

Deep sleep is not part of this PR. The K boards' sleep description is a separate change; see #2089 for K114c.

Testing

  • make CHECK_DTBS=y apple/t6050-k114s.dtb (dtschema): 0 messages, the same as main d8c60437.
  • No other DTB changes.
  • K114s boot row: pending. It is scheduled for the next K114s bridge boot. It checks that pmp0 binds and starts, the PMP report is present, the thermal zones appear, there are 0 new kernel errors, and jack audio, the AOP sensors and s2idle still work.

Risk

two-way · K114s only (one DTB).

agx-dvfs-state-voltages is a per-part value. With aura, it is not a problem: since aura 51ac329d (kboot_pmp.c, in the Stage 2 on this K114s), the loader pairs each enabled PMP node with its ADT pmp node by register window. It then clears and refills board-id, dram-vendor-id, every apple,tunable-*, the PMP boot arguments and pmc/pmc-pmgr from the live ADT (dt_fill_pmp_unit()). The values in this file are only the fallback for a loader without that fill, the same as for the K116s.

The K114s DT never enabled the PMP: apple_pmp loads but no device binds,
so the PMP's report, its PMC votes and the PMP thermal and power data are
missing, unlike the K116s and the J714s.

Enable the PMP power states, its DART, mailbox and report, give it the
K114s ADT's boot arguments (/chosen board-id 20, dram-vendor-id 1,
/arm-io/pmgr pmc 1, pmc-pmgr 63), let the PMC count its votes, and add
the firmware properties from the K114sAP 27.2 ADT's
/arm-io/pmp0/iop-pmp0-nub. They have the same names as the K116s's and
the same bytes except agx-dvfs-state-voltages.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s hardware row: PASS.

apple_pmp 284500000.pmp: RTKit: Initializing (protocol version 12)
apple_pmp 284500000.pmp: PMP firmware and endpoint ready
apple_pmp 284500000.pmp: RTKit: syslog message: io.cpp:61: PMP started
apple-pmp-report 284240000.pmp-report: PMP running (status 0x1), requests 0x1000047000

These still work with the PMP running:

  • jack audio card (AppleK114 Primary/Secondary)
  • AOP ALS and motion sensors
  • cpufreq on all 3 clusters
  • SMC hwmon

No new kernel errors compared with the same kernel without this diff. The DCP "undeclared provider clock index 0" line is there on both. The PMP thermal zones do not appear yet (only macsmc-battery); that is a separate follow-up.

Not covered yet: s2idle with the PMP running. It needs a key or lid wake, so it is waiting for a hands-on slot. I'll keep this a draft until then.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant