Repository navigation
arm64: dts: apple: t6050-k114s: start the PMP - #3524
Draft
RyanTheTide wants to merge 1 commit into
Draft
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
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 <[email protected]>
Contributor
Author
|
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. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On the K114s (14-inch M5 Pro, T6050)
apple_pmploads but nothing binds: the K114s DT never enablespmp0. 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.dtsgets the same PMP block as the K116s: theps_pms,ps_pmpandps_pms_srampower states,pmp0_dart,pmp0_mbox,pmp0andpmp0_report, and the PMC's static voters withapple,pmp. The boot arguments come from the K114s ADT:/chosenboard-id 20 and dram-vendor-id 1, and/arm-io/pmgrpmc 1 and pmc-pmgr 63.The new
t6050-k114s-pmp-tunables.dtsiholds the raw bytes of/arm-io/pmp0/iop-pmp0-nubfrom the K114sAP 27.2 ADT. It has the same 147 property names as the K116s file, and every value matches exceptagx-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 maind8c60437.pmp0binds 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-voltagesis 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 ADTpmpnode by register window. It then clears and refills board-id, dram-vendor-id, everyapple,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.