diff options
author | Konrad Dybcio <[email protected]> | 2024-05-10 14:58:31 +0200 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2024-06-07 18:03:52 -0500 |
commit | f7fd6d04c1046107a87a0fc883ed044cf8b877a1 (patch) | |
tree | 858174850246cb674b709890520191c7ad2ad3f0 | |
parent | 7c05517e5e68205c9d5085c029df2ca4e6ad9237 (diff) |
arm64: dts: qcom: sc8280xp: Throttle the GPU when overheating
Add an 85C passive trip point with 1C of hysteresis to ensure the
thermal framework takes sufficient action to prevent reaching junction
temperature. Also, add passive polling to ensure more than one
temperature change event is recorded.
Fixes: 014bbc990e27 ("arm64: dts: qcom: sc8280xp: Introduce additional tsens instances")
Signed-off-by: Konrad Dybcio <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
-rw-r--r-- | arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 82c601ef3369..80a57aa22839 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -6004,10 +6004,25 @@ }; gpu-thermal { + polling-delay-passive = <250>; + thermal-sensors = <&tsens2 2>; + cooling-maps { + map0 { + trip = <&gpu_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - gpu-crit { + gpu_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <1000>; + type = "passive"; + }; + + trip-point1 { temperature = <110000>; hysteresis = <1000>; type = "critical"; |