Repository navigation
soc: apple: clpc: take the ANE cluster floor and High Power from the DT - #3741
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 ANE CPU cluster floor applied only where the root compatible matched a machine name kept in the table (apple,t6040, apple,t8142), and High Power mode had a fallback on the apple,j714s machine name for DTBs from before apple,high-power-mode. Add a boolean apple,ane-cluster-floor on the CLPC node of the machines where the floor was measured (T6040 in t6040.dtsi, T8142 J704 and J813/J815), document it in the PMC binding, and read it instead of the machine name. Drop the j714s fallback: t6050-j714s.dts has carried apple,high-power-mode since linux#2784. For every in-tree DTB the resolved ANE floor and High Power mode are the same as before. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.
What: CLPC stops matching machine names. (1) The ANE CPU cluster floor used to apply only where the root compatible matched the table's
ane_cluster_machine(apple,t6040,apple,t8142). It now needs a new booleanapple,ane-cluster-flooron the CLPC node. The property is added to t6040.dtsi, t8142-j704.dts and t8142-j813-j815.dtsi, and documented in power/apple,pmc.yaml. (2) Thehigh_power_machine = "apple,j714s"fallback is gone, so High Power mode comes only fromapple,high-power-mode. t6050-j714s.dts has carried that property since #2784. Audit gate: #2784 / #3083, section 3 MED.Tested: at 33cc47b: CLPC KUnit on arm64 QEMU passes 18/18 (suites apple-clpc-gpu and apple-clpc-policy). Host tests clpc-gpu-demand and clpc-high-power-cleanup pass (3/3). The
W=1build of clpc.o is clean. CI'sscripts/dtc/apple-dt-check.sh(base aurora/main vs head) finds 0 new CHECK_DTBS warnings, and the pmc.yaml dt_binding_check passes. The DT check below finds 0 differences across 45 CLPC nodes in 141 DTBs.Risk: one-way door until the Stage 2 DTBs carry the property. The live DT on our Macs is the Stage 2 DTB, not the kernel's. Read-only check on 12-01: the J616s live CLPC node has no
apple,ane-cluster-floor. So with this kernel, the J616s (T6040) and the T8142 boards lose the ANE cluster floor (ANE work still gets its DCS/fabric floor) until their Stage 2 DTB is refreshed. The same goes for a J714s whose Stage 2 DTB predates #2784: it would lose High Power mode. Affected Macs: J616s, J614s, J773s, J704, J813, J815, J714s.Not yet: no hardware row. A J616s row needs a Stage 2 DTB with the property (trial plus promote), which I did not do. T8142 and J714s rows are owed by their owners. Please hold the merge until the J616s Stage 2 DTB carries the property, or merge it together with that refresh.
DT equivalence proof (fdt per compiled dtb)
Script
proof_clpc.py(pylibfdt). It reads the old dtbs (aurora/main b2cd21f) with the old rules and the head dtbs with the new rules. The table is the first compatible in the driver's match list. Old ANE floor = the table has ane_cluster_khz and the root compatible has the table's machine. New ANE floor = the table has ane_cluster_khz and the node hasapple,ane-cluster-floor. Old High Power = the property, or (the t6050 table and rootapple,j714s). New High Power = the property.The other 31 CLPC nodes (t6020/1/2, t6041, the other t6050 boards, t8112, t8132, t8140, t8152) are False/False in both.