Repository navigation
arm64: dts: apple: t6050-k114s: enable the PMP - #3524
Conversation
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>
|
K114s hardware row: PASS.
These still work with the PMP running:
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 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>
|
Exact-head K114s default-cmdline hardware row at
|
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
Problem
On the K114s (14-inch M5 Pro, T6050)
apple_pmploads, but no device binds becauset6050-k114s.dtsleavespmp0, 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 ont6050-k116s.dtsandt6050-j714s.dts.Change
Board-specific DT changes only (
arch/arm64/boot/dts/apple/t6050-k114s.dtsandarch/arm64/boot/dts/apple/t6050-k114s-pmp-tunables.dtsi; no sharedt6050*.dtsifiles are modified):ps_pms,ps_pmp,ps_pms_sram,pmp0_dart,pmp0_mbox,pmp0, andpmp0_reportint6050-k114s.dts.&pmp0(/chosenboard-id20/0x14,dram-vendor-id1;/arm-io/pmgrpmc1,pmc-pmgr63), add the PMC static voters (<0 1 3>) andapple,pmp = <&pmp0>, and put&sgxonpower-domains = <&pmp0_gfx>to matcht6050-k116s.dtsandt6050-j714s.dts.t6050-k114s-pmp-tunables.dtsiwith the K114sAP 27.2 ADT/arm-io/pmp0/iop-pmp0-nubproperties (same 147 property names ast6050-k116s-pmp-tunables.dtsi; onlyagx-dvfs-state-voltagesdiffers, andaurarefills 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-reportrunning (status 0x1,requests 0x1000047000),apple-pmcbound,pmp-gfxon, desktop up,Enforcing, 0 failed units, 0 new kernelerrlines vsmain(49d5220916b8) control DTB, 1/1 PMU RTCs2idlecycle clean, 0 DCP crashes.d749604a95b58):make CHECK_DTBS=y apple/t6050-k114s.dtb(dtschema): 0 warnings.dtc -I dtb -O dts -sdiff vsmain(49d5220916b8): only the 7 PMP/reportstatusflips (ps_pms,ps_pmp,ps_pms_sram,pmp0_dart,pmp0_mbox,pmp0,pmp0_report),&pmp0properties/tunables,&pmcstatic voters +apple,pmp, and&sgxpower-domains = <&pmp0_gfx>. No other board DTB is affected.d749604a95b58onmain49d5220916b8, own DTB viaaura-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), andapple-pmc(286806000.power-management) all bound;genpd:pmp=on,pmp-gfx=on.gdm) up,eDP-1enabled,Enforcing,0failed units,0DCP crashes, cpufreq (3 policies),macsmc_hwmon,AppleK114/AppleK114HPAIaudio, AOP IIO sensors, and Wi-Fi working.0new kernelerr-level log lines compared against a same-kernel (7.3.0-b6pr3524+) control boot with themain(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,0DCP crashes,0PMP errors/timeouts.13dc5a79+lab_fw27=7+powerlut_dtlab tree, both PMP-alone and PMP+--reportbooted cleanly (PMP RUNNING, RTKit 12) and behaved identically to the PMP-off control on S1 (no regression).Not yet
pmp-dispint(report@12) remainsoff-0and is not attached to48ae00000.dcp.t6050-k114ssleep description) are separate follow-ups.Risk
two-way · K114s only (one board DTB; no shared
t6050*.dtsimodified). Onaura(since51ac329d,dt_fill_pmp_unit()), the loader refillsboard-id,dram-vendor-id,pmc/pmc-pmgr, and allapple,tunable-*properties from the live ADT at boot; the values int6050-k114s-pmp-tunables.dtsiserve as the fallback for loaders without that fill, matchingt6050-k116s-pmp-tunables.dtsi.