Repository navigation
soc: apple: clpc: T6050 platform profiles after macOS's power modes - #1656
Merged
DjDeveloperr merged 3 commits intoNov 12, 2026
Merged
Conversation
The CLPC's low-power platform profile on T6050 holds the CPU clusters to the package power the SMC reports. Describe the optional phandle that points the CLPC at the SMC. Signed-off-by: Diljit Singh <[email protected]>
The CLPC's low-power platform profile reads the package power from the SMC. Signed-off-by: Diljit Singh <[email protected]>
macOS has three power modes on the M5 Pro (J714sAP, 26A428, traced under the same loads in each). Automatic and High Power set no CPU limit: an 18-thread FMA loop starts at the top clocks in both and slows only as the package heats. Low Power holds one thread at the 2880 MHz state, above the ADT's clpc cpu-low-power-frequency-max (2808 MHz), and under the FMA loop the package at 14.3-14.7 W (XNU's power report to the PMP) with the P cluster at 1980 MHz. Offer them as the platform profiles low-power, balanced and performance. Balanced and performance set no limit. Low-power holds every cluster at the first frequency at or above low_power_khz and reads the package power from the SMC (PHPC) every 100 ms (the ADT's pkg-low-power-target-tc). The SMC updates that reading once a second, so only a new reading acts: above low_power_mw it takes one table step off the cluster with the highest ceiling, and below 90% of it one goes back on the cluster with the lowest, so the clusters come down together. The ceilings are frequency QoS requests, so thermal limits still win. The SMC is reached through a new optional apple,smc phandle on the CLPC node; without it the low-power profile has only its ceiling. Signed-off-by: Diljit Singh <[email protected]>
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.
T6050's CLPC now offers macOS's three power modes as platform profiles: low-power, balanced and performance. Low-power matches macOS's Low Power mode on the M5 Pro: a one-thread clock ceiling and a 15 W package power target.
Needs the platform_profile class PR to register on a device-tree boot. Without it, the driver warns "no platform profile" and runs as before.
What macOS does (J714sAP, 26A428 under aura, traced under the same loads in each mode)
cpu-low-power-frequency-max(2808 MHz);Change
low-power,balancedandperformance. Balanced and performance set no limit.low_power_khz(2808 MHz);pkg-low-power-target-tc), the CLPC reads the package power from the SMC (PHPC);low_power_mw(15 W), one table step comes off the cluster with the highest ceiling; below 90% of it, one goes back on the cluster with the lowest. The clusters come down together.apple,smcphandle on the CLPC node points at the SMC (binding, and t6050-die0.dtsi). Without it, the low-power profile has only its ceiling.statusshows the profile, the last reading, how many readings were new, and each cluster's ceiling.select ACPI_PLATFORM_PROFILE if ACPI,depends on MFD_MACSMC || !MFD_MACSMC. The driver callsapple_smc_read_u32(), so withMFD_MACSMC=mAPPLE_CLPC can be=mat most. The M5 and Neo configs haveMFD_MACSMC=yand are unchanged.low_power_khz. On the other SoCs the new code returns at once. The policy-removal notifier now also drops the per-cluster requests; its ANE path is unchanged.Validation (J714sAP, M5 Pro, MEAS 2026-11-12)
Test kernel 7.3.0-m5-lmp2 = integration/aurora f1b79c4 (the intg4 default) + the class PR + this PR exactly (slot k3c, one boot, desktop up). The FMA loop runs for 40 s, the one-thread spin on CPU 12. Package power is the SMC's PHPC.
scaling_max_freqreturned tocpuinfo_max_freq. 0 update errors over 30,606 samples; no oops/WARN.scaling_max_freq.🤖 Generated with Claude Code