Repository navigation
arm64: dts: apple: t602x: add the CPU energy model (enables EAS on M2 Pro/Max) - #932
Merged
RyanTheTide merged 1 commit intoNov 10, 2026
Conversation
RyanTheTide
reviewed
Nov 9, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
The commit has no Signed-off-by. Please add yours (DCO, Documentation/process/submitting-patches.rst).
… Pro/Max) T602x has no CPU energy model, so energy-aware scheduling stays off even though apple-soc-cpufreq already registers the model from the OPP table: the cluster OPP tables carry no opp-microwatt, while T8103, T600x, T8112, T8132 and T8140 do. Add opp-microwatt to every OPP of both core types. The values are derived, not measured on T602x: T8112 (M2) has the same cores, Blizzard and Avalanche, on the same process, and its opp-microwatt was measured with the SMC cluster power meters. Its per-OPP power is fitted to P = (a + b f) V^2 f per core type with T6020's voltage for each OPP (from the ADT's pmgr voltage-states), and the fit gives T6020's OPPs, within 6% rms of T8112's measurements for both core types. The energy per cycle rises from each OPP to the next, so no OPP is marked inefficient and cpufreq keeps choosing among all of them; only the scheduler's placement changes. Same-boot A/B on a J414s (M2 Pro), headless idle, kernel.sched_energy_aware 1 vs 0, 12 paired rounds of 20 s: system power is 0.230 W lower with the energy model (lower in 12 of 12; SoC power 0.156 W). All six T602x boards build with W=1 and no new warnings. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RuRMQncGu3ukpyW44vHHjQ Signed-off-by: Justin Pfister <[email protected]>
JJRPF
force-pushed
the
t6020-energy-model
branch
from
November 9, 2026 11:42
a174b73 to
27e8000
Compare
Contributor
Author
|
@RyanTheTide I have added my sign off to the commit. |
RyanTheTide
merged commit Nov 10, 2026
9b344fc
into
aurora-silicon:integration/aurora
2 checks passed
This was referenced Nov 11, 2026
Merged
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.
T602x (M2 Pro/Max) has no CPU energy model, so energy-aware scheduling stays off even though
apple-soc-cpufreqalready registers the model from the OPP table: the cluster OPP tables carry noopp-microwatt, while T8103, T600x, T8112, T8132 and T8140 do. This addsopp-microwattto every OPP of both core types int602x-common.dtsi(+23 lines).Method (derived, not measured on T602x)
T8112 (M2) has the same cores, Blizzard and Avalanche, on the same process, and its
opp-microwattwas measured with the SMC cluster power meters. Its per-OPP power is fitted toP = (a + b f) V^2 fper core type, using T6020's voltage for each OPP (from the ADT'spmgrvoltage-states: E clustervoltage-states1, P clustervoltage-states5; cluster 1'svoltage-states13is within 6 mV). The fit gives T6020's OPPs, within 6% rms of T8112's measurements for both core types. The energy per cycle rises from each OPP to the next, so no OPP is marked inefficient and cpufreq keeps choosing among all of them; only the scheduler's placement changes. The script istools/t6020-cpu-em.pyin JJRPF/Aurora-DeepIdle.Result (J414s, MacBook Pro 14" M2 Pro, headless, nothing attached)
kernel.sched_energy_aware1 vs 0, 12 paired rounds of 20 s: with the energy model, system power is 0.230 W lower (lower in 12 of 12, sd 0.09 W) and SoC (heatpipe) power 0.156 W lower. This was on a PMP boot; the CPUs sat in CPU PD 79% of the time.t6020-j414s/j416s/j474s,t6021-j414c/j416c/j475c) build with W=1 and no new warnings (thealias_pathswarning att602x-common.dtsi:14is already there).CHECK_DTBS.Raw data and the A/B harness: JJRPF/Aurora-DeepIdle,
data/idle_erikwb/,tools/idle-ab.py.This change was developed with Claude Code (Claude Sonnet 5.5, Anthropic) at the owner's direction.
🤖 Generated with Claude Code
https://claude.ai/code/session_01RuRMQncGu3ukpyW44vHHjQ