Repository navigation
soc: apple: clpc: J714s: tell the SMC about High Power mode (performance profile lifts the fan ceiling) - #2056
Merged
DjDeveloperr merged 1 commit intoNov 16, 2026
Conversation
The performance platform profile set no limit, as macOS's High Power mode sets none, but the SMC never heard of it: under a sustained load the fans kept Automatic's ceiling, well below their maximum. macOS tells the SMC its power mode through the 120-byte zETM record that thermalmonitord writes at every mode change: a record type (0x1d), a version (1), a count of the records written, and at byte 112 a float that is 1.0 while High Power mode is on and 0.0 otherwise. It is the only SMC key that changes with the mode. The CLPC now writes that record when the profile changes to or from performance, so performance is High Power mode and low-power and balanced are Automatic, as the SMC sees them. A failed write leaves the profile as it was. Only on the J714s, the machine it was traced and tested on. debugfs status shows what the SMC was last sent. 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.
On the M5 Pro (J714s) the
performanceplatform profile set no limit, matching macOS's High Power mode, which sets none either. But the SMC was never told about it, so under a sustained load the fans kept Automatic's ceiling, well below their maximum. In macOS, High Power mode lets them run up to it.What macOS does (J714sAP, 27.0 26A428 under aura, same CPU+GPU load in each mode)
zETM:Change
performance, the CLPC writes that record. Soperformanceis High Power mode as the SMC sees it, andlow-powerandbalancedare Automatic.apple,smcphandle. The lookup is factored out of the PHPC reader, and the write runs under the sample lock as that read does.high_power_machine).statusgains a line with what the SMC was last sent.Validation (J714s)
11-16, lab boot
7.3.0-m5-par6: the M5 default's source (intg8) plus this PR and #2055, built natively on the M5, one test boot. The load was 18 FMA threads plus headless GPU ALU compute, the same load as the macOS runs. The profile was switched withpowerprofilesctl(power-profiles-daemon 0.30-1.1 with the class patch), the desktop's own path. Fan readings are fan1/fan2 rpm (actual and target).smc high power: offon (3 records sent)off (4 records sent)zETMrecord alone is enough: the other records written at the same moment are not needed for the ceiling.🤖 Generated with Claude Code