Repository navigation
arm64: dts: apple: t6050-j775c: describe CPU OPP transition latency - #3853
Merged
Merged
Conversation
Set clock-latency-ns = <120000> on all 16 M-cluster and 21 P-cluster OPPs in t6050-j775c.dts, matching PR #2516's t6050-base.dtsi entries. Because t6050-j775c.dts defines its own standalone opp-table-mcluster and opp-table-pcluster nodes instead of including t6050-base.dtsi, PR #2516 left J775c without clock-latency-ns and still falling back to the 6 ms driver timeout. Adding 120,000 ns (from the 115.5 us max measured across 2,400 transitions on J775c) gives schedutil its 180 us default rate_limit_us on J775c as well. Signed-off-by: Satya Benson <satya@benson.earth>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Member
Author
|
Hardware verification at exact head Default boot & sysfs readback (no manual tuning)
Same-boot 3-round alternating A/B (
|
| Workload | Cluster | rl=6000 mean (r1/r2/r3) |
rl=180 mean (r1/r2/r3) |
rl=6000 p95 (r1/r2/r3) |
rl=180 p95 (r1/r2/r3) |
rl=6000 max |
rl=180 max |
|---|---|---|---|---|---|---|---|
| A (periodic burst) | P (cpu12) |
12.48 / 12.67 / 12.30 | 11.69 / 11.97 / 11.94 | 17.33 / 20.44 / 15.96 | 12.33 / 12.38 / 12.46 | 20.50–26.87 | 12.36–15.35 |
| A (periodic burst) | M (cpu0) |
11.80 / 11.92 / 12.08 | 10.70 / 11.45 / 11.38 | 12.03 / 16.84 / 16.11 | 11.70 / 12.45 / 12.02 | 19.07–28.92 | 11.88–13.09 |
| B (pre-pulsed burst) | P (cpu12) |
16.19 / 15.86 / 15.86 | 14.14 / 13.83 / 14.83 | 24.89 / 24.85 / 26.54 | 22.64 / 20.14 / 22.43 | 27.72–29.88 | 21.71–23.61 |
| B (pre-pulsed burst) | M (cpu0) |
16.53 / 15.29 / 17.51 | 13.25 / 13.86 / 13.72 | 27.31 / 31.45 / 31.26 | 17.28 / 21.89 / 21.96 | 29.06–32.29 | 24.12–24.21 |
| C (cold idle) | P (cpu12) |
15.50 / 16.48 / 16.88 | 16.79 / 17.18 / 17.63 | 27.22 / 27.28 / 27.24 | 27.23 / 27.40 / 27.34 | 27.23–28.73 | 27.79–28.75 |
| C (cold idle) | M (cpu0) |
16.12 / 15.64 / 15.51 | 14.54 / 15.14 / 15.57 | 27.30 / 27.31 / 27.36 | 27.29 / 27.27 / 27.27 | 27.32–28.81 | 27.28–27.30 |
Suspend / resume
- 15 s
s2idle(rtcwake -m mem -s 15): PASS;failed_units=0, all three policies retainedcpuinfo_transition_latency=120000,rate_limit_us=180,scaling_min_freq=300000, HDMI stayed connected/enabled, no new cpufreq/OPP/thermal errors.
DjDeveloperr
approved these changes
Dec 2, 2026
DjDeveloperr
left a comment
Contributor
There was a problem hiding this comment.
The 37 standalone J775c OPPs now match the measured 120 µs T6050 latency convention. Reviewed the DT-only diff and the exact-head J775c policy readback and s2idle result. DT checks and host tests passed.
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.
What: Set
clock-latency-ns = <120000>on all 16 M-cluster and 21 P-cluster OPPs int6050-j775c.dtssoapple-soc-cpufreqreads the measured transition latency from the OPP tables instead of falling back to the 6 ms driver timeout (matching #2516'st6050-base.dtsientries, sincet6050-j775c.dtscarries standalone OPP tables).Tested: Exact-head
3ff34efddeabt6050-j775c.dtbbooted on M5 Max Mac Studio (apple,j775c, default kernel command line):policy0/policy6/policy12all reportcpuinfo_transition_latency=120000,schedutil/rate_limit_us=180,scaling_min_freq=300000; 3-round Workload A/B/C A/B cuts p95 by 15–32% on A/B (flat on cold-idle C); 15 ss2idlePASS with0failed units,0AVC denials,0cpufreq/OPP/thermal errors;checkpatch.pl --strictclean (0 errors, 0 warnings, 0 checks).Risk: two-way door · M5 Max (
apple,j775conly)Not yet: Long-duration thermal/sustained-load soak.
Details
PR #2516 added
clock-latency-ns = <120000>toopp-table-mclusterandopp-table-pclusterint6050-base.dtsi, covering 10 of 11t6050-*.dtbboards. Becauset6050-j775c.dtsdefines standaloneopp-table-mclusterandopp-table-pclusternodes instead of includingt6050-base.dtsi, J775c still lackedclock-latency-nsand stayed on the 6,000 µsschedutilrate-limit fallback.Adding the same
120000ns value (rounded up from the 115.5 µs max observed across 2,400 transitions on J775c in #2516) gives J775ccpuinfo_transition_latency = 120000ns andschedutil/rate_limit_us = 180µs on all three policies (policy0,policy6,policy12).