From 176560b44a6fd85854eda7ec58aa83e8472b1d85 Mon Sep 17 00:00:00 2001 From: Qais Yousef Date: Thu, 18 Apr 2024 14:19:02 +0000 Subject: [PATCH] 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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c09bc9d8b58cc4f9bba136a1dc97b5c0b7751dce) Merged-In: Iecbbaccc81297ee0f66f8c45299846f2415ee29c Change-Id: Iecbbaccc81297ee0f66f8c45299846f2415ee29c --- perf/powerhint-caiman.json | 10 +++++----- perf/powerhint-komodo.json | 10 +++++----- perf/powerhint-tokay.json | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index 71d5573f..a73230db 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -3116,13 +3116,13 @@ "PowerHint": "GAME", "Node": "CPUMidClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", "Node": "CPUBigClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", @@ -3152,13 +3152,13 @@ "PowerHint": "GAME", "Node": "AutoMigrationMarginsEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", "Node": "AutoDvfsHeadroomEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", @@ -3176,7 +3176,7 @@ "PowerHint": "GAME", "Node": "PerTaskMaxIowaitBoost", "Duration": 0, - "Value": "0" + "Value": "512" }, { "PowerHint": "FACE_UNLOCK_BOOST", diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index 1a4f6962..539a15e8 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -3116,13 +3116,13 @@ "PowerHint": "GAME", "Node": "CPUMidClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", "Node": "CPUBigClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", @@ -3152,13 +3152,13 @@ "PowerHint": "GAME", "Node": "AutoMigrationMarginsEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", "Node": "AutoDvfsHeadroomEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", @@ -3176,7 +3176,7 @@ "PowerHint": "GAME", "Node": "PerTaskMaxIowaitBoost", "Duration": 0, - "Value": "0" + "Value": "512" }, { "PowerHint": "FACE_UNLOCK_BOOST", diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index 71d5573f..a73230db 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -3116,13 +3116,13 @@ "PowerHint": "GAME", "Node": "CPUMidClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", "Node": "CPUBigClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", @@ -3152,13 +3152,13 @@ "PowerHint": "GAME", "Node": "AutoMigrationMarginsEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", "Node": "AutoDvfsHeadroomEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", @@ -3176,7 +3176,7 @@ "PowerHint": "GAME", "Node": "PerTaskMaxIowaitBoost", "Duration": 0, - "Value": "0" + "Value": "512" }, { "PowerHint": "FACE_UNLOCK_BOOST",