]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: qcom: sdm845: Throttle the GPU when overheating
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 10 May 2024 12:58:33 +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.

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

index 3400e30e1829416468fa897f1b413d3d64402457..a0125f3d92b2478c1ac0cb6007ef4ca7a44df1a5 100644 (file)
 
                        trips {
                                gpu_top_alert0: trip-point0 {
+                                       temperature = <85000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+
+                               trip-point1 {
                                        temperature = <90000>;
-                                       hysteresis = <2000>;
+                                       hysteresis = <1000>;
                                        type = "hot";
                                };
+
+                               trip-point2 {
+                                       temperature = <110000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
                        };
                };
 
 
                        trips {
                                gpu_bottom_alert0: trip-point0 {
+                                       temperature = <85000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+
+                               trip-point1 {
                                        temperature = <90000>;
-                                       hysteresis = <2000>;
+                                       hysteresis = <1000>;
                                        type = "hot";
                                };
+
+                               trip-point2 {
+                                       temperature = <110000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
                        };
                };