From 0807a5ff7f5370aaaa3985f2a28fab40075552ac Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Tue, 2 May 2023 15:19:10 -0700 Subject: [PATCH] thermal: adjust GPU throttling policy Bug: 258136466 Test: run MH_OFF Change-Id: Ide5cad291832558a37ede742772dae61936c6bcb --- thermal/thermal_info_config_husky.json | 37 ++++++++++++++++++++++++-- thermal/thermal_info_config_shiba.json | 37 ++++++++++++++++++++++++-- 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/thermal/thermal_info_config_husky.json b/thermal/thermal_info_config_husky.json index bc7e97d..64f02cd 100644 --- a/thermal/thermal_info_config_husky.json +++ b/thermal/thermal_info_config_husky.json @@ -471,11 +471,11 @@ "K_Pu":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"], "K_I":["NAN", "NAN", "NAN", 5, "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"], - "I_Max":["NAN", "NAN", "NAN", 700, "NAN", "NAN", "NAN"], + "I_Max":["NAN", "NAN", "NAN", 2600, "NAN", "NAN", "NAN"], "S_Power":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", "NAN", 3900, "NAN", "NAN", "NAN"], - "I_Cutoff":["NAN", "NAN", "NAN", 2, "NAN", "NAN", "NAN"] + "I_Cutoff":["NAN", "NAN", "NAN", 8, "NAN", "NAN", "NAN"] }, "BindedCdevInfo": [ { @@ -516,6 +516,39 @@ } ] }, + { + "Name":"VIRTUAL-SKIN-GPU", + "Type":"UNKNOWN", + "Hidden":true, + "VirtualSensor":true, + "TriggerSensor":["north_therm", "cam_therm", "soc_therm", "charge_therm", "disp_therm", "neutral_therm", "quiet_therm"], + "Formula":"MAXIMUM", + "Combination":["VIRTUAL-SKIN"], + "Coefficient":[1.0], + "HotThreshold":["NAN", 43.0, 45.0, 46.5, 52.0, "NAN", "NAN"], + "HotHysteresis":[0.0, 1.9, 1.9, 1.4, 1.9, 0.0, 0.0], + "Multiplier":0.001, + "PollingDelay":300000, + "PassiveDelay":7000, + "PIDInfo": { + "K_Po":["NAN", "NAN", 700, "NAN", "NAN", "NAN", "NAN"], + "K_Pu":["NAN", "NAN", 700, "NAN", "NAN", "NAN", "NAN"], + "K_I":["NAN", "NAN", 5, "NAN", "NAN", "NAN", "NAN"], + "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], + "I_Max":["NAN", "NAN", 1723, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 473, "NAN", "NAN", "NAN", "NAN"], + "MinAllocPower":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], + "MaxAllocPower":["NAN", "NAN", 2500, "NAN", "NAN", "NAN", "NAN"], + "I_Cutoff":["NAN", "NAN", 2, "NAN", "NAN", "NAN", "NAN"] + }, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-gpufreq-0", + "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], + "CdevCeiling": [0, 8, 8, 9, 11, 11, 11] + } + ] + }, { "Name":"VIRTUAL-SKIN-CHARGE", "Type":"UNKNOWN", diff --git a/thermal/thermal_info_config_shiba.json b/thermal/thermal_info_config_shiba.json index 0098fcc..418208b 100644 --- a/thermal/thermal_info_config_shiba.json +++ b/thermal/thermal_info_config_shiba.json @@ -448,11 +448,11 @@ "K_Pu":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"], "K_I":["NAN", "NAN", "NAN", 5, "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"], - "I_Max":["NAN", "NAN", "NAN", 700, "NAN", "NAN", "NAN"], + "I_Max":["NAN", "NAN", "NAN", 2600, "NAN", "NAN", "NAN"], "S_Power":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", "NAN", 3900, "NAN", "NAN", "NAN"], - "I_Cutoff":["NAN", "NAN", "NAN", 2, "NAN", "NAN", "NAN"] + "I_Cutoff":["NAN", "NAN", "NAN", 8, "NAN", "NAN", "NAN"] }, "BindedCdevInfo": [ { @@ -493,6 +493,39 @@ } ] }, + { + "Name":"VIRTUAL-SKIN-GPU", + "Type":"UNKNOWN", + "Hidden":true, + "VirtualSensor":true, + "TriggerSensor":["north_therm", "cam_therm", "soc_therm", "charge_therm", "disp_therm", "neutral_therm", "quiet_therm"], + "Formula":"MAXIMUM", + "Combination":["VIRTUAL-SKIN"], + "Coefficient":[1.0], + "HotThreshold":["NAN", 43.0, 45.0, 46.5, 52.0, "NAN", "NAN"], + "HotHysteresis":[0.0, 1.9, 1.9, 1.4, 1.9, 0.0, 0.0], + "Multiplier":0.001, + "PollingDelay":300000, + "PassiveDelay":7000, + "PIDInfo": { + "K_Po":["NAN", "NAN", 700, "NAN", "NAN", "NAN", "NAN"], + "K_Pu":["NAN", "NAN", 700, "NAN", "NAN", "NAN", "NAN"], + "K_I":["NAN", "NAN", 5, "NAN", "NAN", "NAN", "NAN"], + "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], + "I_Max":["NAN", "NAN", 1723, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 473, "NAN", "NAN", "NAN", "NAN"], + "MinAllocPower":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], + "MaxAllocPower":["NAN", "NAN", 2500, "NAN", "NAN", "NAN", "NAN"], + "I_Cutoff":["NAN", "NAN", 2, "NAN", "NAN", "NAN", "NAN"] + }, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-gpufreq-0", + "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], + "CdevCeiling": [0, 9, 9, 9, 11, 11, 11] + } + ] + }, { "Name":"VIRTUAL-SKIN-CHARGE", "Type":"UNKNOWN",