From: sashiko-bot@kernel.org
To: "Jeroen Trappers" <jeroen.trappers@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/3] arm64: dts: apple: t7000: Add die temperature sensors and thermal zones
Date: Thu, 03 Dec 2026 16:18:06 +0000 [thread overview]
Message-ID: <sashiko-outbox-248187@kernel.org> (raw)
In-Reply-To: <20261203155600.3911447-4-jeroen.trappers@gmail.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] arm64: dts: apple: t7000: commit omits rationale for skipping
TCC sensors 0 and 1
- [Low] arm64: dts: apple: t7000 combines disjoint PMGR and TCC thermal
blocks
- [Low] arm64: dts: apple: t7000: omit cpu1 from thermal cooling-device
maps
--
commit ad0a71a0e92279f590636e8ff4001864d101f6d7
Author: Jeroen Trappers <jeroen.trappers@gmail.com>
arm64: dts: apple: t7000: Add die temperature sensors and thermal zones
This commit adds the die temperature sensor node, cooling-cells on both
CPUs, and three thermal zones (cpu-thermal, soc0-thermal, and
soc1-thermal) to the Apple T7000 device tree.
> diff --git a/arch/arm64/boot/dts/apple/t7000.dtsi b/arch/arm64/boot/dts/apple/t7000.dtsi
> index 0342455d34447..ecac3d3b59b42 100644
> --- a/arch/arm64/boot/dts/apple/t7000.dtsi
> +++ b/arch/arm64/boot/dts/apple/t7000.dtsi
[ ... ]
> @@ -216,6 +219,14 @@ wdt: watchdog@20e027000 {
> interrupts = <AIC_IRQ 4 IRQ_TYPE_LEVEL_HIGH>;
> };
>
> + die_temp: thermal-sensor@20e02b000 {
> + compatible = "apple,t7000-thermal";
> + reg = <0x2 0x0e02b000 0x0 0x1000>,
> + <0x2 0x02230000 0x0 0x1000>;
> + reg-names = "soc", "tcc";
> + #thermal-sensor-cells = <1>;
> + };
[Severity: Low]
Should the PMGR and TCC thermal blocks be separate thermal-sensor nodes
instead of one combined node?
0x20e02b000 is in the PMGR region while 0x202230000 is ~190 MiB away in
the CPU complex next to cpufreq@202220000. In the driver, the two pages
have distinct register layouts and sign-bit widths (14 vs 15) with no
shared state, and the binding already makes the tcc window optional.
Merging two independent blocks into one node locks in a DT ABI that
complicates adding per-block clocks, power domains, or interrupts later
and hinders reuse on sibling SoCs like T7001. Splitting them into two
nodes across the series would avoid baking this layout into the ABI.
[ ... ]
> + thermal-zones {
> + cpu-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> + thermal-sensors = <&die_temp 4>;
[Severity: Low]
Why are TCC sensors 0 and 1 (IDs 2 and 3) omitted from thermal-zones?
The binding and driver define five sensors on T7000 (SOC 0-1 and TCC
0-2), and t7000_thermal_probe() skips any sensor without a thermal zone
(-ENODEV), leaving IDs 2 and 3 inactive and unexposed.
Documenting in the commit message or a DTS comment why only TCC sensor 2
is wired up would clarify whether IDs 2 and 3 are intentionally excluded
or left disabled by the boot chain.
[ ... ]
> + cooling-maps {
> + map0 {
> + trip = <&cpu_alert>;
> + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> + };
[Severity: Low]
Should cpu1 also be listed in cooling-device here and in soc0-thermal
and soc1-thermal?
Both cpu0 and cpu1 declare #cooling-cells = <2> and share one cpufreq
policy, so of_cpufreq_cooling_register() binds the cooling device to
of_get_cpu_node(policy->cpu, NULL).
If the kernel boots on physical cpu@1 (such as during a kdump crash,
which machine_kexec_prepare() permits on spin-table systems), logical
CPU 0 maps to cpu1, so thermal_of_get_cooling_spec() rejects the
cpu0-only entry and silently disables passive throttling in all zones.
Listing both <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT> and
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT> in all three cooling-maps
avoids this without duplicating bindings.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203155600.3911447-1-jeroen.trappers@gmail.com?part=3
prev parent reply other threads:[~2026-12-03 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 15:55 [PATCH 0/3] Apple T7000 (A8) die temperature sensors and thermal zones Jeroen Trappers
2026-12-03 15:55 ` [PATCH 1/3] dt-bindings: thermal: Add Apple T7000 die temperature sensors Jeroen Trappers
2026-12-03 16:12 ` sashiko-bot
2026-12-03 15:55 ` [PATCH 2/3] thermal/drivers/apple: Add T7000 (A8) on-die temperature sensor driver Jeroen Trappers
2026-12-03 15:56 ` [PATCH 3/3] arm64: dts: apple: t7000: Add die temperature sensors and thermal zones Jeroen Trappers
2026-12-03 16:18 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-248187@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jeroen.trappers@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox