Skip to content

Commit

Permalink
arm64: dts: qcom: sc8280xp: Throttle the GPU when overheating
Browse files Browse the repository at this point in the history
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: 014bbc9 ("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]>
  • Loading branch information
konradybcio authored and andersson committed Jun 7, 2024
1 parent 7c05517 commit f7fd6d0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion arch/arm64/boot/dts/qcom/sc8280xp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f7fd6d0

Please sign in to comment.