summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2023-10-31 19:59:26 +0100
committerAmit Pundir <amit.pundir@linaro.org>2023-11-18 20:06:57 +0530
commita2e08570ffc2d421137617a4aa12ec5cd67e2b76 (patch)
tree05643e9c0ff859fb79b2cd1b13c4d16023141a9d
parent799f1f701fe39a6d78bd671a36449775efb1d216 (diff)
WIP: sdm845: gpu: thermal: Fix wild reboot during Antutu testrbX-6.7-rc1
It appears the gpu-bottom/top temperature sensors are showing high temperature, above 115°C, while running the Antutu v10_3d_lite benchmark apk. On Rafael phone, the gpu thermal zone is configured to be mitigated at 85°C with devfreq. The following change is supposed to configure the same mitigation on the DB845c. Change-Id: Ib5d60f38da6a36f41bf3cf3a408db5adee5ac132 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> [AmitP: Tested with WIP thermal HAL https://r.android.com/q/topic:%22linaro-thermal-hal%22] Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--arch/arm64/boot/dts/qcom/sdm845.dtsi34
1 files changed, 32 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index bf5e6eb9d313..531fdfe5a0ce 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -4759,6 +4759,8 @@
interconnects = <&mem_noc MASTER_GFX3D 0 &mem_noc SLAVE_EBI1 0>;
interconnect-names = "gfx-mem";
+ #cooling-cells = <2>;
+
status = "disabled";
gpu_opp_table: opp-table {
@@ -5598,12 +5600,26 @@
thermal-sensors = <&tsens0 11>;
trips {
- gpu1_alert0: trip-point0 {
+ gpu1_alert0: trip-point0 {
+ temperature = <85000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ gpu1_alert1: trip-point1 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
+
+ cooling-maps {
+ map0 {
+ trip = <&gpu1_alert0>;
+ cooling-device =
+ <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
};
gpu-bottom-thermal {
@@ -5613,12 +5629,26 @@
thermal-sensors = <&tsens0 12>;
trips {
- gpu2_alert0: trip-point0 {
+ gpu2_alert0: trip-point0 {
+ temperature = <85000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ gpu2_alert1: trip-point1 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
+
+ cooling-maps {
+ map0 {
+ trip = <&gpu2_alert0>;
+ cooling-device =
+ <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
};
aoss1-thermal {