From 7bdaed53cd09a8154c4f4468c423c84e7ba054fe Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Mon, 7 Aug 2023 13:07:41 -0700 Subject: [PATCH] powerhint: game mode tuning Test: Load powerhint file on device and verify tuned parameters are default. Start Subway Surfers game and verify tuned parameters are expected tuned values. Switch away from game, and quit the game, and verify tuned parameters return to default. Bug: 294612493 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d6232635d108e587e1abfc48c13636052b1ea344) Merged-In: Ibc0ba8fb1a9f2714d9509cecaa30c227aa4f8b69 Change-Id: Ibc0ba8fb1a9f2714d9509cecaa30c227aa4f8b69 --- perf/powerhint-husky.json | 32 ++++++++++++++++++++++++++ perf/powerhint-ripcurrent.json | 41 +++++++++++++++++++++++++++++++--- perf/powerhint-shiba.json | 32 ++++++++++++++++++++++++++ 3 files changed, 102 insertions(+), 3 deletions(-) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index cd99ba1..8bc44d8 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -150,6 +150,7 @@ "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us", "Values": [ "20000", + "3000", "2000", "500" ], @@ -195,6 +196,7 @@ "Path": "/sys/devices/system/cpu/cpu8/cpufreq/sched_pixel/down_rate_limit_us", "Values": [ "20000", + "3000", "2000", "500" ], @@ -2389,6 +2391,36 @@ "Duration": 0, "Value": "game" }, + { + "PowerHint": "GAME", + "Node": "CPUDVFSHeadroom", + "Duration": 0, + "Value": "1100" + }, + { + "PowerHint": "GAME", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "GAME", + "Node": "CPULittleClusterDownRateLimitUs", + "Duration": 0, + "Value": "500" + }, + { + "PowerHint": "GAME", + "Node": "CPUMidClusterDownRateLimitUs", + "Duration": 0, + "Value": "3000" + }, + { + "PowerHint": "GAME", + "Node": "CPUBigClusterDownRateLimitUs", + "Duration": 0, + "Value": "3000" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "Node": "PMU_POLL", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index 8227454..1e97a44 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -105,8 +105,9 @@ "Name": "CPULittleClusterDownRateLimitUs", "Path": "/sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/down_rate_limit_us", "Values": [ + "5000", "2000", - "5000" + "500" ], "ResetOnInit": true }, @@ -142,8 +143,10 @@ "Name": "CPUMidClusterDownRateLimitUs", "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us", "Values": [ + "20000", + "3000", "2000", - "20000" + "500" ], "ResetOnInit": true }, @@ -179,8 +182,10 @@ "Name": "CPUBigClusterDownRateLimitUs", "Path": "/sys/devices/system/cpu/cpu8/cpufreq/sched_pixel/down_rate_limit_us", "Values": [ + "20000", + "3000", "2000", - "20000" + "500" ], "ResetOnInit": true }, @@ -2104,6 +2109,36 @@ "Duration": 0, "Value": "419000" }, + { + "PowerHint": "GAME", + "Node": "CPUDVFSHeadroom", + "Duration": 0, + "Value": "1100" + }, + { + "PowerHint": "GAME", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "GAME", + "Node": "CPULittleClusterDownRateLimitUs", + "Duration": 0, + "Value": "500" + }, + { + "PowerHint": "GAME", + "Node": "CPUMidClusterDownRateLimitUs", + "Duration": 0, + "Value": "3000" + }, + { + "PowerHint": "GAME", + "Node": "CPUBigClusterDownRateLimitUs", + "Duration": 0, + "Value": "3000" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "Node": "PMU_POLL", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index 12c341a..d754ab4 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -146,6 +146,7 @@ "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us", "Values": [ "20000", + "3000", "2000", "500" ], @@ -185,6 +186,7 @@ "Path": "/sys/devices/system/cpu/cpu8/cpufreq/sched_pixel/down_rate_limit_us", "Values": [ "20000", + "3000", "2000", "500" ], @@ -2281,6 +2283,36 @@ "Duration": 0, "Value": "419000" }, + { + "PowerHint": "GAME", + "Node": "CPUDVFSHeadroom", + "Duration": 0, + "Value": "1100" + }, + { + "PowerHint": "GAME", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "GAME", + "Node": "CPULittleClusterDownRateLimitUs", + "Duration": 0, + "Value": "500" + }, + { + "PowerHint": "GAME", + "Node": "CPUMidClusterDownRateLimitUs", + "Duration": 0, + "Value": "3000" + }, + { + "PowerHint": "GAME", + "Node": "CPUBigClusterDownRateLimitUs", + "Duration": 0, + "Value": "3000" + }, { "PowerHint": "GAME", "Node": "VIRTUAL-SKIN-CPU-MID",