From 9a45617aa6ba0682b5aa647673bf5bb312d1e72b 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: 315748906 Signed-off-by: Qais Yousef (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3ca16bc3058846e71b1960aeff4c151b6b2cb634) 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 1913c798..1f179268 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -3123,13 +3123,13 @@ "PowerHint": "GAME", "Node": "CPUMidClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", "Node": "CPUBigClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", @@ -3159,13 +3159,13 @@ "PowerHint": "GAME", "Node": "AutoMigrationMarginsEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", "Node": "AutoDvfsHeadroomEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", @@ -3183,7 +3183,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 4e4e4c51..6d793057 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -3123,13 +3123,13 @@ "PowerHint": "GAME", "Node": "CPUMidClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", "Node": "CPUBigClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", @@ -3159,13 +3159,13 @@ "PowerHint": "GAME", "Node": "AutoMigrationMarginsEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", "Node": "AutoDvfsHeadroomEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", @@ -3183,7 +3183,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 1913c798..1f179268 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -3123,13 +3123,13 @@ "PowerHint": "GAME", "Node": "CPUMidClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", "Node": "CPUBigClusterDownRateLimitUs", "Duration": 0, - "Value": "3000" + "Value": "500" }, { "PowerHint": "GAME", @@ -3159,13 +3159,13 @@ "PowerHint": "GAME", "Node": "AutoMigrationMarginsEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", "Node": "AutoDvfsHeadroomEnable", "Duration": 0, - "Value": "0" + "Value": "1" }, { "PowerHint": "GAME", @@ -3183,7 +3183,7 @@ "PowerHint": "GAME", "Node": "PerTaskMaxIowaitBoost", "Duration": 0, - "Value": "0" + "Value": "512" }, { "PowerHint": "FACE_UNLOCK_BOOST",