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
This commit is contained in:
David Chao 2022-08-02 13:57:58 +08:00
parent 20ef1286dc
commit 5caf26d1e6

View file

@ -127,6 +127,7 @@
{ {
"Name":"VIRTUAL-SKIN-CPU-GPU", "Name":"VIRTUAL-SKIN-CPU-GPU",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true, "VirtualSensor":true,
"TriggerSensor":"skin_therm1", "TriggerSensor":"skin_therm1",
"Formula":"MAXIMUM", "Formula":"MAXIMUM",
@ -192,32 +193,49 @@
{ {
"Name":"VIRTUAL-SKIN-CHARGE", "Name":"VIRTUAL-SKIN-CHARGE",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true, "VirtualSensor":true,
"TriggerSensor":"skin_therm1", "TriggerSensor":"skin_therm1",
"Formula":"MAXIMUM", "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"], "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], "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], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9],
"Multiplier":0.001, "Multiplier":0.001,
"Monitor":true,
"PollingDelay":300000, "PollingDelay":300000,
"PassiveDelay":7000, "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": [ "BindedCdevInfo": [
{ {
"CdevRequest": "fcc", "CdevRequest": "fcc",
"LimitInfo": [0, 3, 6, 6, 8, 8, 8], "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"BindedPowerRail": "PARTIAL_SYSTEM_POWER", "MaxReleaseStep": 1,
"PowerThreshold": [500, 500, 500, 500, 0, 0, 0], "MaxThrottleStep": 1,
"CdevFloorWithPowerLink": [0, 0, 3, 3, 8 ,8 ,8], "CdevCeiling": [0, 9, 10, 11, 12, 12, 12],
"ReleaseLogic": "RELEASE_TO_FLOOR", "LimitInfo": [0, 0, 0, 0, 0, 12, 12]
"ThrottlingWithPowerLink":true
} }
] ]
}, },
{ {
"Name":"VIRTUAL-SKIN-CHARGE-WLC", "Name":"VIRTUAL-SKIN-CHARGE-WLC",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true, "VirtualSensor":true,
"TriggerSensor":"skin_therm1", "TriggerSensor":"skin_therm1",
"Formula":"WEIGHTED_AVG", "Formula":"WEIGHTED_AVG",
@ -226,18 +244,33 @@
"HotThreshold":["NAN", 39.0, 41.0, 43.0, 45.0, 47.0, 55.0], "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], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9],
"Multiplier":0.001, "Multiplier":0.001,
"Monitor":true,
"PollingDelay":300000, "PollingDelay":300000,
"PassiveDelay":7000, "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": [ "BindedCdevInfo": [
{ {
"CdevRequest": "dc_icl", "CdevRequest": "dc_icl",
"LimitInfo": [0, 1, 2, 3, 4, 4, 4], "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"BindedPowerRail": "PARTIAL_SYSTEM_POWER", "MaxReleaseStep": 1,
"PowerThreshold": [500, 500, 500, 500, 0, 0, 0], "MaxThrottleStep": 1,
"CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 4, 4], "CdevCeiling": [0, 5, 10, 11, 12, 12, 12],
"ReleaseLogic": "RELEASE_TO_FLOOR", "LimitInfo": [0, 0, 0, 0, 0, 12, 12]
"ThrottlingWithPowerLink":true
} }
] ]
}, },
@ -252,7 +285,7 @@
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"],
"HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0], "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
"Multiplier":0.001, "Multiplier":0.001,
"Monitor":true, "SendCallback":true,
"PollingDelay":300000, "PollingDelay":300000,
"PassiveDelay":7000 "PassiveDelay":7000
}, },