powerhint: Enable auto migration margins/dvfs headroom by default

And reduce DownRateLimitUs to 500us as the system should be more
reactive now when something needs to rampup quickly.

Enable pertask iowait boost too as with auto dvfs headroom enabled all
tasks will start form 0 util_avg and this could impact iowait tasks
without this being enabled to help them migrate up to bigger cores.

Camera use cases should still use their own default DownRateLimitUs and
disable this feature to keep their dvfs_headroom tuning intact.

Bug: 392622882
Flag: EXEMPT powerhints are not compatible with flagging
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Iaf81e74c9c3b0e4a57b1708981ad878810189b20
This commit is contained in:
Qais Yousef 2025-01-28 15:51:46 +00:00
parent a0f795582b
commit 690039f44d

View file

@ -111,7 +111,17 @@
"2000",
"500"
],
"DefaultIndex": 0,
"DefaultIndex": 2,
"ResetOnInit": true
},
{
"Name": "CPULittleClusterResponseTimeMs",
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/response_time_ms",
"Values": [
"9",
"13"
],
"DefaultIndex": 1,
"ResetOnInit": true
},
{
@ -151,7 +161,17 @@
"2000",
"500"
],
"DefaultIndex": 0,
"DefaultIndex": 3,
"ResetOnInit": true
},
{
"Name": "CPUMidClusterResponseTimeMs",
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/response_time_ms",
"Values": [
"52",
"56"
],
"DefaultIndex": 1,
"ResetOnInit": true
},
{
@ -191,7 +211,17 @@
"2000",
"500"
],
"DefaultIndex": 0,
"DefaultIndex": 3,
"ResetOnInit": true
},
{
"Name": "CPUBigClusterResponseTimeMs",
"Path": "/sys/devices/system/cpu/cpu8/cpufreq/sched_pixel/response_time_ms",
"Values": [
"178",
"180"
],
"DefaultIndex": 1,
"ResetOnInit": true
},
{
@ -274,6 +304,70 @@
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "AutoMigrationMarginsEnable",
"Path": "/proc/vendor_sched/auto_migration_margins_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 1,
"ResetOnInit": true
},
{
"Name": "AutoDvfsHeadroomEnable",
"Path": "/proc/vendor_sched/auto_dvfs_headroom_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 1,
"ResetOnInit": true
},
{
"Name": "TARampupMultiplier",
"Path": "/proc/vendor_sched/groups/ta/rampup_multiplier",
"Values": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"DefaultIndex": 1,
"ResetOnInit": true
},
{
"Name": "AdpfRampupMultiplier",
"Path": "/proc/vendor_sched/adpf_rampup_multiplier",
"Values": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"DefaultIndex": 4,
"ResetOnInit": true
},
{
"Name": "PerTaskMaxIowaitBoost",
"Path": "/proc/vendor_sched/per_task_iowait_boost_max_value",
"Values": [
"0",
"512"
],
"DefaultIndex": 1,
"ResetOnInit": true
},
{
"Name": "CPUUClampMaxFilterEnable",
"Path": "/proc/vendor_sched/uclamp_max_filter_enable",
@ -1127,6 +1221,12 @@
"Duration": 5000,
"Value": "1"
},
{
"PowerHint": "LAUNCH",
"Node": "TARampupMultiplier",
"Duration": 5000,
"Value": "4"
},
{
"PowerHint": "LAUNCH_EXTEND",
"Node": "CPUSkipMask",
@ -1230,6 +1330,12 @@
"Duration": 2000,
"Value": "0"
},
{
"PowerHint": "LAUNCH_EXTEND",
"Node": "TARampupMultiplier",
"Duration": 2000,
"Value": "4"
},
{
"PowerHint": "LAUNCH_PMU",
"Node": "PMU_POLL",
@ -1395,6 +1501,12 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_INACTIVE",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_LAUNCH",
"Node": "CPUSkipMask",
@ -1815,6 +1927,42 @@
"Duration": 0,
"Value": "cam2"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "AutoMigrationMarginsEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "AutoDvfsHeadroomEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "CPUDVFSHeadroom",
@ -1983,6 +2131,42 @@
"Duration": 0,
"Value": "cam2"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "AutoMigrationMarginsEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "AutoDvfsHeadroomEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUUtilThreshold",
@ -2175,6 +2359,42 @@
"Duration": 0,
"Value": "cam1"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "AutoMigrationMarginsEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "AutoDvfsHeadroomEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUUtilThreshold",
@ -2265,6 +2485,42 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "AutoMigrationMarginsEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "AutoDvfsHeadroomEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "CPUDVFSHeadroom",
@ -2475,6 +2731,24 @@
"Duration": 0,
"Value": "1100"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "AutoMigrationMarginsEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "AutoDvfsHeadroomEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_VIDEO_CALL",
"Node": "CPUDVFSHeadroom",
@ -2770,6 +3044,36 @@
"Value":"CPU_LOAD_RESET",
"EnableProperty": "vendor.powerhal.mode.aa"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "TARampupMultiplier",
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "AdpfRampupMultiplier",
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "CPULittleClusterResponseTimeMs",
"Duration": 0,
"Value": "13"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "CPUMidClusterResponseTimeMs",
"Duration": 0,
"Value": "56"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "CPUBigClusterResponseTimeMs",
"Duration": 0,
"Value": "180"
},
{
"PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2872,6 +3176,54 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "GAME",
"Node": "AutoMigrationMarginsEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "GAME",
"Node": "AutoDvfsHeadroomEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "GAME",
"Node": "TARampupMultiplier",
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "GAME",
"Node": "AdpfRampupMultiplier",
"Duration": 0,
"Value": "2"
},
{
"PowerHint": "GAME",
"Node": "CPULittleClusterResponseTimeMs",
"Duration": 0,
"Value": "9"
},
{
"PowerHint": "GAME",
"Node": "CPUMidClusterResponseTimeMs",
"Duration": 0,
"Value": "52"
},
{
"PowerHint": "GAME",
"Node": "CPUBigClusterResponseTimeMs",
"Duration": 0,
"Value": "178"
},
{
"PowerHint": "GAME",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT",
"Node": "PMU_POLL",
@ -3058,6 +3410,42 @@
"Duration": 2000,
"Value": "44"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "AutoMigrationMarginsEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "AutoDvfsHeadroomEnable",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "PerTaskMaxIowaitBoost",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "CPULittleClusterDownRateLimitUs",
"Duration": 0,
"Value": "5000"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0,
"Value": "20000"
},
{
"PowerHint": "CAMERA_PROJECT11",
"Node": "PowerHALCameraRunning",