Repository navigation
hwmon: macsmc: M4 Pro GPU temperatures read no data while the GPU is off - #1331
Merged
Merged
Conversation
The seven GPU zones (Tg05, Tg0S, Tg0Y, Tg0k, Tg0z, Tg1V, Tg1l) shut the Mac down on the first 1 s SMC sample at or above 118 C. The CPU and die zones in the same file already need three samples (critical-samples), because single SMC samples on these Macs jump by several degrees during load transients. Give the GPU zones the same rule. On a J616s the GPU keys read real values only while the GPU is powered (glmark2: Tg05 49 to 53 C, about 8 C above Tp0G) and fall to -4 to 4 C on the first sample after the firmware powers the GPU off. The transition samples measured at 1 Hz stay in range (no spikes), so the debounce only guards against noise; it does not hide a real excursion, which still shuts down after three seconds. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
…rs as no data On the M4 Pro (T6040) the SMC publishes every GPU temperature key (Tg*) only while the GPU is powered. When the GPU firmware powers the GPU off at idle, the next 1 Hz SMC update replaces each key with a placeholder: -4.0 C on the base keys, 0, 2.2 or 3.9 C on the others. Linux reported those as temperatures: `sensors` showed a 3.9 C GPU, and the seven GPU thermal zones fed it to the power allocator as a reading. Describe the placeholder range in the device tree: apple,no-data-below-millicelsius on a sensor node makes macsmc-hwmon return -ENODATA for a reading below it, so userspace sees no reading instead of a false one. The hwmon thermal bridge turns -ENODATA into THERMAL_TEMP_INVALID, which the thermal core already treats as "no valid temperature this time": the zone keeps polling and its last real temperature, and the update is skipped. Without that, the core would back off on the error and eventually disable the zone as broken, so it could not trip when the GPU powered up again. The 22 Tg* sensors of the T604x MacBook Pros get a 10 C threshold. The real readings measured on a J616s are 36-75 C, and a powered GPU does not run below 10 C. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
… unit type A -millicelsius property already has its type from the dtschema unit suffixes (an int32 array). Describe it as a single value instead of redefining the type, which made every user fail validation. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
This was referenced Nov 9, 2026
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 M4 Pro MacBook Pros (T6040: J614s, J616s, J773s) every GPU temperature the SMC publishes (Tg*) reads a placeholder whenever the GPU is idle: -4.0 C on the base keys, 0, 2.2 or 3.9 C on the others. The seven GPU thermal zones read those as temperatures,
sensorsshowed a 3.9 C GPU, and the zones' critical trips (118 C) acted on a single 1 s sample.Why the values disappear
The SMC samples the GPU's own temperature sensors. With the macOS 26.6.2 (25G83) GPU firmware that Linux runs, the firmware powers those sensors down with the GPU when it goes idle, and the next 1 Hz SMC update replaces every Tg* key with its placeholder. As soon as the GPU powers up again, the readings are real. Measured on a J616s (7.3.0-aurora-fleet44):
Nothing on the host can make 25G83 keep its sensors live while the GPU is off. Keeping the GPU powered does make them read (Tg04 34.4 C against Tp0G 34.5 C at idle), but it costs 0.21-0.28 W of SoC power and 0.33-0.39 W of system power at idle (same-boot A/B on a J616s, panel brightness held), and it is not what macOS does: macOS powers the GPU off at idle too.
What this changes
apple,no-data-below-millicelsius, gives the placeholder range; macsmc-hwmon returns -ENODATA for a reading below it. The 22 Tg* sensors of the T604x MacBook Pros get 10 C (real GPU readings are 34-75 C, and a powered GPU does not run below 10 C).tempreturns -ENODATA, as hwmon does.critical-samples = <3>, the same rule as the CPU and die zones in the same file: a real excursion still shuts down after three seconds; one noisy sample does not.Throttling is unchanged: the GPU firmware limits itself from 101 C, and the GPU zones shed CPU power from the same point.
Testing
J616s, 7.3.0-aurora-gputemp4 (this branch on integration/aurora f4b6890), one-shot boot with an aura-try trial Stage 2 whose DTB is the committed one plus #1287 plus only this branch's 29 properties (never committed):
critical-samples = 3on the GPU zones,apple,no-data-below-millicelsius = 10000on the Tg* nodes.enabledthe whole time; 0 "Temperature check failed" or disabled-zone messages from the thermal core.Host selftests on this branch: run-host-tests 199/199, apple-dcp 87 ok / 0 not ok.
Raw data: our own Linux measurements (sysfs/hwmon reads, no SMC writes).
🤖 Generated with Claude Code