Repository navigation
arm64: dts: apple: t8132: give E and P cores their measured capacity - #416
Merged
Merged
Conversation
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)
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.
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-mhzto 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