thermal: add CPU GPU throttling policy and VIRTUAL-SKIN-HINT
- Add VIRTUAL-SKIN-CPU-GPU - Add PID and BindedCdev aligning with older devices - Add VIRTUAL-SKIN-HINT - Modify light temp from 39 to 37 Change-Id: I648680eedcd508bf2d81ad8d04f5e5a17a1f508f Bug: 261148703(skin hint) Bug: 254021126(cpu policy) Bug: 254021580(gpu policy) Test: use local build to check lshal and log
This commit is contained in:
parent
e9a0530ff2
commit
d9e676ad01
1 changed files with 108 additions and 5 deletions
|
@ -97,11 +97,92 @@
|
|||
"HotThreshold":["NAN", "39.0", "43.0", "45.0", "47.0", "51.0", "140.0"],
|
||||
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9],
|
||||
"Multiplier":0.001,
|
||||
"SendPowerHint":true,
|
||||
"Monitor":true,
|
||||
"SendCallback":true,
|
||||
"PollingDelay":300000,
|
||||
"PassiveDelay":7000
|
||||
},
|
||||
{
|
||||
"Name":"VIRTUAL-SKIN-HINT",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"TriggerSensor":"quiet_therm",
|
||||
"Formula":"MAXIMUM",
|
||||
"Combination":["VIRTUAL-FRONT-SOC", "VIRTUAL-FRONT-BL", "VIRTUAL-BACK-SOC", "VIRTUAL-BACK-CHARGER"],
|
||||
"Coefficient":["1.0", "1.0", "1.0", "1.0"],
|
||||
"HotThreshold":["NAN", "37.0", "43.0", "45.0", "47.0", "51.0", "140.0"],
|
||||
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9],
|
||||
"Multiplier":0.001,
|
||||
"SendPowerHint":true,
|
||||
"PollingDelay":300000,
|
||||
"PassiveDelay":7000
|
||||
},
|
||||
{
|
||||
"Name":"VIRTUAL-SKIN-CPU-GPU",
|
||||
"Type":"UNKNOWN",
|
||||
"Hidden":true,
|
||||
"VirtualSensor":true,
|
||||
"TriggerSensor":"quiet_therm",
|
||||
"Formula":"MAXIMUM",
|
||||
"Combination":["VIRTUAL-FRONT-SOC", "VIRTUAL-FRONT-BL", "VIRTUAL-BACK-SOC", "VIRTUAL-BACK-CHARGER"],
|
||||
"Coefficient":["1.0", "1.0", "1.0", "1.0"],
|
||||
"HotThreshold":["NAN", "39.0", "43.0", "45.0", "47.0", "51.0", "140.0"],
|
||||
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9],
|
||||
"Multiplier":0.001,
|
||||
"PollingDelay":300000,
|
||||
"PassiveDelay":7000,
|
||||
"PIDInfo": {
|
||||
"K_Po":["NAN", "NAN", 1800, 500, "NAN", "NAN", "NAN"],
|
||||
"K_Pu":["NAN", "NAN", 1800, 500, "NAN", "NAN", "NAN"],
|
||||
"K_I":["NAN", "NAN", 20, 5, "NAN", "NAN", "NAN"],
|
||||
"K_D":["NAN", "NAN", 0, 0, "NAN", "NAN", "NAN"],
|
||||
"I_Max":["NAN", "NAN", 1500, 100, "NAN", "NAN", "NAN"],
|
||||
"S_Power":["NAN", "NAN", 2500, 1300, "NAN", "NAN", "NAN"],
|
||||
"MinAllocPower":["NAN", "NAN", 2000, 800, "NAN", "NAN", "NAN"],
|
||||
"MaxAllocPower":["NAN", "NAN", 10000, 4000, "NAN", "NAN", "NAN"],
|
||||
"I_Cutoff":["NAN", "NAN", 2, 2, "NAN", "NAN", "NAN"],
|
||||
"I_Default": 1000,
|
||||
"TranCycle": 5
|
||||
},
|
||||
"BindedCdevInfo": [
|
||||
{
|
||||
"CdevRequest": "thermal-cpufreq-0",
|
||||
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
|
||||
"MaxReleaseStep": 1,
|
||||
"MaxThrottleStep": 1,
|
||||
"BindedPowerRail": "S4M_VDD_CPUCL0",
|
||||
"CdevCeiling": [0, 8, 8, 8, 8, 10, 10],
|
||||
"LimitInfo": [0, 0, 0, 0, 8, 10, 10]
|
||||
},
|
||||
{
|
||||
"CdevRequest": "thermal-cpufreq-1",
|
||||
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
|
||||
"MaxReleaseStep": 1,
|
||||
"MaxThrottleStep": 1,
|
||||
"BindedPowerRail": "S3M_VDD_CPUCL1",
|
||||
"CdevCeiling": [0, 12, 12, 12, 12, 14, 14],
|
||||
"LimitInfo": [0, 0, 0, 0, 12, 14, 14]
|
||||
},
|
||||
{
|
||||
"CdevRequest": "thermal-cpufreq-2",
|
||||
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
|
||||
"MaxReleaseStep": 1,
|
||||
"MaxThrottleStep": 1,
|
||||
"BindedPowerRail": "S2M_VDD_CPUCL2",
|
||||
"CdevCeiling": [0, 15, 15, 15, 15, 17, 17],
|
||||
"LimitInfo": [0, 0, 0, 0, 15, 17, 17]
|
||||
},
|
||||
{
|
||||
"CdevRequest": "thermal-gpufreq-0",
|
||||
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
|
||||
"MaxReleaseStep": 1,
|
||||
"MaxThrottleStep": 1,
|
||||
"BindedPowerRail": "S2S_VDD_G3D",
|
||||
"CdevCeiling": [0, 6, 6, 6, 8, 10, 10],
|
||||
"LimitInfo": [0, 0, 0, 0, 8, 10, 10]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name":"cellular-emergency",
|
||||
"Type":"POWER_AMPLIFIER",
|
||||
|
@ -474,19 +555,19 @@
|
|||
"Name":"thermal-cpufreq-0",
|
||||
"Type":"CPU",
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote",
|
||||
"State2Power":["1100", "1050", "1000", "950", "900", "850", "800", "750", "700", "650", "600"]
|
||||
"State2Power":[1100, 1050, 1000, 950, 900, 850, 800, 750, 700, 650, 600]
|
||||
},
|
||||
{
|
||||
"Name":"thermal-cpufreq-1",
|
||||
"Type":"CPU",
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote",
|
||||
"State2Power":["1400", "1350", "1300", "1250", "1200", "1150", "1100", "1050", "1000", "950", "900", "850", "800", "750"]
|
||||
"State2Power":[1400, 1350, 1300, 1250, 1200, 1150, 1100, 1050, 1000, 950, 900, 850, 800, 750]
|
||||
},
|
||||
{
|
||||
"Name":"thermal-cpufreq-2",
|
||||
"Type":"CPU",
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote",
|
||||
"State2Power":["1450", "1400", "1350", "1300", "1250", "1200", "1150", "1100", "1050", "1000", "950", "900", "850", "800", "750"]
|
||||
"State2Power":[1450, 1400, 1350, 1300, 1250, 1200, 1150, 1100, 1050, 1000, 950, 900, 850, 800, 750]
|
||||
},
|
||||
{
|
||||
"Name":"thermal-gpufreq-0",
|
||||
|
@ -499,5 +580,27 @@
|
|||
"Type":"NPU",
|
||||
"WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote"
|
||||
}
|
||||
],
|
||||
"PowerRails":[
|
||||
{
|
||||
"Name":"S2M_VDD_CPUCL2",
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":1
|
||||
},
|
||||
{
|
||||
"Name":"S3M_VDD_CPUCL1",
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":1
|
||||
},
|
||||
{
|
||||
"Name":"S4M_VDD_CPUCL0",
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":1
|
||||
},
|
||||
{
|
||||
"Name":"S2S_VDD_G3D",
|
||||
"PowerSampleDelay":7000,
|
||||
"PowerSampleCount":1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue