Repository navigation
J815: slow the CPUs on the hottest SoC die reading - #1908
Open
m0d16l14n1 wants to merge 3 commits into
Open
m0d16l14n1 wants to merge 3 commits into
m0d16l14n1 wants to merge 3 commits into
Conversation
m0d16l14n1
added a commit
to m0d16l14n1/linux
that referenced
this pull request
Nov 15, 2026
m0d16l14n1
marked this pull request as ready for review
November 15, 2026 04:55
Contributor
Author
|
@DjDeveloperr out of draft, parent-first on #1532 (alias fix merged in). J815 soak: peak 99.4 °C, settles at about 99 °C with the P cluster held at 2508 MHz by the IPA governor; trips 60/100/115 °C. Please review. Assisted-by: Claude Opus 5.5 |
A node with apple,discover-temperatures has no stable channel indices, so a thermal zone cannot name one of its temperature channels. Let such a node be a thermal sensor provider for one sensor, 1000: the hottest of its apple,soc-die-keys readings. A zone on it replaces the driver's tripless macsmc_soc_die zone. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick <nekreshen@yandex.ru>
A board that discovers its SMC temperatures (apple,discover-temperatures, as the M5 Airs do) has no stable channel indices, so a device tree thermal zone cannot name one of its temperature channels, and the hottest-die zone is registered without trips. Such a board then has no thermal policy of its own. When the node is a thermal sensor provider, offer the hottest-die reading as sensor 1000, above any channel index the hwmon core registers. A zone on it gets the board's trips and cooling maps and replaces the tripless macsmc_soc_die zone; without one the driver registers that zone as before. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick <nekreshen@yandex.ru>
The J815 has no fan and no thermal zone with trips: its SoC die zone (the hottest of the 26 apple,soc-die-keys) only reports. Make the SMC hwmon node a thermal sensor provider and give the board one zone on the die sensor, with the power allocator and the clusters' energy model: switch-on at 60 C, control at 100 C, critical at 115 C, and both CPU clusters as cooling devices (the E cluster weighted 3:1, as on J700). Sustainable power is an estimate, 9000 mW: the J815 ADT's clpc pkg-sustainable-power-target is 12.5 W against the J700's 5.5 W, where macOS holds the J700 CPUs at 4.1-4.3 W (about 76%). The control point is below the J700's 105 C until a J815 soak gives its own value. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick <nekreshen@yandex.ru>
m0d16l14n1
force-pushed
the
j815/t8142-j815-thermal
branch
from
November 19, 2026 07:27
83a0fe3 to
8d5e6d5
Compare
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.
Rebased onto integration/aurora 0abc2f3 now that #1532 (the full J815 device tree, with the J815's SMC die-key list) has merged: the branch is this PR's three commits. The earlier dt-checks failure came from the #1532 merge commit (t6030 ALS compatibles), not from these patches. The trip values are still estimates, not taken from macOS yet (below).
The J815 has no fan and no thermal zone with trips: its SoC die zone (the hottest of the 26
apple,soc-die-keys) only reports.Change
apple,discover-temperatureshas no stable channel indices, so a DT zone can't name one of its channels. When such a node is a thermal sensor provider, the hottest-die reading is sensor 1000, above any channel index the hwmon core registers. A zone on it replaces the triplessmacsmc_soc_diezone; without one the driver registers that zone as before.soc-die-thermalzone on sensor 1000 with the power allocator and the clusters' energy model (arm64: dts: apple: T8142 Airs: CPU topology, capacity and energy model #1537): switch-on at 60 °C, control at 100 °C, critical at 115 °C, both CPU clusters as cooling devices (E weighted 3:1, as on J700 arm64: dts: apple: t8140-j700: control the CPU zones at 105 C and 4.2 W (+8-9% sustained, under macOS limits) #1043).Sustainable power, 9000 mW, is an estimate. The J815 ADT's
clpcpkg-sustainable-power-targetis 12.5 W (0xc8000, 16.16). The J700's is 5.5 W, and macOS holds the J700's CPUs at 4.1–4.3 W, about 76%. The same share of 12.5 W gives 9 W. (The CPU SPL key isn't in mW: the J700's 0x880 against its measured 4.2 W.) The 100 °C control point is below the J700's 105 °C until a macOS soak on a J815 gives its own value.Tested on J815 (MacBook Air 15" M5), macOS 27.2 stub, 3 min soak with every core busy (2 s samples):
policy=power_allocator,sustainable=9000, trips 60000/100000/115000, cooling devices on both clusters.CHECK_DTBS(apple,smc-hwmon, thermal-zones) on t8142-j815/j813/j704: nothing new.checkpatch --strict: clean per patch.Part of the J815 bring-up: board results are summarised in discussion #135.
Assisted-by: Claude Opus 5.5