Repository navigation
arm64: dts: apple: t6030: give the SoC die zone its ADT limits - #3188
Conversation
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Add apple,soc-die-passive-millicelsius and apple,soc-die-hot-millicelsius. They give the macsmc_soc_die thermal zone the machine's SoC die limits: the temperature from which in-kernel power consumers shed performance and the one at which they hold their lowest state. Each requires the other and apple,soc-die-keys. The hot trip only reports and never shuts the machine down. Signed-off-by: Dj <[email protected]>
The macsmc_soc_die zone is registered tripless unless the board describes hotspot fan assistance. Consumers that read the zone's trips then see no limits. The G16 backend's thermal-zone backstop, which drives the GPU ceiling when the GPU has no PMP telemetry, fails closed at its lowest state in that case. So the T6030 and T8122 GPUs never leave S1. Read apple,soc-die-passive-millicelsius and apple,soc-die-hot-millicelsius from the hwmon node, and register them as a passive and a hot trip on the zone, after the active fan-assistance trip when one is configured. Both must be present, and the hot trip must lie above the passive one, or neither is registered. The zone has no hot callback and no critical trip, so the hot trip never shuts the machine down. Signed-off-by: Dj <[email protected]>
The T6030 GPU has no PMP telemetry (its PMP node is disabled), so the G16 backend sets the GPU ceiling from the macsmc_soc_die zone's trips. The zone had none, so the backstop failed closed and held the G15S at S1, 338 MHz of its 1380 MHz table. Give the zone the machine's SoC die limits. The ADT's /arm-io/pmp/iop-pmp-nub describes the PMP's fast die control: fast-die-ctrl-ts-avg-temp holds the average die temperature at 100 C (0x640000, 16.16), and the fast-die-ctrl-loop target holds the hottest die sensor at 110 C (0x6e0000 in each of its EACC, PACC and ANE0 records). The J514s and J516s device trees of the 27.2 (26B123) IPSW carry the same values, so they go in the SoC dtsi: the passive trip at 100 C and the hot trip at 110 C. Signed-off-by: Dj <[email protected]>
7e82c09 to
c05e700
Compare
|
J773g (M4 Mac mini) no-op row at
|
|
Verdict at Blockers: none. Checked
Evidence
|
|
J516s (MacBook Pro 16" M3 Pro, 27.2 stub) re-row at |
What: Register passive and hot trips on
macsmc_soc_dieand supply the T6030 limits. G15S uses this zone when PMP telemetry is unavailable, so the valid trips release its S1 clamp.Tested: J516s M3 Pro at the pre-rebase head
7e82c09e60c13a3be8add073d65ed21904ae5bf2reached S8 under Vulkan load. The lab-only thermal test stepped down to S1 and recovered to S8. Both final runs recorded zero GPU faults, recoveries, failed units, or new kernel errors. The rebase onto main7f00dc6bc52cis context-only (see Evidence).Risk: one-way · T6030 M3 Pro and the shared SMC hwmon DT binding.
Not yet: A J516s re-row on the rebased head. A second-generation Mac hardware row covering the shared hwmon driver with both properties absent.
Details
The T6030 trip values come from
/arm-io/pmp/iop-pmp-nubin the machine ADT. Registration requires both properties and an ordered pair. The hot trip reports the crossing to consumers, and the GPU backstop uses it to hold its lowest state. The existing fan-assist trip is registered when configured.Evidence
7e82c09e60c13a3be8add073d65ed21904ae5bf2. The boot log and sysfs report 100,000 mC passive and 110,000 mC hot.dt_binding_check, checkpatch, and the targeted hwmon schema check passed. Both T6030 DTBs built.7f00dc6bc52casc05e7009f834. The only conflict was context inmacsmc_hwmon_die_register()next to1dfc0ffa27a9(hwmon: macsmc: offer the SoC die zone to a device tree thermal zone). That block is kept ahead of the trip registration, and the namedmacsmc_soc_diezone still gets these trips.git range-diffshows the three commits otherwise unchanged.