From 5caf26d1e63b8435d0797f8f170406defbe7e683 Mon Sep 17 00:00:00 2001 From: David Chao Date: Tue, 2 Aug 2022 13:57:58 +0800 Subject: [PATCH] thermal: enable fcc & dc_icl PID charging throttling - Enable fcc & dc_icl SKIN PID charging throttling with state2power table - Switch on temp 35C, target temp 39C Bug: 239507440 Test: Charging throttling worked as expected. Change-Id: I172b71e64f6dc03627c4c33be556080a1a29d777 --- thermal_info_config_lynx.json | 65 ++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 16 deletions(-) diff --git a/thermal_info_config_lynx.json b/thermal_info_config_lynx.json index 4923b28..05773ee 100644 --- a/thermal_info_config_lynx.json +++ b/thermal_info_config_lynx.json @@ -127,6 +127,7 @@ { "Name":"VIRTUAL-SKIN-CPU-GPU", "Type":"UNKNOWN", + "Hidden":true, "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", @@ -192,32 +193,49 @@ { "Name":"VIRTUAL-SKIN-CHARGE", "Type":"UNKNOWN", + "Hidden":true, "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", "Combination":["VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], "Coefficient":[1.0, 1.0, 1.0, 1.0], - "HotThreshold":["NAN", 39.0, 41.0, 43.0, 45.0, 47.0, 55.0], + "HotThreshold":["NAN", 35.0, 39.0, 43.0, 45.0, 47.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], "Multiplier":0.001, - "Monitor":true, "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", 800, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 1500, "NAN", "NAN", "NAN", "NAN"], + "MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"], + "MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"], + "I_Cutoff":["NAN", "NAN", 2, "NAN", "NAN", "NAN", "NAN"] + }, + "ExcludedPowerInfo": [ + { + "PowerRail": "PARTIAL_SYSTEM_POWER", + "PowerWeight": [0.5, 0.5, 0.8, 1.0, 1.0, 1.0, 1.0] + } + ], "BindedCdevInfo": [ { "CdevRequest": "fcc", - "LimitInfo": [0, 3, 6, 6, 8, 8, 8], - "BindedPowerRail": "PARTIAL_SYSTEM_POWER", - "PowerThreshold": [500, 500, 500, 500, 0, 0, 0], - "CdevFloorWithPowerLink": [0, 0, 3, 3, 8 ,8 ,8], - "ReleaseLogic": "RELEASE_TO_FLOOR", - "ThrottlingWithPowerLink":true + "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], + "MaxReleaseStep": 1, + "MaxThrottleStep": 1, + "CdevCeiling": [0, 9, 10, 11, 12, 12, 12], + "LimitInfo": [0, 0, 0, 0, 0, 12, 12] } ] }, { "Name":"VIRTUAL-SKIN-CHARGE-WLC", "Type":"UNKNOWN", + "Hidden":true, "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"WEIGHTED_AVG", @@ -226,18 +244,33 @@ "HotThreshold":["NAN", 39.0, 41.0, 43.0, 45.0, 47.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], "Multiplier":0.001, - "Monitor":true, "PollingDelay":300000, "PassiveDelay":7000, + "PIDInfo": { + "K_Po":["NAN", "NAN", 800, "NAN", "NAN", "NAN", "NAN"], + "K_Pu":["NAN", "NAN", 800, "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", 800, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 3600, "NAN", "NAN", "NAN", "NAN"], + "MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"], + "MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"], + "I_Cutoff":["NAN", "NAN", 2, "NAN", "NAN", "NAN", "NAN"] + }, + "ExcludedPowerInfo": [ + { + "PowerRail": "PARTIAL_SYSTEM_POWER", + "PowerWeight": [0.5, 0.5, 0.8, 1.0, 1.0, 1.0, 1.0] + } + ], "BindedCdevInfo": [ { "CdevRequest": "dc_icl", - "LimitInfo": [0, 1, 2, 3, 4, 4, 4], - "BindedPowerRail": "PARTIAL_SYSTEM_POWER", - "PowerThreshold": [500, 500, 500, 500, 0, 0, 0], - "CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 4, 4], - "ReleaseLogic": "RELEASE_TO_FLOOR", - "ThrottlingWithPowerLink":true + "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], + "MaxReleaseStep": 1, + "MaxThrottleStep": 1, + "CdevCeiling": [0, 5, 10, 11, 12, 12, 12], + "LimitInfo": [0, 0, 0, 0, 0, 12, 12] } ] }, @@ -252,7 +285,7 @@ "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"], "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0], "Multiplier":0.001, - "Monitor":true, + "SendCallback":true, "PollingDelay":300000, "PassiveDelay":7000 },