From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796314687; b=TLe8Z3S9cmrN1zZ2VqskiXU6bVUvcYg0/lav4vP6aJ7T4aSxnalXqMQ3DaZIGABVuuq1 1Tdg+t3hYKLnat5oaQQ1y4IVMMyUwf78B04hoyG/N+khxXIzxQ/gVk/J0++ZIky1RGX0z PQvlCykbGKB++a7Z5c5BMdtYWCUrjtsAbXXh0arzantI3VcCf/xgAJs/yrYVhDuZqxIOU EMSxKViC9A4r3gS11hcem2noKyn1PWlx7QExoMKgttwjVJe2G8iI3ZPYCAyvhUqdIFWy/ hFWcjxiIPzUbwoLJqDBVnOf4SDp8JomjqNjHld6ZpNrcTur11b47Vut3iidjBtFNiMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796314687; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=C6sgLyuI88Bd96Ng5odp0jueWbbuTX7oBxdCCIE0LYM=; b=T/3sHCtQIu28RUxoykmtb5PHxFXEz6JEBq2NIhmz2LOnZyedZIif5npmgNaucHSWF6Ga oWwRiB7mB8P5LtXuQDAGtYvu4tx+HmDgMoylbEUYdyjkkNGgeZlCkcdzAfVFBuJKrRmTG eUxWmLp169Ii73scPHSyNZdd+Lwg+qJq+WdCwvUSpKMLnQ6hrM8WYYxHh40zuzVgDtgof eG/38EBamvSlKKnj+7N/Se0K96+MxZf+XBrQjVyHnDacW+w79glhsQBaQKIQPZWw5GUqz r2imFoMlgwTdHUUMA6ASPgQ1rv9PMN3Ok4YINL8Q9g+NWiZdxjldhoE5c+3/yAUeaqA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=C6U6ujlv; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2CC3606A322 for ; Thu, 3 Dec 2026 16:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=C6U6ujlv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ABD41F000C1; Thu, 3 Dec 2026 16:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796314687; bh=C6sgLyuI88Bd96Ng5odp0jueWbbuTX7oBxdCCIE0LYM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=C6U6ujlv24Gj96XvKE0dKTKzO8lM/t9pYVjb0GusQkDH6SLRJB3aEJz5hteVP36R8 vG2NrulNVFAq4LQopOatKrooHILM1xf22la9MwpU9v9Gyc4HN9/dV9HRhUr/ctCQ3Y xsyEMEfXN6aPR57BWxhrPbY/WKA7s7LKaSjNEjc6olhikgWFaO9LDNR+gJ2UWSWji6 Xxo2b0N8rWzr44yk36FUc1heD/RcchMRJlY/Sc8IG7Nh4o4k4GTCo9qz9MI8w+P2lK 3JeX4jqDClJkGmOnVV8e7KtW5GezD9OVCsegSna/aTlkIQVXBOpQXOLdV9m2Nr8yI4 HIiT4FHO0Iddw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 3/3] arm64: dts: apple: t7000: Add die temperature sensors and thermal zones Reply-To: sashiko-reviews@lists.linux.dev To: "Jeroen Trappers" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203155600.3911447-4-jeroen.trappers@gmail.com> References: <20261203155600.3911447-1-jeroen.trappers@gmail.com> <20261203155600.3911447-4-jeroen.trappers@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 16:18:06 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/a= pple/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 =3D ; > }; > =20 > + die_temp: thermal-sensor@20e02b000 { > + compatible =3D "apple,t7000-thermal"; > + reg =3D <0x2 0x0e02b000 0x0 0x1000>, > + <0x2 0x02230000 0x0 0x1000>; > + reg-names =3D "soc", "tcc"; > + #thermal-sensor-cells =3D <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 =3D <250>; > + polling-delay =3D <1000>; > + thermal-sensors =3D <&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 =3D <&cpu_alert>; > + cooling-device =3D <&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 =3D <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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203155600.3911= 447-1-jeroen.trappers@gmail.com?part=3D3