thermal: update dynamic control/switchon trips in powerhint

- Create separate powerhint json files for a0 soc
- Add control/switchon powerhints for all IPs
- Change thermal severity level to LIGHT
- Update trip temps as per policy

Bug: 194509203
Test: Build and boot on device. Check change of trip temperatures
after the thermal severity of LIGHT
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: Ibd19ea16d0fee25dec801b287e1eab05699a8d7f
This commit is contained in:
Sayanna Chandula 2022-03-08 06:03:10 +00:00
parent 9e36616a4d
commit d8f5b8c917
7 changed files with 3294 additions and 32 deletions

View file

@ -70,3 +70,6 @@ on property:ro.boot.hardware.revision=PROTO1.1
# SecureElement eSE2 cts mode # SecureElement eSE2 cts mode
on property:persist.vendor.se.ese2.mode=ctsmode on property:persist.vendor.se.ese2.mode=ctsmode
write /sys/class/st33spi/st33spi/st33spi_state 33 write /sys/class/st33spi/st33spi/st33spi_state 33
on init && property:ro.boot.hw.soc.rev=0
setprop vendor.powerhal.config powerhint-a0.json

View file

@ -113,6 +113,8 @@ PRODUCT_COPY_FILES += \
# Power HAL config # Power HAL config
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-cheetah.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json device/google/pantah/powerhint-cheetah.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-cheetah-a0.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-a0.json
# Bluetooth HAL # Bluetooth HAL
DEVICE_MANIFEST_FILE += \ DEVICE_MANIFEST_FILE += \

View file

@ -102,6 +102,8 @@ PRODUCT_COPY_FILES += \
# Power HAL config # Power HAL config
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-panther.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json device/google/pantah/powerhint-panther.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-panther-a0.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-a0.json
# Bluetooth HAL # Bluetooth HAL
DEVICE_MANIFEST_FILE += \ DEVICE_MANIFEST_FILE += \

1540
powerhint-cheetah-a0.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -295,7 +295,7 @@
"Name": "BigControlTempSet", "Name": "BigControlTempSet",
"Path": "/dev/thermal/tz-by-name/BIG/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/BIG/trip_point_2_temp",
"Values": [ "Values": [
"90000", "100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -305,7 +305,7 @@
"Name": "MidControlTempSet", "Name": "MidControlTempSet",
"Path": "/dev/thermal/tz-by-name/MID/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/MID/trip_point_2_temp",
"Values": [ "Values": [
"90000", "100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -315,7 +315,7 @@
"Name": "LittleControlTempSet", "Name": "LittleControlTempSet",
"Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_2_temp",
"Values": [ "Values": [
"95000", "100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -325,7 +325,37 @@
"Name": "G3dControlTempSet", "Name": "G3dControlTempSet",
"Path": "/dev/thermal/tz-by-name/G3D/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/G3D/trip_point_2_temp",
"Values": [ "Values": [
"90000", "100000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "TpuControlTempSet",
"Path": "/dev/thermal/tz-by-name/TPU/trip_point_2_temp",
"Values": [
"100000",
"80000"
],
"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",
"Values": [
"100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -335,7 +365,7 @@
"Name": "BigSwitchOnTempSet", "Name": "BigSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/BIG/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/BIG/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -345,7 +375,7 @@
"Name": "MidSwitchOnTempSet", "Name": "MidSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/MID/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/MID/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -355,7 +385,7 @@
"Name": "LittleSwitchOnTempSet", "Name": "LittleSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -365,7 +395,37 @@
"Name": "G3dSwitchOnTempSet", "Name": "G3dSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/G3D/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/G3D/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "TpuSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/TPU/trip_point_1_temp",
"Values": [
"80000",
"60000"
],
"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",
"Values": [
"80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -1256,53 +1316,89 @@
"Value": "400000" "Value": "400000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "BigControlTempSet", "Node": "BigControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "MidControlTempSet", "Node": "MidControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "LittleControlTempSet", "Node": "LittleControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "G3dControlTempSet", "Node": "G3dControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "TpuControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "BigSwitchOnTempSet", "Node": "BigSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "MidSwitchOnTempSet", "Node": "MidSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "LittleSwitchOnTempSet", "Node": "LittleSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "G3dSwitchOnTempSet", "Node": "G3dSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "TpuSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",
"Node": "CPUBigClusterMaxFreq", "Node": "CPUBigClusterMaxFreq",

1523
powerhint-panther-a0.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -294,7 +294,7 @@
"Name": "BigControlTempSet", "Name": "BigControlTempSet",
"Path": "/dev/thermal/tz-by-name/BIG/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/BIG/trip_point_2_temp",
"Values": [ "Values": [
"90000", "100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -304,7 +304,7 @@
"Name": "MidControlTempSet", "Name": "MidControlTempSet",
"Path": "/dev/thermal/tz-by-name/MID/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/MID/trip_point_2_temp",
"Values": [ "Values": [
"90000", "100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -314,7 +314,7 @@
"Name": "LittleControlTempSet", "Name": "LittleControlTempSet",
"Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_2_temp",
"Values": [ "Values": [
"95000", "100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -324,7 +324,37 @@
"Name": "G3dControlTempSet", "Name": "G3dControlTempSet",
"Path": "/dev/thermal/tz-by-name/G3D/trip_point_2_temp", "Path": "/dev/thermal/tz-by-name/G3D/trip_point_2_temp",
"Values": [ "Values": [
"90000", "100000",
"80000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "TpuControlTempSet",
"Path": "/dev/thermal/tz-by-name/TPU/trip_point_2_temp",
"Values": [
"100000",
"80000"
],
"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",
"Values": [
"100000",
"80000" "80000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -334,7 +364,7 @@
"Name": "BigSwitchOnTempSet", "Name": "BigSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/BIG/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/BIG/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -344,7 +374,7 @@
"Name": "MidSwitchOnTempSet", "Name": "MidSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/MID/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/MID/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -354,7 +384,7 @@
"Name": "LittleSwitchOnTempSet", "Name": "LittleSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -364,7 +394,37 @@
"Name": "G3dSwitchOnTempSet", "Name": "G3dSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/G3D/trip_point_1_temp", "Path": "/dev/thermal/tz-by-name/G3D/trip_point_1_temp",
"Values": [ "Values": [
"70000", "80000",
"60000"
],
"DefaultIndex": 0,
"ResetOnInit": false
},
{
"Name": "TpuSwitchOnTempSet",
"Path": "/dev/thermal/tz-by-name/TPU/trip_point_1_temp",
"Values": [
"80000",
"60000"
],
"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",
"Values": [
"80000",
"60000" "60000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -1239,53 +1299,89 @@
"Value": "400000" "Value": "400000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "BigControlTempSet", "Node": "BigControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "MidControlTempSet", "Node": "MidControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "LittleControlTempSet", "Node": "LittleControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "G3dControlTempSet", "Node": "G3dControlTempSet",
"Duration": 0, "Duration": 0,
"Value": "80000" "Value": "80000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "TpuControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "BigSwitchOnTempSet", "Node": "BigSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "MidSwitchOnTempSet", "Node": "MidSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "LittleSwitchOnTempSet", "Node": "LittleSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "G3dSwitchOnTempSet", "Node": "G3dSwitchOnTempSet",
"Duration": 0, "Duration": 0,
"Value": "60000" "Value": "60000"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "TpuSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "IspSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT",
"Node": "AurSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",
"Node": "CPUBigClusterMaxFreq", "Node": "CPUBigClusterMaxFreq",