From 71c09f7978f103eefe1183724c0678d0cf8262ed Mon Sep 17 00:00:00 2001 From: paulsu Date: Thu, 20 Jul 2023 09:14:31 +0000 Subject: [PATCH] F10 camera pmu tuning with on 60fps case P22 pmu settings caused power and frame drop regression. This patch lower the little frequency limit and lower the pmu threshold. And see lower power and no frame drop regression. Bug: 262354426 Test: Camera team power and performance test, full result can be found in b/262354426#comment43 Change-Id: I5300b8f87565e3478ee1c97441d282e268935147 Signed-off-by: paulsu --- powerhint.json | 166 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 148 insertions(+), 18 deletions(-) diff --git a/powerhint.json b/powerhint.json index d68ff49..5c74ac1 100644 --- a/powerhint.json +++ b/powerhint.json @@ -560,6 +560,94 @@ ], "DefaultIndex": 0 }, + { + "Name": "PMU_LIT_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "2", + "0" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_LIT_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "70", + "0" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_LIT_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "1401000", + "1328000" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_MID_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "6", + "3", + "0" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_MID_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "65", + "50", + "20", + "0" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_MID_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "1836000", + "1491000" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "2507000", + "1826000", + "1582000" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "5", + "3", + "0" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "69", + "50", + "20", + "0" + ], + "DefaultIndex": 0 + }, { "Name": "Dex2oatThreads", "Path": "vendor.powerhal.dalvik.vm.dex2oat-threads", @@ -1179,6 +1267,66 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_POLL", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_LIT_LCPI_THRESHOLD", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_LIT_SPC_THRESHOLD", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_LIT_LIMIT_FREQ", + "Duration": 0, + "Value": "1328000" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_LCPI_THRESHOLD", + "Duration": 0, + "Value": "3" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_SPC_THRESHOLD", + "Duration": 0, + "Value": "20" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_MID_LIMIT_FREQ", + "Duration": 0, + "Value": "1491000" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_BIG_LIMIT_FREQ", + "Duration": 0, + "Value": "1582000" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_BIG_LCPI_THRESHOLD", + "Duration": 0, + "Value": "3" + }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "PMU_BIG_SPC_THRESHOLD", + "Duration": 0, + "Value": "20" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PowerHALCameraRunning", @@ -1197,30 +1345,12 @@ "Duration": 0, "Value": "1100 1078 1024" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CPUMidClusterMaxFreq", - "Duration": 0, - "Value": "1491000" - }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CPUBigClusterMaxFreq", - "Duration": 0, - "Value": "1826000" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDPreferHighCap", "Duration": 0, "Value": "1" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CPULittleClusterMaxFreq", - "Duration": 0, - "Value": "1401000" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq",