From 6f228f059d2a1fc64425da55aa3388addfec4b5d Mon Sep 17 00:00:00 2001 From: lukechang Date: Tue, 16 May 2023 09:42:33 +0000 Subject: [PATCH] powerhint: shorter cpd cl2 target_residency Shorter cpd cl2 target residency to 10ms when receiving DISPLAY_INACTIVE hint. Test: manual - check cpd cl2 target_residency file node when screen on and off Bug: 277390134 Change-Id: I15a7b24583db4423ccdbae05d9b857687bae7b78 Signed-off-by: lukechang --- perf/powerhint-husky.json | 16 ++++++++++++++++ perf/powerhint-ripcurrent.json | 16 ++++++++++++++++ perf/powerhint-shiba.json | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index 26ad93d..58289f5 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -167,6 +167,16 @@ ], "ResetOnInit": true }, + { + "Name": "BigClusterPowerDownTargetResidency", + "Path": "/sys/devices/platform/cpupm/cpupm/cpd_cl2_target_residency", + "Values": [ + "750000", + "10000" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -803,6 +813,12 @@ "Duration": 33, "Value": "820000" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "BigClusterPowerDownTargetResidency", + "Duration": 0, + "Value": "10000" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index 122b0bf..a5296e5 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -157,6 +157,16 @@ ], "ResetOnInit": true }, + { + "Name": "BigClusterPowerDownTargetResidency", + "Path": "/sys/devices/platform/cpupm/cpupm/cpd_cl2_target_residency", + "Values": [ + "750000", + "10000" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -793,6 +803,12 @@ "Duration": 33, "Value": "9999999" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "BigClusterPowerDownTargetResidency", + "Duration": 0, + "Value": "10000" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index 3d8003d..91eeb1a 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -157,6 +157,16 @@ ], "ResetOnInit": true }, + { + "Name": "BigClusterPowerDownTargetResidency", + "Path": "/sys/devices/platform/cpupm/cpupm/cpd_cl2_target_residency", + "Values": [ + "750000", + "10000" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -793,6 +803,12 @@ "Duration": 33, "Value": "9999999" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "BigClusterPowerDownTargetResidency", + "Duration": 0, + "Value": "10000" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq",