Skip to content

arm64: dts: apple: t8132: give E and P cores their measured capacity - #416

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
ryan/j713-cpu-capacity-393
Oct 24, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
ryan/j713-cpu-capacity-393

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Erik Bourget's (erikwb) #393, re-landed on integration/aurora. #393 targets m4/pr1-basic-bringup, a stale stack branch since #400 replaced it, so retargeting would drag 28 old commits along. This is his single commit cherry-picked unchanged (his authorship and Signed-off-by, plus the cherry-pick line). Thanks Erik.

It adds capacity-dmips-mhz to the T8132 CPU nodes: 1024 for the P cores and 754 for the E cores, from his measurement on a J713 (E/P wall-time ratio 0.519 over twelve single-threaded programs, scaled by the clusters' maximum frequencies). Without it every core reports capacity 1024 and the scheduler treats the E cores as P cores.

Checked here: the J713 DTB carries 6 × 754 and 4 × 1024, and dtbs_check over all Apple DTBs is identical to integration/aurora. No Gravity overlap (their t8132.dtsi has no capacities). We have no T8132 hardware; the only effect is on T8132 machines.

Supersedes #393.

🤖 Generated with Claude Code

Without capacity-dmips-mhz every T8132 core reports capacity 1024, so the
scheduler treats the Donan E cores as equals of the P cores and places
latency-sensitive work (Hyprland frame composition on J713) on them.

Measured on a J713 (M4 MacBook Air) running cpufreq with schedutil, E at
2892 MHz and P at 4104 MHz (cpuinfo maxima): twelve single-threaded
programs (gcc -O2, zstd -19, bzip2 -9, gzip -9, xz -6, zlib, node,
sqlite, perl, lua and two CPython loops), each pinned and run three times
on two cores per cluster. The E/P wall-time ratio has a geometric mean of
0.519 (0.39 to 0.67), the same on battery and on AC. arch_topology scales
capacity-dmips-mhz by each cluster's maximum frequency, so
E = 0.519 * 4104 / 2892 * 1024 = 754, giving E cores a capacity of 531.

Signed-off-by: Erik Bourget <[email protected]>
(cherry picked from commit e9f71c3)
@RyanTheTide
RyanTheTide merged commit a47bf92 into integration/aurora Oct 24, 2026
@RyanTheTide
RyanTheTide deleted the ryan/j713-cpu-capacity-393 branch October 24, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants