Skip to content

arm64: dts: apple: t6050-j775c: describe CPU OPP transition latency - #3853

Merged
DjDeveloperr merged 1 commit into
mainfrom
satchlj/j775c-cpufreq-transition-latency
Dec 2, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
satchlj/j775c-cpufreq-transition-latency

Conversation

@satchlj

@satchlj satchlj commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

What: Set clock-latency-ns = <120000> on all 16 M-cluster and 21 P-cluster OPPs in t6050-j775c.dts so apple-soc-cpufreq reads the measured transition latency from the OPP tables instead of falling back to the 6 ms driver timeout (matching #2516's t6050-base.dtsi entries, since t6050-j775c.dts carries standalone OPP tables).
Tested: Exact-head 3ff34efddeab t6050-j775c.dtb booted on M5 Max Mac Studio (apple,j775c, default kernel command line): policy0/policy6/policy12 all report cpuinfo_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 s s2idle PASS with 0 failed units, 0 AVC denials, 0 cpufreq/OPP/thermal errors; checkpatch.pl --strict clean (0 errors, 0 warnings, 0 checks).
Risk: two-way door · M5 Max (apple,j775c only)
Not yet: Long-duration thermal/sustained-load soak.

Details

PR #2516 added clock-latency-ns = <120000> to opp-table-mcluster and opp-table-pcluster in t6050-base.dtsi, covering 10 of 11 t6050-*.dtb boards. Because t6050-j775c.dts defines standalone opp-table-mcluster and opp-table-pcluster nodes instead of including t6050-base.dtsi, J775c still lacked clock-latency-ns and stayed on the 6,000 µs schedutil rate-limit fallback.

Adding the same 120000 ns value (rounded up from the 115.5 µs max observed across 2,400 transitions on J775c in #2516) gives J775c cpuinfo_transition_latency = 120000 ns and schedutil/rate_limit_us = 180 µs on all three policies (policy0, policy6, policy12).

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>
@satchlj
satchlj requested review from a team as code owners December 2, 2026 00:39
@satchlj
satchlj requested review from Acelogic and maralcbr December 2, 2026 00:39
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merge readiness at 3ff34efd: not ready yet

Check Detail
CI at head running running: dt-checks, host-tests
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 3ff34efd
Conflicts ok none
PR text ok Risk: two-way · M5 Max (apple,j775c only)

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@satchlj

satchlj commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

Hardware verification at exact head 3ff34efddeab on Apple M5 Max Mac Studio (apple,j775c, 18 CPUs: M-clusters policy0/policy6, P-cluster policy12, default kernel command line, t6050-j775c.dtb compiled from 3ff34efddeab on 7.3.0 tip with #2516):

Default boot & sysfs readback (no manual tuning)

  • policy0 (M-cluster): cpuinfo_transition_latency=120000, scaling_governor=schedutil, schedutil/rate_limit_us=180, scaling_min_freq=300000, scaling_max_freq=4380000
  • policy6 (M-cluster): cpuinfo_transition_latency=120000, scaling_governor=schedutil, schedutil/rate_limit_us=180, scaling_min_freq=300000, scaling_max_freq=4380000
  • policy12 (P-cluster): cpuinfo_transition_latency=120000, scaling_governor=schedutil, schedutil/rate_limit_us=180, scaling_min_freq=300000, scaling_max_freq=4608000
  • failed_units=0, avc_denials=0, 0 cpufreq/OPP/thermal errors, HDMI 2560x1440 connected/enabled, SLC 32 planes, SDXC and AVE initialized normally.

Same-boot 3-round alternating A/B (schedutil/rate_limit_us = 6000 vs default 180, ms)

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 retained cpuinfo_transition_latency=120000, rate_limit_us=180, scaling_min_freq=300000, HDMI stayed connected/enabled, no new cpufreq/OPP/thermal errors.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@DjDeveloperr
DjDeveloperr merged commit d8d1e5d into main Dec 2, 2026
8 checks passed
@DjDeveloperr
DjDeveloperr deleted the satchlj/j775c-cpufreq-transition-latency branch December 2, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants