powerhint: Enable auto migration margins/dvfs headroom for game mode

Since the system is more reactive now when tasks are getting busier, set
DownRateLimitUs to 500us to avoid increasing power.

Also enable pertask iowait boost as util_avg will always start from
0 for forked tasks and this could impact io tasks that need additional
help to ensure to migrate to bigger core if they need more perf.

Bug: 339664411
Test: PTE A/B test
Flag: NONE powerhint change does not support flags
Signed-off-by: Qais Yousef <qyousef@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c09bc9d8b58cc4f9bba136a1dc97b5c0b7751dce)
Merged-In: Iecbbaccc81297ee0f66f8c45299846f2415ee29c
Change-Id: Iecbbaccc81297ee0f66f8c45299846f2415ee29c
This commit is contained in:
Qais Yousef 2024-04-18 14:19:02 +00:00 committed by Yvonne Yip
parent 0de9ecec3a
commit 176560b44a
3 changed files with 15 additions and 15 deletions

View file

@ -3116,13 +3116,13 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "CPUMidClusterDownRateLimitUs", "Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0, "Duration": 0,
"Value": "3000" "Value": "500"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "CPUBigClusterDownRateLimitUs", "Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0, "Duration": 0,
"Value": "3000" "Value": "500"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
@ -3152,13 +3152,13 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "AutoMigrationMarginsEnable", "Node": "AutoMigrationMarginsEnable",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "1"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "AutoDvfsHeadroomEnable", "Node": "AutoDvfsHeadroomEnable",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "1"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
@ -3176,7 +3176,7 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "PerTaskMaxIowaitBoost", "Node": "PerTaskMaxIowaitBoost",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "512"
}, },
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",

View file

@ -3116,13 +3116,13 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "CPUMidClusterDownRateLimitUs", "Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0, "Duration": 0,
"Value": "3000" "Value": "500"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "CPUBigClusterDownRateLimitUs", "Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0, "Duration": 0,
"Value": "3000" "Value": "500"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
@ -3152,13 +3152,13 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "AutoMigrationMarginsEnable", "Node": "AutoMigrationMarginsEnable",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "1"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "AutoDvfsHeadroomEnable", "Node": "AutoDvfsHeadroomEnable",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "1"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
@ -3176,7 +3176,7 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "PerTaskMaxIowaitBoost", "Node": "PerTaskMaxIowaitBoost",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "512"
}, },
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",

View file

@ -3116,13 +3116,13 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "CPUMidClusterDownRateLimitUs", "Node": "CPUMidClusterDownRateLimitUs",
"Duration": 0, "Duration": 0,
"Value": "3000" "Value": "500"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "CPUBigClusterDownRateLimitUs", "Node": "CPUBigClusterDownRateLimitUs",
"Duration": 0, "Duration": 0,
"Value": "3000" "Value": "500"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
@ -3152,13 +3152,13 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "AutoMigrationMarginsEnable", "Node": "AutoMigrationMarginsEnable",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "1"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "AutoDvfsHeadroomEnable", "Node": "AutoDvfsHeadroomEnable",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "1"
}, },
{ {
"PowerHint": "GAME", "PowerHint": "GAME",
@ -3176,7 +3176,7 @@
"PowerHint": "GAME", "PowerHint": "GAME",
"Node": "PerTaskMaxIowaitBoost", "Node": "PerTaskMaxIowaitBoost",
"Duration": 0, "Duration": 0,
"Value": "0" "Value": "512"
}, },
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",