Re: [PATCH v6 7/8] arm64: dts: qcom: talos: Add GPU cooling

2025-12-31 Thread Dmitry Baryshkov
On Wed, Dec 31, 2025 at 02:15:28PM +0530, Akhil P Oommen wrote:
> From: Gaurav Kohli 
> 
> Unlike the CPU, the GPU does not throttle its speed automatically when it
> reaches high temperatures.
> 
> Set up GPU cooling by throttling the GPU speed when it reaches 105°C.
> 
> Signed-off-by: Gaurav Kohli 
> Reviewed-by: Konrad Dybcio 
> Signed-off-by: Akhil P Oommen 
> ---
>  arch/arm64/boot/dts/qcom/talos.dtsi | 14 ++
>  1 file changed, 14 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov 


-- 
With best wishes
Dmitry


[PATCH v6 7/8] arm64: dts: qcom: talos: Add GPU cooling

2025-12-31 Thread Akhil P Oommen
From: Gaurav Kohli 

Unlike the CPU, the GPU does not throttle its speed automatically when it
reaches high temperatures.

Set up GPU cooling by throttling the GPU speed when it reaches 105°C.

Signed-off-by: Gaurav Kohli 
Reviewed-by: Konrad Dybcio 
Signed-off-by: Akhil P Oommen 
---
 arch/arm64/boot/dts/qcom/talos.dtsi | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/talos.dtsi 
b/arch/arm64/boot/dts/qcom/talos.dtsi
index 6880630e6735..606f5e234e4a 100644
--- a/arch/arm64/boot/dts/qcom/talos.dtsi
+++ b/arch/arm64/boot/dts/qcom/talos.dtsi
@@ -18,6 +18,7 @@
 #include 
 #include 
 #include 
+#include 
 
 / {
interrupt-parent = <&intc>;
@@ -4844,12 +4845,25 @@ gpu-thermal {
thermal-sensors = <&tsens0 9>;
 
trips {
+   gpu_alert0: trip-point0 {
+   temperature = <105000>;
+   hysteresis = <5000>;
+   type = "passive";
+   };
+
gpu-critical {
temperature = <115000>;
hysteresis = <1000>;
type = "critical";
};
};
+
+   cooling-maps {
+   map0 {
+   trip = <&gpu_alert0>;
+   cooling-device = <&gpu THERMAL_NO_LIMIT 
THERMAL_NO_LIMIT>;
+   };
+   };
};
 
q6-hvx-thermal {

-- 
2.51.0