From b804969d8faa70065f9ed4a5ba841a607cbedb3b Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Mon, 17 Jun 2024 16:36:15 -0700 Subject: [PATCH] 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: 315748906 Test: build Flag: NONE powerhint change does not support flags (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bb4df08c9ea617625d25cf12bc60c41c173d996b) Merged-In: Ibd08cec303010e87057463f5aff737a5105e04b6 Change-Id: Ibd08cec303010e87057463f5aff737a5105e04b6 --- powerhint-comet.json | 162 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/powerhint-comet.json b/powerhint-comet.json index c1fc0ae..cf435b8 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -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", @@ -1936,6 +1990,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", @@ -2092,6 +2158,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", @@ -2272,6 +2350,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", @@ -2368,6 +2458,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", @@ -2584,6 +2686,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", @@ -2873,6 +2987,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", @@ -3101,6 +3227,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", @@ -3197,6 +3347,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",