From fffedb636152f66e588bced82c5d8c082c0abb3c Mon Sep 17 00:00:00 2001 From: David Chao Date: Thu, 18 Apr 2024 08:30:30 +0000 Subject: [PATCH] thermal: Update charging thermal throttling Reduce temperature and charging throttling overshoots by fine-tuning PID parameters. Bug: 303547723 Test: boot and charging thermal throtlting worked properly. Change-Id: Ief0aec34e05cc9639ae995e1a230228e7591cf36 --- thermal/thermal_info_config_charge_comet.json | 6 +++--- thermal/thermal_info_config_comet.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/thermal/thermal_info_config_charge_comet.json b/thermal/thermal_info_config_charge_comet.json index 88f9098..3d01ab5 100644 --- a/thermal/thermal_info_config_charge_comet.json +++ b/thermal/thermal_info_config_charge_comet.json @@ -202,19 +202,19 @@ "PIDInfo": { "K_Po": ["NAN", "NAN", 119, "NAN", "NAN", "NAN", "NAN"], "K_Pu": ["NAN", "NAN", 119, "NAN", "NAN", "NAN", "NAN"], - "K_I": ["NAN", "NAN", 25, "NAN", "NAN", "NAN", "NAN"], + "K_I": ["NAN", "NAN", 50, "NAN", "NAN", "NAN", "NAN"], "K_D": ["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "I_Max": ["NAN", "NAN", 1302, "NAN", "NAN", "NAN", "NAN"], "S_Power": ["NAN", "NAN", 2527, "NAN", "NAN", "NAN", "NAN"], "MinAllocPower": ["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "MaxAllocPower": ["NAN", "NAN", 6219, "NAN", "NAN", "NAN", "NAN"], "I_Cutoff": ["NAN", "NAN", 6, "NAN", "NAN", "NAN", "NAN"], - "I_Default": 1302 + "I_Default": 846 }, "ExcludedPowerInfo": [ { "PowerRail": "PARTIAL_SYSTEM_POWER", - "PowerWeight": [0.12, 0.12, 0.06, 0.06, 0.24, 0.24, 0.24] + "PowerWeight": [0.12, 0.12, 1.0, 1.0, 1.0, 1.0, 1.0] } ], "BindedCdevInfo": [ diff --git a/thermal/thermal_info_config_comet.json b/thermal/thermal_info_config_comet.json index 1e5702d..7e0366f 100644 --- a/thermal/thermal_info_config_comet.json +++ b/thermal/thermal_info_config_comet.json @@ -806,19 +806,19 @@ "PIDInfo": { "K_Po": ["NAN", "NAN", 119, "NAN", "NAN", "NAN", "NAN"], "K_Pu": ["NAN", "NAN", 119, "NAN", "NAN", "NAN", "NAN"], - "K_I": ["NAN", "NAN", 25, "NAN", "NAN", "NAN", "NAN"], + "K_I": ["NAN", "NAN", 50, "NAN", "NAN", "NAN", "NAN"], "K_D": ["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "I_Max": ["NAN", "NAN", 1302, "NAN", "NAN", "NAN", "NAN"], "S_Power": ["NAN", "NAN", 2527, "NAN", "NAN", "NAN", "NAN"], "MinAllocPower": ["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "MaxAllocPower": ["NAN", "NAN", 6219, "NAN", "NAN", "NAN", "NAN"], "I_Cutoff": ["NAN", "NAN", 6, "NAN", "NAN", "NAN", "NAN"], - "I_Default": 1302 + "I_Default": 846 }, "ExcludedPowerInfo": [ { "PowerRail": "PARTIAL_SYSTEM_POWER", - "PowerWeight": [0.12, 0.12, 0.06, 0.06, 0.24, 0.24, 0.24] + "PowerWeight": [0.12, 0.12, 1.0, 1.0, 1.0, 1.0, 1.0] } ], "BindedCdevInfo": [