From 0ee09b6dff09831e173b3e84905ba083c5771a5a Mon Sep 17 00:00:00 2001 From: pointerkung Date: Wed, 8 Feb 2023 14:33:46 +0800 Subject: [PATCH] Camera powerhint update Sync PMU and EM_Profile tuning changes (ag/20028064, ag/20075269 and ag/20084677) for 30fps power and performance optimization. Bug: 265749383 Test: Build pass, GCA Change-Id: Id45edbf77de1435559cb1171e56bee9c5a2e80b7 Merged-In: Id45edbf77de1435559cb1171e56bee9c5a2e80b7 --- powerhint.json | 149 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) diff --git a/powerhint.json b/powerhint.json index 9fb5732..6e03fdb 100644 --- a/powerhint.json +++ b/powerhint.json @@ -489,6 +489,78 @@ ], "DefaultIndex": 0 }, + { + "Name": "EM_Profile", + "Path": "/sys/kernel/pixel_em/active_profile", + "Values": [ + "default", + "cam1" + ], + "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_MID_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "6", + "3" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_MID_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "65", + "50" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_LIMIT_FREQ", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/limit_frequency", + "Values": [ + "2507000", + "1826000" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_LCPI_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/lcpi_threshold", + "Values": [ + "5", + "3" + ], + "DefaultIndex": 0 + }, + { + "Name": "PMU_BIG_SPC_THRESHOLD", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/spc_threshold", + "Values": [ + "69", + "50" + ], + "DefaultIndex": 0 + }, { "Name": "Dex2oatThreads", "Path": "vendor.powerhal.dalvik.vm.dex2oat-threads", @@ -591,6 +663,11 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "LAUNCH", + "Type": "DoHint", + "Value": "LAUNCH_PMU" + }, { "PowerHint": "LAUNCH", "Type": "DoHint", @@ -638,6 +715,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "LAUNCH_PMU", + "Node": "PMU_POLL", + "Duration": 3000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -692,6 +775,12 @@ "Duration": 1000, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "PMU_POLL", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "CDCpuset", @@ -722,6 +811,12 @@ "Duration": 2000, "Value": "0" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "PMU_POLL", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_SHOT", "Node": "MemFreq", @@ -1004,6 +1099,60 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_LIT_LCPI_THRESHOLD", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_LIT_SPC_THRESHOLD", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_MID_LCPI_THRESHOLD", + "Duration": 0, + "Value": "3" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_MID_SPC_THRESHOLD", + "Duration": 0, + "Value": "50" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_BIG_LIMIT_FREQ", + "Duration": 0, + "Value": "1826000" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_BIG_LCPI_THRESHOLD", + "Duration": 0, + "Value": "3" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_BIG_SPC_THRESHOLD", + "Duration": 0, + "Value": "50" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "PMU_POLL", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "EM_Profile", + "Duration": 0, + "Value": "cam1" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap",