From 1d94dcc054ba2a2d849d4a590089ffee1e35dc93 Mon Sep 17 00:00:00 2001 From: David Chao Date: Fri, 23 Aug 2024 06:28:01 +0000 Subject: [PATCH] thermal: update charging thermal throttling Increasing MaxReleaseStep/MaxThrottleStep to prevent temperature overshoos. Based on HW WLC team's comment: - During thermal throttling, the charging current should be reduced in steps no larger than 100mA per step. - When the thermal issue is resolved, the charging current should be increased in steps no larger than 50mA per step. Flag: EXEMPT tuning changes Bug: 353587870 Test: boot to home and thermal throttling worked properly. Change-Id: I402588dbe4d23382bc9ef6c01095a4235d5f6142 --- thermal/thermal_info_config_charge_tegu.json | 10 +++++----- thermal/thermal_info_config_tegu.json | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/thermal/thermal_info_config_charge_tegu.json b/thermal/thermal_info_config_charge_tegu.json index 74badb4..51ba049 100644 --- a/thermal/thermal_info_config_charge_tegu.json +++ b/thermal/thermal_info_config_charge_tegu.json @@ -117,15 +117,15 @@ "ExcludedPowerInfo": [ { "PowerRail": "PARTIAL_SYSTEM_POWER", - "PowerWeight": [0.12, 0.12, 1.0, 1.0, 1.0, 1.0, 1.0] + "PowerWeight": [0.12, 0.12, 0.6, 1.0, 1.0, 1.0, 1.0] } ], "BindedCdevInfo": [ { "CdevRequest": "fcc", "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], - "MaxReleaseStep": 1, - "MaxThrottleStep": 1, + "MaxReleaseStep": 4, + "MaxThrottleStep": 4, "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], "LimitInfo": [0, 0, 0, 0, 0, 26, 26] } @@ -168,8 +168,8 @@ { "CdevRequest": "dc_icl", "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], - "MaxReleaseStep": 1, - "MaxThrottleStep": 1, + "MaxReleaseStep": 2, + "MaxThrottleStep": 4, "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], "LimitInfo": [0, 1, 1, 1, 26, 26, 26] } diff --git a/thermal/thermal_info_config_tegu.json b/thermal/thermal_info_config_tegu.json index 39e3111..b9abad9 100644 --- a/thermal/thermal_info_config_tegu.json +++ b/thermal/thermal_info_config_tegu.json @@ -780,15 +780,15 @@ "ExcludedPowerInfo": [ { "PowerRail": "PARTIAL_SYSTEM_POWER", - "PowerWeight": [0.12, 0.12, 1.0, 1.0, 1.0, 1.0, 1.0] + "PowerWeight": [0.12, 0.12, 0.6, 1.0, 1.0, 1.0, 1.0] } ], "BindedCdevInfo": [ { "CdevRequest": "fcc", "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], - "MaxReleaseStep": 1, - "MaxThrottleStep": 1, + "MaxReleaseStep": 4, + "MaxThrottleStep": 4, "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], "LimitInfo": [0, 0, 0, 0, 0, 26, 26] } @@ -831,8 +831,8 @@ { "CdevRequest": "dc_icl", "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], - "MaxReleaseStep": 1, - "MaxThrottleStep": 1, + "MaxReleaseStep": 2, + "MaxThrottleStep": 4, "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], "LimitInfo": [0, 1, 1, 1, 26, 26, 26] }