powerhint: Add nodes required to enable auto migration margins/dvfs headroom

Everything should be disabled by default.

Make sure camera and game explicitly disable them by default too.

Ensure the feature is disable when screen is idle.

Bug: 339664411
Test: PTE A/B test
Flag: NONE no behavior change
Signed-off-by: Yvonne Yip <ykyyip@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a4523a214541f2cd3a079c010790c372b8058f31)
Merged-In: I3dd2bfe1824af489cd1ccc3a69557c180bf33ddf
Change-Id: I3dd2bfe1824af489cd1ccc3a69557c180bf33ddf
This commit is contained in:
Yvonne Yip 2024-04-16 16:31:28 -07:00
parent d92ae25af8
commit eb1267c4d3
3 changed files with 486 additions and 0 deletions

View file

@ -205,6 +205,60 @@
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "AutoMigrationMarginsEnable",
"Path": "/proc/vendor_sched/auto_migration_margins_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "AutoDvfsHeadroomEnable",
"Path": "/proc/vendor_sched/auto_dvfs_headroom_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 0,
"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": 2,
"ResetOnInit": true
},
{
"Name": "CPUUClampMaxFilterEnable",
"Path": "/proc/vendor_sched/uclamp_max_filter_enable",
@ -1811,6 +1865,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -1967,6 +2033,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -2147,6 +2225,18 @@
"Duration": 0,
"Value": "1100 1024 1100"
},
{
"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": "CPULittleClusterDownRateLimitUs",
@ -2243,6 +2333,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -2459,6 +2561,18 @@
"Duration": 0,
"Value": "0-6"
},
{
"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": "CPUDVFSHeadroom",
@ -2748,6 +2862,18 @@
"Type": "EndHint",
"Value": "DISPLAY_UPDATE_IMMINENT"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "TARampupMultiplier",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "AdpfRampupMultiplier",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2976,6 +3102,30 @@
"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": "FACE_UNLOCK_BOOST",
"Node": "CPUMidClusterMaxFreq",
@ -3054,6 +3204,18 @@
"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": "CPULittleClusterDownRateLimitUs",

View file

@ -205,6 +205,60 @@
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "AutoMigrationMarginsEnable",
"Path": "/proc/vendor_sched/auto_migration_margins_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "AutoDvfsHeadroomEnable",
"Path": "/proc/vendor_sched/auto_dvfs_headroom_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 0,
"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": 2,
"ResetOnInit": true
},
{
"Name": "CPUUClampMaxFilterEnable",
"Path": "/proc/vendor_sched/uclamp_max_filter_enable",
@ -1811,6 +1865,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -1967,6 +2033,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -2147,6 +2225,18 @@
"Duration": 0,
"Value": "1100 1024 1100"
},
{
"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": "CPULittleClusterDownRateLimitUs",
@ -2243,6 +2333,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -2459,6 +2561,18 @@
"Duration": 0,
"Value": "0-6"
},
{
"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": "CPUDVFSHeadroom",
@ -2748,6 +2862,18 @@
"Type": "EndHint",
"Value": "DISPLAY_UPDATE_IMMINENT"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "TARampupMultiplier",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "AdpfRampupMultiplier",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2976,6 +3102,30 @@
"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": "FACE_UNLOCK_BOOST",
"Node": "CPUMidClusterMaxFreq",
@ -3054,6 +3204,18 @@
"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": "CPULittleClusterDownRateLimitUs",

View file

@ -205,6 +205,60 @@
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "AutoMigrationMarginsEnable",
"Path": "/proc/vendor_sched/auto_migration_margins_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "AutoDvfsHeadroomEnable",
"Path": "/proc/vendor_sched/auto_dvfs_headroom_enable",
"Values": [
"0",
"1"
],
"DefaultIndex": 0,
"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": 2,
"ResetOnInit": true
},
{
"Name": "CPUUClampMaxFilterEnable",
"Path": "/proc/vendor_sched/uclamp_max_filter_enable",
@ -1811,6 +1865,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -1967,6 +2033,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -2147,6 +2225,18 @@
"Duration": 0,
"Value": "1100 1024 1100"
},
{
"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": "CPULittleClusterDownRateLimitUs",
@ -2243,6 +2333,18 @@
"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": "CPULittleClusterDownRateLimitUs",
@ -2459,6 +2561,18 @@
"Duration": 0,
"Value": "0-6"
},
{
"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": "CPUDVFSHeadroom",
@ -2748,6 +2862,18 @@
"Type": "EndHint",
"Value": "DISPLAY_UPDATE_IMMINENT"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "TARampupMultiplier",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_IDLE",
"Node": "AdpfRampupMultiplier",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "CPULittleClusterDownRateLimitUs",
@ -2976,6 +3102,30 @@
"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": "FACE_UNLOCK_BOOST",
"Node": "CPUMidClusterMaxFreq",
@ -3054,6 +3204,18 @@
"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": "CPULittleClusterDownRateLimitUs",