Revert "Revert "powerhint: thermal: Support powerhint to change tmu control-temp""
This reverts commit e2da019e130964a3c911ddcb2c1094438d34d6f3.
Since the temperature getting struck at 10 degC b/192030129 has been fixed,
reenable dynamic Tj thresholds.
Bug: 202736847
Test: build and boot on device
Change-Id: I53c62595407ea156ee3aceef0d3723db46096b8f
diff --git a/powerhint.json b/powerhint.json
index fc09d0c..199e406 100644
--- a/powerhint.json
+++ b/powerhint.json
@@ -296,6 +296,86 @@
"adaptive"
],
"ResetOnInit": true
+ },
+ {
+ "Name": "BigControlTempSet",
+ "Path": "/dev/thermal/tz-by-name/BIG/trip_point_2_temp",
+ "Values": [
+ "90000",
+ "80000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
+ },
+ {
+ "Name": "MidControlTempSet",
+ "Path": "/dev/thermal/tz-by-name/MID/trip_point_2_temp",
+ "Values": [
+ "90000",
+ "80000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
+ },
+ {
+ "Name": "LittleControlTempSet",
+ "Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_2_temp",
+ "Values": [
+ "90000",
+ "80000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
+ },
+ {
+ "Name": "G3dControlTempSet",
+ "Path": "/dev/thermal/tz-by-name/G3D/trip_point_2_temp",
+ "Values": [
+ "90000",
+ "80000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
+ },
+ {
+ "Name": "BigSwitchOnTempSet",
+ "Path": "/dev/thermal/tz-by-name/BIG/trip_point_1_temp",
+ "Values": [
+ "70000",
+ "60000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
+ },
+ {
+ "Name": "MidSwitchOnTempSet",
+ "Path": "/dev/thermal/tz-by-name/MID/trip_point_1_temp",
+ "Values": [
+ "70000",
+ "60000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
+ },
+ {
+ "Name": "LittleSwitchOnTempSet",
+ "Path": "/dev/thermal/tz-by-name/LITTLE/trip_point_1_temp",
+ "Values": [
+ "70000",
+ "60000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
+ },
+ {
+ "Name": "G3dSwitchOnTempSet",
+ "Path": "/dev/thermal/tz-by-name/G3D/trip_point_1_temp",
+ "Values": [
+ "70000",
+ "60000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": false
}
],
"Actions": [
@@ -1123,6 +1203,54 @@
"Value": "400000"
},
{
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "BigControlTempSet",
+ "Duration": 0,
+ "Value": "80000"
+ },
+ {
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "MidControlTempSet",
+ "Duration": 0,
+ "Value": "80000"
+ },
+ {
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "LittleControlTempSet",
+ "Duration": 0,
+ "Value": "80000"
+ },
+ {
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "G3dControlTempSet",
+ "Duration": 0,
+ "Value": "80000"
+ },
+ {
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "BigSwitchOnTempSet",
+ "Duration": 0,
+ "Value": "60000"
+ },
+ {
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "MidSwitchOnTempSet",
+ "Duration": 0,
+ "Value": "60000"
+ },
+ {
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "LittleSwitchOnTempSet",
+ "Duration": 0,
+ "Value": "60000"
+ },
+ {
+ "PowerHint": "THERMAL_VIRTUAL-SKIN_SEVERE",
+ "Node": "G3dSwitchOnTempSet",
+ "Duration": 0,
+ "Value": "60000"
+ },
+ {
"PowerHint": "FACE_UNLOCK_BOOST",
"Node": "CPUBigClusterMaxFreq",
"Duration": 1000,