Skip to content

arm64: dts: apple: t6030: give the SoC die zone its ADT limits - #3188

Merged
DjDeveloperr merged 3 commits into
mainfrom
fix/t6030-soc-die-trips
Nov 26, 2026
Merged

DjDeveloperr merged 3 commits into
mainfrom
fix/t6030-soc-die-trips

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Register passive and hot trips on macsmc_soc_die and 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 7e82c09e60c13a3be8add073d65ed21904ae5bf2 reached 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 main 7f00dc6bc52c is 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-nub in 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
  • J516s (Mac15,7, 27.2 stub), one-shot kernel built at 7e82c09e60c13a3be8add073d65ed21904ae5bf2. The boot log and sysfs report 100,000 mC passive and 110,000 mC hot.
  • System Mesa Vulkan core passed 111/111 gpubench cases in 276 s. The sampled effective state was S8 in 4,799/4,799 busy samples with S8 demand, corresponding to 1,380 MHz in the DVFS table. Peak SoC die temperature was 65.250 °C.
  • With a lab-only DTB at 54 °C passive and 58 °C hot, the loaded GPU stepped from S8 through S7 to S2 as temperature rose. It held S1 (338 MHz) in 204/204 busy samples above the hot trip, including 10.187 s continuously, and returned to S8 under load at 51.962 °C. The die peaked at 59.867 °C.
  • The lab initramfs preloaded the existing MTP haptic module after an early HID probe error on the first boot.
  • dt_binding_check, checkpatch, and the targeted hwmon schema check passed. Both T6030 DTBs built.
  • Rebased onto main 7f00dc6bc52c as c05e7009f834. The only conflict was context in macsmc_hwmon_die_register() next to 1dfc0ffa27a9 (hwmon: macsmc: offer the SoC die zone to a device tree thermal zone). That block is kept ahead of the trip registration, and the named macsmc_soc_die zone still gets these trips. git range-diff shows the three commits otherwise unchanged.

@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 26, 2026 03:33
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) area:power Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:one-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at c05e7009: not ready yet

Check Detail
CI at head ok 4 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at c05e7009
Conflicts ok none
PR text ok Risk: one-way · T6030 M3 Pro and the shared SMC hwmon DT binding.

Areas: area:platform, area:power

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Nov 26, 2026
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]>
@DjDeveloperr
DjDeveloperr force-pushed the fix/t6030-soc-die-trips branch from 7e82c09 to c05e700 Compare November 26, 2026 06:47
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) merge-conflict Conflicts with the base branch (bot) labels Nov 26, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J773g (M4 Mac mini) no-op row at c05e7009f834: PASS. A guarded one-shot of the exact head on the default cmdline. Nothing changes on this Mac, which sets none of the new properties.

  • Thermal zones: no macsmc thermal zone registers, so there is no new passive or hot trip. The only thermal zone is apple-pmp-die with its usual trips: passive 106 °C, passive 110 °C, critical 120 °C.
  • Same as before:
    • The previous head 7e82c09e60c1, run on main 61c7b88aca91 with the PR's files identical to that head, shows the same zone and the same three trips.
    • Main 61c7b88aca91 and stock 7.3.0-ARCH-m4mainefed1ae3 also register no macsmc thermal zone.
  • macsmc_hwmon readings are sane: 7 inputs.
    • NAND flash 31.2 °C, Wi-Fi/BT module 30.0 °C, fan 1000 rpm;
    • AC input 12.65 V and 0.39 A, total system power 4.7 W.
  • GPU smoke (dEQP-VK.api.smoke.*): 8/8. gpubench-vk render.light/compute.light are ok.
  • Health: 0 GPU faults, 0 failed units, 0 WARNING: lines. The error-level kernel lines are the same set as on the main control kernel, so there are 0 new kernel errors.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Verdict at c05e7009f834: ready

Blockers: none.

Checked

  • The binding adds the two limits with dependentRequired in both directions, plus apple,soc-die-keys, so neither can appear alone.
  • macsmc_hwmon_parse_die_limits() needs both values, rejects 0, requires hot above passive, and caps hot at the existing MACSMC_DIE_MAX_MC (150 °C). An invalid pair leaves the zone exactly as before.
  • The parse only runs when the zone has die sensors (die_count).
  • The trip array has room for all 3 trips (fan-assist active, passive and hot), and a zone with none still uses the tripless registration as before.
  • The hot trip only reports. The zone has no hot or critical callback and no critical trip, so crossing it can't shut the machine down, which matches the binding and the docs.
  • Both values come from the machine's ADT (/arm-io/pmp/iop-pmp-nub, the PMP fast-die-control targets), and the DT comment cites them.
  • The rebase onto 7f00dc6bc52c only changed context.
  • CI is green at this head (6/6).
Evidence
  • J516s at the pre-rebase head: the GPU held S8 at 1380 MHz under Vulkan load, 111/111 cases passed, 0 faults. The lab-trip walk went S8 → S1 and back to S8.
  • J615 (T8122, linux#3189 on top of this): macsmc_soc_die shows passive 100000 and hot 110000 mC, with 88.8 % of busy samples at S8 and 0 at S1.
  • Still owed before the merge: the J773g second-generation no-op row at this head (shared macsmc-hwmon).

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J516s (MacBook Pro 16" M3 Pro, 27.2 stub) re-row at c05e7009f834: PASS. The kernel was built natively at the head and booted one-shot on the default cmdline with the head's own t6030-j516s.dtb in Stage 2 (the baseline aura and U-Boot around that DTB, boot.bin sha256 0639e0e1…). The boot log and sysfs report macsmc_soc_die trips at 100,000 mC passive and 110,000 mC hot. Under a 16 s Vulkan compute load (gpubench-vk compute.heavy at depth 32, Mesa 0539df01eab6), the effective state was S8 (1,380 MHz) in 449 of 449 S8-demand samples, with the die peaking at 58.6 °C. 0 GPU faults or recoveries, 0 failed units, and no new kernel error lines apart from the MTP HID "device has no listeners" line that the baseline boot also logs. ESP and GRUB were restored and the baseline verified.

@DjDeveloperr
DjDeveloperr merged commit 2cb2c00 into main Nov 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) area:power Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:one-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant