Skip to content

cpufreq: apple: add the T6050 profile, gated on firmware thermal ownership - #944

Closed
erikwb wants to merge 1 commit into
integration/aurorafrom
j716c/t6050-cpufreq
Closed

erikwb wants to merge 1 commit into
integration/aurorafrom
j716c/t6050-cpufreq

Conversation

@erikwb

@erikwb erikwb commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

T6050's CPU clusters have no cpufreq profile, so they stay at the boot loader's states. This adds DJ's T6050 command-state profile. It registers only when the cluster's DT node asserts apple,firmware-managed-thermal: firmware keeps throttling, voltage and PLL control, and without that assertion the driver refuses DVFS.

Commit by Dj. On J716c (MacBook Pro 16-inch, M5 Max) this runs as part of the full T6050 stack (j716c/t6050-platform): the machine boots to userspace from NVMe with all 18 CPUs, N1 Wi-Fi up and CPU frequency scaling active. The cluster policies come up and report changing frequencies.

Created with Claude Opus 5.5 in Claude Code.

Add the T6050 command-state CPU-frequency profile with explicit firmware thermal ownership. Preserve the 7.3 thermal-policy paths for existing platforms.

Signed-off-by: Dj <[email protected]>

[J775D: taken from aurora-silicon/linux 490ccd5 onto aurora-wip 72b4b56, the binding keeps its file's own SPDX line]

Signed-off-by: Jeff Queisser <[email protected]>
Signed-off-by: Erik Bourget <[email protected]>
@erikwb erikwb closed this Nov 5, 2026
DjDeveloperr added a commit that referenced this pull request Nov 9, 2026
The T6050 clusters' DVFS command register reads back the last request it
accepted, not a measured state, so the profile verifies each transition
against that readback, with a 2 ms timeout. On this chip the firmware
owns the clusters' thermal limits; the profile refuses a cluster whose
node doesn't say so (apple,firmware-managed-thermal), and the binding
requires that property for apple,t6050-cluster-cpufreq.

Tested on J714s (M5 Pro, bare metal under aura Stage 2): all three
clusters bind (M 300-4380 MHz, P 300-4608 MHz, schedutil) with no DVFS
error; idle clusters sit at 300 MHz and loaded ones at their top state.
Clocks measured with a dependent add chain go from iBoot's 2.65/1.34/
1.31 GHz to 4.29/4.38/4.60 GHz (with WFI idle); one-thread work is 1.6x
faster on M and 3.4x on P, and idle system power drops from 20.1 to
7.2-7.9 W while idle still spins under idle=nop.

Carried for the bare-metal kit by Erik Bourget (#944).

Signed-off-by: Diljit Singh <[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.

2 participants