Skip to content

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

Merged
DjDeveloperr merged 3 commits into
mainfrom
feat/t6050-k114s-pmp
Dec 3, 2026
Merged

DjDeveloperr merged 3 commits 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 no device binds because t6050-k114s.dts leaves pmp0, its power states, mailbox, DART, and report disabled. The PMP report, the PMP's PMC votes, and GPU power-domain reporting (&pmp0_gfx) are missing, unlike on t6050-k116s.dts and t6050-j714s.dts.

Change

Board-specific DT changes only (arch/arm64/boot/dts/apple/t6050-k114s.dts and arch/arm64/boot/dts/apple/t6050-k114s-pmp-tunables.dtsi; no shared t6050*.dtsi files are modified):

  • Enable ps_pms, ps_pmp, ps_pms_sram, pmp0_dart, pmp0_mbox, pmp0, and pmp0_report in t6050-k114s.dts.
  • Set the K114s ADT boot arguments on &pmp0 (/chosen board-id 20 / 0x14, dram-vendor-id 1; /arm-io/pmgr pmc 1, pmc-pmgr 63), add the PMC static voters (<0 1 3>) and apple,pmp = <&pmp0>, and put &sgx on power-domains = <&pmp0_gfx> to match t6050-k116s.dts and t6050-j714s.dts.
  • Include t6050-k114s-pmp-tunables.dtsi with the K114sAP 27.2 ADT /arm-io/pmp0/iop-pmp0-nub properties (same 147 property names as t6050-k116s-pmp-tunables.dtsi; only agx-dvfs-state-voltages differs, and aura refills all PMP properties from the live ADT at boot).

Testing

Tested: K114s M5 Pro at d749604 (default cmdline, own DTB via aura-try): PMP RUNNING (RTKit 12, PMP firmware and endpoint ready, PMP started), apple-pmp-report running (status 0x1, requests 0x1000047000), apple-pmc bound, pmp-gfx on, desktop up, Enforcing, 0 failed units, 0 new kernel err lines vs main (49d5220916b8) control DTB, 1/1 PMU RTC s2idle cycle clean, 0 DCP crashes.

  • DT validation (d749604a95b58):
    • make CHECK_DTBS=y apple/t6050-k114s.dtb (dtschema): 0 warnings.
    • dtc -I dtb -O dts -s diff vs main (49d5220916b8): only the 7 PMP/report status flips (ps_pms, ps_pmp, ps_pms_sram, pmp0_dart, pmp0_mbox, pmp0, pmp0_report), &pmp0 properties/tunables, &pmc static voters + apple,pmp, and &sgx power-domains = <&pmp0_gfx>. No other board DTB is affected.
  • K114s exact-head default-cmdline hardware row (d749604a95b58 on main 49d5220916b8, own DTB via aura-try, default cmdline, no lab patches):
    • apple_pmp 284500000.pmp: RTKit: Initializing (protocol version 12) -> PMP firmware and endpoint ready -> RTKit: syslog message: io.cpp:61: PMP started.
    • apple-pmp-report 284240000.pmp-report: PMP running (status 0x1), requests 0x1000047000; apple_pmp, apple-pmp-report, apple-pmp-report-entry (report@12/24/c/d/e/f), and apple-pmc (286806000.power-management) all bound; genpd: pmp=on, pmp-gfx=on.
    • Desktop (gdm) up, eDP-1 enabled, Enforcing, 0 failed units, 0 DCP crashes, cpufreq (3 policies), macsmc_hwmon, AppleK114/AppleK114HPAI audio, AOP IIO sensors, and Wi-Fi working.
    • 0 new kernel err-level log lines compared against a same-kernel (7.3.0-b6pr3524+) control boot with the main (49d5220916b8) DTB.
    • s2idle (1 cycle via PMU RTC /dev/rtc1, rtcwake -d /dev/rtc1 -m mem -s 10, /sys/power/mem_sleep = [s2idle]): suspend_stats success=1 fail=0, clean wake, 0 DCP crashes, 0 PMP errors/timeouts.
  • No-regression on lab S1 display arm: on the 13dc5a79 + lab_fw27=7 + powerlut_dt lab tree, both PMP-alone and PMP+--report booted cleanly (PMP RUNNING, RTKit 12) and behaved identically to the PMP-off control on S1 (no regression).

