thermal: add tpu/aur power hints for emergency severity

Add power hints handling for EMERGENCY severity. Control temperature
and switchon temperature are lowered when the pwoerhint is received.
Remove power hint handling for isp thermal zones as PID control loop
is not enabled for isp as of now.

Bug: 229014824
Test: Build and boot on device. Check control/switchon temp when
thermal severity reaches EMERGENCY level

Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I2e4bab9495d76e231df8277f3bf4ef68d5a141af
This commit is contained in:
Sayanna Chandula 2022-05-24 05:44:56 +00:00
parent 493be28f05
commit 14edfc76be
2 changed files with 48 additions and 64 deletions

View file

@ -385,16 +385,6 @@
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "IspControlTempSet",
"Path": "/dev/thermal/tz-by-name/ISP/trip_point_2_temp",
"Values": [
"100000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "AurControlTempSet",
"Path": "/dev/thermal/tz-by-name/AUR/trip_point_2_temp",
@ -455,16 +445,6 @@
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "IspSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/ISP/trip_point_1_temp",
"Values": [
"80000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "AurSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/AUR/trip_point_1_temp",
@ -1481,12 +1461,6 @@
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurControlTempSet",
@ -1523,12 +1497,6 @@
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurSwitchOnTempSet",
@ -1655,6 +1623,18 @@
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "TpuControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "AurControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "BigSwitchOnTempSet",
@ -1679,6 +1659,18 @@
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "TpuSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "AurSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "ML_ACC",
"Node": "MLUclampBoost",

View file

@ -385,16 +385,6 @@
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "IspControlTempSet",
"Path": "/dev/thermal/tz-by-name/ISP/trip_point_2_temp",
"Values": [
"100000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "AurControlTempSet",
"Path": "/dev/thermal/tz-by-name/AUR/trip_point_2_temp",
@ -455,16 +445,6 @@
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "IspSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/ISP/trip_point_1_temp",
"Values": [
"80000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "AurSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/AUR/trip_point_1_temp",
@ -1465,12 +1445,6 @@
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurControlTempSet",
@ -1507,12 +1481,6 @@
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurSwitchOnTempSet",
@ -1639,6 +1607,18 @@
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "TpuControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "AurControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "BigSwitchOnTempSet",
@ -1663,6 +1643,18 @@
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "TpuSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_EMERGENCY",
"Node": "AurSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "ML_ACC",
"Node": "MLUclampBoost",