From ea96611d826a353aa98e4e358259a976c9286311 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 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 9d59d12..a01790f 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" ], @@ -2281,6 +2283,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 305c41b..0558959 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 }, @@ -2092,6 +2097,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 79d3679..1f47f00 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" ], @@ -2157,6 +2159,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",