Repository navigation
Conversation
T6050 verifies each frequency request by waiting for the transition, so schedutil cannot switch from the scheduler: every change goes through the sugov kthread, which preempts the task it is raising the clock for and then polls the DVFS command register until the cluster is done. Without OPP latencies the driver also reports a transition latency of twice the 2 ms timeout, 4 ms, so schedutil changes the clock at most every 6 ms. Timed on J775c through the userspace governor, a transition between 300 MHz or 1.3 GHz and the fastest state takes 12-75 us, at most about 100 us, as the lazy-verification comment says for T8140 (about 50 us). The sugov kthread ran for 30-58 us per update in a sched_switch trace. Verify T6050 requests lazily, as on T8140, so schedutil switches from the scheduler, and report the measured 100 us transition latency, which sets schedutil's rate limit to 150 us. A transition_latency_us field carries it; other SoCs keep the conservative bound derived from their timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Satya Benson <satya@benson.earth>
|
Thanks for measuring the T6050 transition latency. We select behaviour by a hardware property, not by a list of SoCs where it was tried. Could you rebase on #2302 and keep only the measured latency ( |
|
Claude Opus 5.5 on @satchlj's behalf: thanks, agreed. Closing this in favour of #2302, which gives every The measured part stays as its own commit, stacked on #2302: #2516 adds only 🤖 Generated with Claude Code |
Claude Opus 5.5 on @satchlj's behalf.
cpufreq: apple: verify T6050 frequency requests lazily, as on T8140, so schedutil can switch from the scheduler instead of through the sugov kthread. Also report the measured 100 µs transition latency, which sets schedutil's rate limit to 150 µs instead of 6 ms. This is selected by the per-SoC info of the T6050 compatible. A newtransition_latency_usfield carries the latency, and other SoCs keep the bound derived from their timeout.Evidence (J775c, Mac Studio M5 Max, earlier lobata kernel, 2026-11-05)
Testing
integration/aurora26294e82.6ae9c3caplus 63 commits).26294e82, and not measured on the tip.🤖 Generated with Claude Code