arm64: dts: qcom: sm8450: Throttle the GPU when overheating
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 10 May 2024 12:58:39 +0000 (14:58 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 7 Jun 2024 23:03:52 +0000 (18:03 -0500)
Add an 85C passive trip point to ensure the thermal framework takes
sufficient action to prevent reaching junction temperature and a
110C critical point to help avoid hw damage.

Remove the copypasta-from-downstream userspace governor entries while
at it.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240510-topic-gpus_are_cool_now-v1-10-ababc269a438@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8450.dtsi

index 04340a79404114275df7e821d25e3e4a1edf10c8..1e762cc8085a19d54fb8daa7c36d515177f8f7b8 100644 (file)
                        };
 
                        trips {
-                               thermal-engine-config {
-                                       temperature = <125000>;
+                               gpu_top_alert0: trip-point0 {
+                                       temperature = <85000>;
                                        hysteresis = <1000>;
                                        type = "passive";
                                };
 
-                               thermal-hal-config {
-                                       temperature = <125000>;
+                               trip-point1 {
+                                       temperature = <90000>;
                                        hysteresis = <1000>;
-                                       type = "passive";
-                               };
-
-                               reset-mon-cfg {
-                                       temperature = <115000>;
-                                       hysteresis = <5000>;
-                                       type = "passive";
+                                       type = "hot";
                                };
 
-                               gpu_top_alert0: trip-point0 {
-                                       temperature = <95000>;
-                                       hysteresis = <5000>;
-                                       type = "passive";
+                               trip-point2 {
+                                       temperature = <110000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
                                };
                        };
                };
                        };
 
                        trips {
-                               thermal-engine-config {
-                                       temperature = <125000>;
+                               gpu_bottom_alert0: trip-point0 {
+                                       temperature = <85000>;
                                        hysteresis = <1000>;
                                        type = "passive";
                                };
 
-                               thermal-hal-config {
-                                       temperature = <125000>;
+                               trip-point1 {
+                                       temperature = <90000>;
                                        hysteresis = <1000>;
-                                       type = "passive";
-                               };
-
-                               reset-mon-cfg {
-                                       temperature = <115000>;
-                                       hysteresis = <5000>;
-                                       type = "passive";
+                                       type = "hot";
                                };
 
-                               gpu_bottom_alert0: trip-point0 {
-                                       temperature = <95000>;
-                                       hysteresis = <5000>;
-                                       type = "passive";
+                               trip-point2 {
+                                       temperature = <110000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
                                };
                        };
                };