Repository navigation
arm64: dts: apple: t8132: fix inverted 912 MHz P-cluster OPP cost - #3547
Conversation
In donan_p_opp, opp-912000000 currently sets opp-microwatt = <289000> (316.9 uW/MHz), slightly higher per MHz than opp-1260000000 at 396000 uW (314.3 uW/MHz). Because the Energy Model marks lower-frequency states with higher cost per performance as inefficient, CPUFREQ_RELATION_LE permanently skips 912 MHz and parks idle P-cores at 1260 MHz. Settled per-OPP PP0b rail measurements on J713 show 912 MHz draws 454.0 mW (497.8 mW/GHz) vs 644.4 mW (511.4 mW/GHz) at 1260 MHz, so 912 MHz is strictly more efficient per GHz. Update opp-912000000 opp-microwatt proportionally to <279000> (305.9 uW/MHz) so the Energy Model keeps 912 MHz eligible. Signed-off-by: Erik Bourget <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: HOLD at 43f8add3
Blockers:
- Live J713 (
T8132) Stage 2 DTB boot verification missing (noted in PR bodyNot yet:): Please boot the updated Stage 2 DTB onJ713at43f8add3and post/sys/kernel/debug/energy_model/pd0/ps:912000/inefficient(0) andpolicy0/stats/time_in_stateconfirming 912 MHz is no longer marked inefficient/skipped. Once posted, this is ready to approve.
Checked:
- Audited exact
+1/-1diff inarch/arm64/boot/dts/apple/t8132.dtsi(opp-912000000opp-microwatt<289000> -> <279000>):- Verified the Energy Model cost arithmetic against the settled
J713PP0bpower sweep (454.0 / 644.4 * 396000 = 278994 uW -> 279000 uW, reducing 912 MHz EM cost from13827to13349 < 13702at 1260 MHz).
- Verified the Energy Model cost arithmetic against the settled
- Confirmed hosted CI is completely green (
dt-checks,host-tests,pr-text,readinessallSUCCESS) and all 6 T8132 DTBs compile cleanly withcheckpatch.pl0/0.
Evidence
- Head commit:
43f8add3e7d16784ed41ee1afba2f9e3dd9f81ef(MERGEABLEintomain). - CI snapshot:
dt-checks=SUCCESS,host-tests=SUCCESS,pr-text=SUCCESS,readiness=SUCCESS.
There was a problem hiding this comment.
Verdict: MERGE at 43f8add3e7d1
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: - Audited exact +1/-1 diff in arch/arm64/boot/dts/apple/t8132.dtsi (opp-912000000 opp-microwatt <289000> -> <279000>):
- Verified the Energy Model cost arithmetic against the settled
J713PP0bpower sweep (454.0 / 644.4 * 396000 = 278994 uW -> 279000 uW, reducing 912 MHz EM cost from13827to13349 < 13702at 1260 MHz). - Confirmed hosted CI is completely green (
dt-checks,host-tests,pr-text,readinessallSUCCESS) and all 6 T8132 DTBs compile cleanly withcheckpatch.pl0/0.
Follow-ups (not blocking): J713 Stage 2 DTB boot showing 912 MHz not inefficient
|
Merging at |
What: Adjust
donan_p_oppopp-912000000opp-microwattfrom<289000>to<279000>inarch/arm64/boot/dts/apple/t8132.dtsiso Linux's Energy Model no longer marks 912 MHz inefficient and skips it in favor of 1260 MHz.Tested: J713 M4 Air settled
PP0bOPP measurements + DTB compile/schema verification at43f8add3e7d1: all 6 T8132 DTBs (J604, J623, J624, J713, J715, J773g) compile cleanly with only the 912 MHzopp-microwattcell changed; J713PP0bdraws454.0 mW(497.8 mW/GHz) at 912 MHz vs644.4 mW(511.4 mW/GHz) at 1260 MHz.Risk: two-way door · M4 (T8132) Macs
Not yet: Booting the updated Stage 2 DTB on J713 to record live
/sys/kernel/debug/energy_model/pd0/ps:912000/inefficientandpolicy0/stats/time_in_state(kept as draft until that hardware row is recorded).Details
In
donan_p_opp,opp-912000000currently specifiesopp-microwatt = <289000>(316.89 uW/MHz), slightly aboveopp-1260000000at<396000>(314.29 uW/MHz). Inkernel/power/energy_model.c,em_compute_costs()computes an integer cost of13827for 912 MHz vs13702for 1260 MHz, marking 912 MHz inefficient. As a result,CPUFREQ_RELATION_LEskips 912 MHz and parks idle P-cores at 1260 MHz (~99.1% of uptime at 1260 MHz vs 0.16% at 912 MHz on J713).Scaling the existing 1260 MHz table entry (
396000 uW) by the measured J713PP0bpower ratio (454.0 / 644.4 = 0.70453) gives278994 uW, rounded to<279000>(305.92 uW/MHz). That lowers the 912 MHz Energy Model cost to13349(< 13702), restoring monotonic cost across the low P-cluster OPPs.Evidence
Settled 1-core
PP0bpower sweep on J713 (2.5 s settle per OPP)PP0bPP0bmW / GHz912 MHz25.0 mW454.0 mW497.81260 MHz25.0 mW644.4 mW511.41512 MHz25.0 mW863.6 mW571.21800 MHz27.0 mW1036.8 mW576.02088 MHz31.0 mW1378.4 mW660.2Build & static checks (
43f8add3e7d1)t8132-j604.dtb,t8132-j623.dtb,t8132-j624.dtb,t8132-j713.dtb,t8132-j715.dtb,t8132-j773g.dtb); diff confirmed only theopp-912000000power cell changed./scripts/checkpatch.pl --no-tree: 0 errors, 0 warnings