Not yet

  • pmp-dispint (report@12) remains off-0 and is not attached to 48ae00000.dcp.
  • PMP thermal zones and deep sleep (t6050-k114s sleep description) are separate follow-ups.

Risk

two-way · K114s only (one board DTB; no shared t6050*.dtsi modified). On aura (since 51ac329d, dt_fill_pmp_unit()), the loader refills board-id, dram-vendor-id, pmc/pmc-pmgr, and all apple,tunable-* properties from the live ADT at boot; the values in t6050-k114s-pmp-tunables.dtsi serve as the fallback for loaders without that fill, matching t6050-k116s-pmp-tunables.dtsi.

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 <ryan@aurorasilicon.org>
@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.

Resolve the append conflict in arch/arm64/boot/dts/apple/t6050-k114s.dts by
keeping both the touchscreen (kiwi) block from main and the PMP block.
Put &sgx on &pmp0_gfx so the PMP report tracks GPU power state, matching
t6050-k116s.dts and t6050-j714s.dts.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide RyanTheTide changed the title arm64: dts: apple: t6050-k114s: start the PMP arm64: dts: apple: t6050-k114s: enable the PMP Dec 3, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Exact-head K114s default-cmdline hardware row at d749604a95b58 (merged main 49d5220916b8 + &sgx power-domains = <&pmp0_gfx>): PASS.

  • Kernel & DTB: 7.3.0-b6pr3524+ (d749604a95b58, zero lab patches), own t6050-k114s.dtb (5834539e) via one-shot aura-try (M1N1/try-b6pr3524.bin, committed Stage 2 untouched), default cmdline (rhgb quiet loglevel=3 rd.udev.log_level=3 systemd.show_status=auto user4k=on plymouth.ignore-serial-consoles ...).
  • PMP & report:
    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
    
    apple_pmp, apple-pmp-report, apple-pmp-report-entry (report@12/24/c/d/e/f), and apple-pmc (286806000.power-management) all bound; pm_genpd_summary shows pmp = on, pmp-gfx = on, pmp-dispint = off-0.
  • Desktop & baseline comparison: gdm active, eDP-1 enabled, Enforcing, 0 failed units, 0 DCP crashes, cpufreq (policy0/6/12), macsmc_hwmon, audio (AppleK114 / AppleK114HPAI), AOP IIO (iio:device0..2), Wi-Fi up. Same-kernel control boot with main (49d5220916b8) DTB (453a280b) showed apple_pmp unbound and an identical journalctl -b -k -p err list (0 new errors).
  • s2idle: 1 cycle via PMU RTC (rtcwake -d /dev/rtc1 -m mem -s 10, mem_sleep = [s2idle]): suspend_stats success=1 fail=0, clean wake (PM: suspend exit), Wi-Fi and DCP recovered, 0 DCP crashes, 0 PMP errors/timeouts.

@RyanTheTide
RyanTheTide marked this pull request as ready for review December 3, 2026 16:22
@RyanTheTide
RyanTheTide requested review from a team as code owners December 3, 2026 16:22
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:all 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-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Merge readiness at d749604a: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
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 d749604a
Conflicts ok none
PR text ok Risk: two-way · K114s only (one board DTB; no shared t6050*.dtsi modified). On aura (since 51ac329d, dt_fill_pmp_unit()), the loader refills board-id, dram-vendor-id, pmc/pmc-pmgr, and all apple,tunable-* properties from the live ADT at boot; the values in t6050-k114s-pmp-tunables.dtsi serve as the fallback for loaders without that fill, matching t6050-k116s-pmp-tunables.dtsi.

Areas: area:bringup

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

@github-actions github-actions Bot removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 3, 2026

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

Approved at d749604a95b5. This enables the PMP only in the K114s DTB, and its GPU uses the same pmp0_gfx power domain as K116s. On the merge tree with 33be24af74f4 (1ff414060bec), make ARCH=arm64 LLVM=1 -j4 CHECK_DTBS=y passed for all 11 T6050 DTBs with no new warnings. The ten other DTBs are byte-identical, and the K114s hash matches the booted DTB in the hardware receipt. That run saw the PMP start, the PMC bind and s2idle resume cleanly. pmp-dispint remains off-0 under Not yet.

@DjDeveloperr
DjDeveloperr merged commit 1cd285c into main Dec 3, 2026
8 of 12 checks passed
@DjDeveloperr
DjDeveloperr deleted the feat/t6050-k114s-pmp branch December 3, 2026 16:57
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:all 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants