From eae05d470c80731ac5ca9f8be2fdf3fd9ab6a37a Mon Sep 17 00:00:00 2001 From: Adithya R Date: Wed, 21 Aug 2024 20:16:00 +0530 Subject: [PATCH] sm6375-common: powerhint: Set screen-off schedutil ratelimits Use a more power-friendly rate limit configuration (2ms up/down) to reduce power consumption a bit when the screen is off. Power results during screen off GPS usage, measured by Alex Naidis on SDM845: Before: 392mW 93.5mA After: 378.5mW 90.2mA Co-authored-by: Alex Naidis Change-Id: I1ec50702847a196e2f9366f71b3a5b9465c9a596 Signed-off-by: Adithya R --- configs/powerhint.json | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 03a297e..1f08d39 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -26,6 +26,24 @@ "DefaultIndex": 5, "ResetOnInit": true }, + { + "Name": "CPULittleClusterUpRateLimit", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us", + "Values": [ + "500", + "2000" + ], + "ResetOnInit": true + }, + { + "Name": "CPULittleClusterDownRateLimit", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us", + "Values": [ + "20000", + "2000" + ], + "ResetOnInit": true + }, { "Name": "CPUBigClusterMaxFreq", "Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq", @@ -49,6 +67,24 @@ ], "ResetOnInit": true }, + { + "Name": "CPUBigClusterUpRateLimit", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/schedutil/up_rate_limit_us", + "Values": [ + "500", + "2000" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBigClusterDownRateLimit", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/schedutil/down_rate_limit_us", + "Values": [ + "20000", + "2000" + ], + "ResetOnInit": true + }, { "Name": "UclampTAMin", "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", @@ -446,6 +482,30 @@ "Duration": 0, "Value": "7980" }, + { + "PowerHint": "INTERACTIVE", + "Node": "CPULittleClusterUpRateLimit", + "Duration": 0, + "Value": "500" + }, + { + "PowerHint": "INTERACTIVE", + "Node": "CPULittleClusterDownRateLimit", + "Duration": 0, + "Value": "20000" + }, + { + "PowerHint": "INTERACTIVE", + "Node": "CPUBigClusterUpRateLimit", + "Duration": 0, + "Value": "500" + }, + { + "PowerHint": "INTERACTIVE", + "Node": "CPUBigClusterDownRateLimit", + "Duration": 0, + "Value": "20000" + }, { "PowerHint": "INTERACTIVE", "Node": "SchedBusyHystNs",