tegu: powerhint: align migration margin, dvfs headroom and other updates

powerhint: port changes from p23

- Add DISPLAY_CHANGE powerhint
- Add more boosts to LAUNCH_EXTEND
- Remove unused idle target residency settings

powerhint: port migration margin settings from p23

Bug: 316035859
powerhint: port dvfs_headroom settings from p23

Bug: 322000346

powerhint: revert dvfs_headroom settings for camera

Bug: 329905546

Change set preferred idle mask to top-app

Set default value to 0x7f to exclude big core for all priorities, but
restore high and mid to 0xff when app launch.
Bug: 248621289

Test: Boot to home
Bug: 330085013
Change-Id: Iab5c9534c0f59bc2cf6dff6e90b0b97fcfa8ebc1
This commit is contained in:
Paulsu Su 2024-03-19 16:54:11 +00:00
parent 9d05a5de25
commit 2911f28144

View file

@ -71,6 +71,7 @@
"Values": [ "Values": [
"9999999", "9999999",
"1401000", "1401000",
"700000",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -212,32 +213,14 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "BigClusterPowerDownTargetResidency",
"Path": "/sys/devices/platform/cpupm/cpupm/cpd_cl2_target_residency",
"Values": [
"750000",
"10000"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "MidClusterPowerDownTargetResidency",
"Path": "/sys/devices/platform/cpupm/cpupm/cpd_cl1_target_residency",
"Values": [
"750000",
"10000"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "CPUUtilThreshold", "Name": "CPUUtilThreshold",
"Path": "/proc/vendor_sched/util_threshold", "Path": "/proc/vendor_sched/util_threshold",
"Values": [ "Values": [
"2048 1280 1280",
"1280", "1280",
"1100" "1100",
"1100 1024 1100"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -247,9 +230,10 @@
"Path": "/proc/vendor_sched/dvfs_headroom", "Path": "/proc/vendor_sched/dvfs_headroom",
"Values": [ "Values": [
"1280", "1280",
"1100" "1100",
"1280 1100 1055"
], ],
"DefaultIndex": 0, "DefaultIndex": 1,
"ResetOnInit": true "ResetOnInit": true
}, },
{ {
@ -282,6 +266,16 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "Dex2oatUClampMaxBoost",
"Path": "/proc/vendor_sched/groups/dex2oat/uclamp_max",
"Values": [
"-2",
"615"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "CAMUClampBoost", "Name": "CAMUClampBoost",
"Path": "/proc/vendor_sched/groups/cam/uclamp_min", "Path": "/proc/vendor_sched/groups/cam/uclamp_min",
@ -410,6 +404,33 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAPreferredIdleMaskHigh",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
"Values": [
"0xff",
"0x7f"
],
"ResetOnInit": true
},
{
"Name": "TAPreferredIdleMaskMid",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid",
"Values": [
"0xff",
"0x7f"
],
"ResetOnInit": true
},
{
"Name": "TAPreferredIdleMaskLow",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low",
"Values": [
"0xff",
"0x7f"
],
"ResetOnInit": true
},
{ {
"Name": "FGPreferIdle", "Name": "FGPreferIdle",
"Path": "/proc/vendor_sched/groups/fg/prefer_idle", "Path": "/proc/vendor_sched/groups/fg/prefer_idle",
@ -623,7 +644,8 @@
"Values": [ "Values": [
"default", "default",
"cam1", "cam1",
"cam2" "cam2",
"cam3"
], ],
"DefaultIndex": 0 "DefaultIndex": 0
}, },
@ -930,6 +952,18 @@
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskHigh",
"Duration": 5000,
"Value": "0xff"
},
{
"PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid",
"Duration": 5000,
"Value": "0xff"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGPreferIdle", "Node": "FGPreferIdle",
@ -966,6 +1000,24 @@
"Duration": 2000, "Duration": 2000,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "LAUNCH_EXTEND",
"Node": "CPUUClampMaxFilterEnable",
"Duration": 2000,
"Value": "0"
},
{
"PowerHint": "LAUNCH_EXTEND",
"Node": "BGUClampMaxBoost",
"Duration": 2000,
"Value": "512"
},
{
"PowerHint": "LAUNCH_EXTEND",
"Node": "Dex2oatUClampMaxBoost",
"Duration": 2000,
"Value": "615"
},
{ {
"PowerHint": "LAUNCH_EXTEND", "PowerHint": "LAUNCH_EXTEND",
"Node": "CPULittleClusterDownRateLimitUs", "Node": "CPULittleClusterDownRateLimitUs",
@ -1002,6 +1054,113 @@
"Duration": 3000, "Duration": 3000,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "ReducePreferIdle",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "DISPLAY_CHANGE_GPU",
"Node": "GPUDvfsPeriod",
"Duration": 1000,
"Value": "10"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Type": "DoHint",
"Value": "DISPLAY_CHANGE_GPU"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPUBigClusterMaxFreq",
"Duration": 5000,
"Value": "9999999"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPUMidClusterMaxFreq",
"Duration": 5000,
"Value": "9999999"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPULittleClusterMaxFreq",
"Duration": 5000,
"Value": "9999999"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "FGUClampBoost",
"Duration": 5000,
"Value": "159"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "MemFreq",
"Duration": 5000,
"Value": "9999999"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "DsuMinFreq",
"Duration": 5000,
"Value": "1800000"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "BCIMinFreq",
"Duration": 5000,
"Value": "1401000"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPUDVFSHeadroom",
"Duration": 5000,
"Value": "1280"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPUTaperedDVFSHeadroomEnable",
"Duration": 5000,
"Value": "0"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 5000,
"Value": "5000"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 5000,
"Value": "20000"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "CPUBigClusterDownRateLimitUs",
"Duration": 5000,
"Value": "20000"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "TAPreferIdle",
"Duration": 5000,
"Value": "1"
},
{
"PowerHint": "DISPLAY_CHANGE",
"Node": "FGPreferIdle",
"Duration": 5000,
"Value": "1"
},
{ {
"PowerHint": "CPU_LOAD_RESET", "PowerHint": "CPU_LOAD_RESET",
"Node": "GPUPowerOn", "Node": "GPUPowerOn",
@ -1055,18 +1214,6 @@
"Type": "EndHint", "Type": "EndHint",
"Value": "DISPLAY_UPDATE_IMMINENT" "Value": "DISPLAY_UPDATE_IMMINENT"
}, },
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "BigClusterPowerDownTargetResidency",
"Duration": 0,
"Value": "10000"
},
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "MidClusterPowerDownTargetResidency",
"Duration": 0,
"Value": "10000"
},
{ {
"PowerHint": "DISPLAY_INACTIVE", "PowerHint": "DISPLAY_INACTIVE",
"Node": "TAPreferIdle", "Node": "TAPreferIdle",
@ -1705,13 +1852,13 @@
}, },
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUUtilThreshold", "Node": "CPUDVFSHeadroom",
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUDVFSHeadroom", "Node": "CPUUtilThreshold",
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
@ -1743,7 +1890,7 @@
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "TAPreferHighCap", "Node": "TAPreferHighCap",
"Duration": 0, "Duration": 0,
"Value": "1" "Value": "0"
}, },
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
@ -1781,6 +1928,12 @@
"Duration": 0, "Duration": 0,
"Value": "camera" "Value": "camera"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "BCIMinFreq",
"Duration": 0,
"Value": "700000"
},
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",
@ -1851,13 +2004,25 @@
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "EM_Profile", "Node": "EM_Profile",
"Duration": 0, "Duration": 0,
"Value": "cam1" "Value": "cam2"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUUtilThreshold",
"Duration": 0,
"Value": "1100 1024 1100"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1280 1100 1055"
}, },
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CDPreferHighCap", "Node": "CDPreferHighCap",
"Duration": 0, "Duration": 0,
"Value": "1" "Value": "0"
}, },
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
@ -1869,7 +2034,7 @@
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "TAPreferHighCap", "Node": "TAPreferHighCap",
"Duration": 0, "Duration": 0,
"Value": "1" "Value": "0"
}, },
{ {
"PowerHint": "CAMERA_STREAMING_STANDARD", "PowerHint": "CAMERA_STREAMING_STANDARD",
@ -1913,12 +2078,24 @@
"Duration": 0, "Duration": 0,
"Value": "camera" "Value": "camera"
}, },
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1280"
},
{ {
"PowerHint": "CAMERA_STREAMING_LOW", "PowerHint": "CAMERA_STREAMING_LOW",
"Node": "PowerHALCameraRunning", "Node": "PowerHALCameraRunning",
"Duration": 0, "Duration": 0,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPUUtilThreshold",
"Duration": 0,
"Value": "1280"
},
{ {
"PowerHint": "CAMERA_STREAMING_LOW", "PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CDPreferHighCap", "Node": "CDPreferHighCap",
@ -2089,13 +2266,13 @@
}, },
{ {
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "CPUUtilThreshold", "Node": "CPUDVFSHeadroom",
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{ {
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "CPUDVFSHeadroom", "Node": "CPUUtilThreshold",
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
@ -2436,12 +2613,6 @@
"Duration": 0, "Duration": 0,
"Value": "game" "Value": "game"
}, },
{
"PowerHint": "GAME",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1100"
},
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "CPUTaperedDVFSHeadroomEnable", "Node": "CPUTaperedDVFSHeadroomEnable",
@ -2808,7 +2979,7 @@
"Name": "REFRESH_120FPS", "Name": "REFRESH_120FPS",
"PID_On": true, "PID_On": true,
"PID_Po": 2.0, "PID_Po": 2.0,
"PID_Pu": 1.0, "PID_Pu": 0.6,
"PID_I": 0.0, "PID_I": 0.0,
"PID_I_Init": 200, "PID_I_Init": 200,
"PID_I_High": 512, "PID_I_High": 512,
@ -2949,4 +3120,4 @@
"StaleTimeFactor": 5.0 "StaleTimeFactor": 5.0
} }
] ]
} }