From 2d2cfee8dbcc9bb2fe62f75dbf42bfd823295832 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Mon, 24 Aug 2020 14:29:01 -0700 Subject: [PATCH] ARM: dts: msm: Update GPU thermal rule for lahaina GPU thermal mitigation configuration uses a virtual sensor, which will estimate the max of two GPU sensors. Change the GPU thermal rule to directly use these individual sensors in two separate rule to achieve a better thermal control. Change-Id: I05ab74fd63657cefd6b251cf6528e74adf4e636d --- qcom/lahaina-thermal.dtsi | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/qcom/lahaina-thermal.dtsi b/qcom/lahaina-thermal.dtsi index 3dbb450d5b00..4dea98aea115 100644 --- a/qcom/lahaina-thermal.dtsi +++ b/qcom/lahaina-thermal.dtsi @@ -974,14 +974,13 @@ }; }; - gpuss-max-step { + gpuss-0-step { polling-delay-passive = <10>; - polling-delay = <100>; + polling-delay = <0>; thermal-governor = "step_wise"; - thermal-sensors = <&tsens1 1>, <&tsens1 2>; - sensor-aggregation = ; + thermal-sensors = <&tsens1 1>; trips { - gpuss_config: active-config0 { + gpuss0_config: active-config0 { temperature = <95000>; hysteresis = <0>; type = "passive"; @@ -990,7 +989,29 @@ cooling-maps { gpu_cdev { - trip = <&gpuss_config>; + trip = <&gpuss0_config>; + cooling-device = <&msm_gpu THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + }; + }; + }; + + gpuss-1-step { + polling-delay-passive = <10>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&tsens1 2>; + trips { + gpuss1_config: active-config0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + }; + + cooling-maps { + gpu_cdev { + trip = <&gpuss1_config>; cooling-device = <&msm_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; };