Skip to content

arm64: dts: apple: t8140: Add measured CPU capacity values - #55

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
t8140-cpu-capacity
Oct 8, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
t8140-cpu-capacity

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Summary

Set capacity-dmips-mhz on the four T8140 (MacBook Neo, J700) E cores to 712, replacing the provisional 912. The two P cores stay at 1024.

Measurement

CoreMark at each cluster's maximum frequency, three alternating runs per cluster, with no thermal capping recorded: median P 12.698 and E 8.824 iterations/s/MHz. E/P = 0.6949, and round(1024 x 0.6949) = 712. Run-to-run spread was 0.03 % (P) and 0.17 % (E).

Testing (J700)

  • Tethered boot of this commit: cpu_capacity reads 1024 on both P cores and 712 on all four E cores. This base has no T8140 cpufreq yet, so arch_topology reports the device-tree ratio unscaled.
  • On a J700 kernel with cpufreq (P max 4044 MHz, E max 2424 MHz) the capacity is additionally scaled by maximum frequency: the old value 912 reads back as 546 there, so 712 will read as about 427.
  • Full boot dmesg: no Oops, BUG or WARNING. checkpatch.pl --strict: 0 errors; the DTB builds without warnings.

🤖 Generated with Claude Code

Describe the relative per-MHz throughput of the E and P cores for the
scheduler.  Without these properties, it treats the two CPU types as
equal capacity.

On a J700, three alternating CoreMark runs per cluster at each
cluster's maximum frequency gave median throughput of 12.6983
iterations/s/MHz on P CPU0 at 4044 MHz and 8.8239 on E CPU1 at
2424 MHz.  The E/P ratio is 0.694886.  Normalizing P to 1024 and
rounding E gives 712.  The runs reported valid CoreMark results,
stable requested frequencies and no throttling; per-MHz spread was
0.03% for P and 0.17% for E.

The earlier nearby-OPP microbenchmarks gave E=912, but did not test
the same workload as the CoreMark-derived values used for other Apple
SoCs.  The expected scheduler capacity at maximum frequency is 1024
for P and about 427 for E; runtime readback of this revision remains
to be done.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
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.

1 participant