]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: x1e80100: Apply consistent critical thermal shutdown
authorStephan Gerhold <stephan.gerhold@linaro.org>
Wed, 19 Feb 2025 11:36:19 +0000 (12:36 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 4 Mar 2025 04:14:48 +0000 (22:14 -0600)
The firmware configures the TSENS controller with a maximum temperature of
120°C. When reaching that temperature, the hardware automatically triggers
a reset of the entire platform. Some of the thermal zones in x1e80100.dtsi
use a critical trip point of 125°C. It's impossible to reach those.

It's preferable to shut down the system cleanly before reaching the
hardware trip point. Make the critical temperature trip points consistent
by setting all of them to 115°C and apply a consistent hysteresis.
The ACPI tables also specify 115°C as critical shutdown temperature.

Cc: stable@vger.kernel.org
Fixes: 4e915987ff5b ("arm64: dts: qcom: x1e80100: Enable tsens and thermal zone nodes")
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250219-x1e80100-thermal-fixes-v1-2-d110e44ac3f9@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e80100.dtsi

index 7d750a899e80a86f011d078bd31364a56489a59c..e0ef5665f862673aad6ff9650af59f62553430c1 100644 (file)
                                };
 
                                aoss0-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpuss2-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                cpuss2-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                mem-critical {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <0>;
                                        type = "critical";
                                };
                                };
 
                                video-critical {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                aoss0-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpuss2-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                cpuss2-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                aoss0-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpu-critical {
-                                       temperature = <110000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                cpuss2-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                cpuss2-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                aoss0-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                nsp0-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                nsp1-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                nsp2-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                nsp3-critical {
-                                       temperature = <125000>;
-                                       hysteresis = <0>;
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                                };
 
                                trip-point2 {
-                                       temperature = <125000>;
+                                       temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
 
                                camera0-critical {
                                        temperature = <115000>;
-                                       hysteresis = <0>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
 
                                camera0-critical {
                                        temperature = <115000>;
-                                       hysteresis = <0>;
+                                       hysteresis = <1000>;
                                        type = "critical";
                                };
                        };