]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:45:07 +0000 (14:45 +0200)
commit 03f2b8eed73418269a158ccebad5d8d8f2f6daa1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/qcom/x1e80100.dtsi

index 019b0e627214b5e1fdbf0fd558adf7f1eb24dbc2..e690386bbe4f5ff9b45e8fb96b4bd994711c6cdc 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";
                                };
                        };