From 0828455566a71d275ba5f2ba15b50bc8b521366c Mon Sep 17 00:00:00 2001 From: Pointer Kung Date: Tue, 26 Mar 2024 06:15:02 +0000 Subject: [PATCH] Powerhint: Enable big core reduction feature and CDPreferIdle, limit CPUset to 0-6, optimize MIF clock frequency CAMERA_STREAMING_HIGH: CPUSkipMask to 0x80 MemFreq to 1539000 Enable CDPreferIdle CDCpuset to 0-6 CAMERA_STREAMING_STANDARD: CPUSkipMask to 0x80 TAPreferIdle to 0 Enable CDPreferIdle CDCpuset to 0-6 Refer to ag/26718992 and ag/26787527 Bug: 326029232 Test: Build pass Change-Id: If008da6acc51afcfebccbcfda546efde83d9b20c --- powerhint-comet.json | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 5a4b655..737e6ba 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -29,6 +29,7 @@ "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Values": [ "9999999", + "1539000", "1352000", "1014000", "0" @@ -276,6 +277,16 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "CPUSkipMask", + "Path": "/proc/vendor_sched/cpu_skip_mask", + "Values": [ + "0x0", + "0x80" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "BGUClampMaxBoost", "Path": "/proc/vendor_sched/groups/bg/uclamp_max", @@ -1737,12 +1748,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CDPreferIdle", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPULittleClusterMaxFreq", @@ -1753,7 +1758,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1539000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1785,6 +1790,12 @@ "Duration": 0, "Value": "4-6" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "CDCpuset", + "Duration": 0, + "Value": "0-6" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "VIRTUAL-SKIN-CPU-MID", @@ -1803,6 +1814,12 @@ "Duration": 0, "Value": "700000" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "CPUSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUDVFSHeadroom", @@ -1889,13 +1906,13 @@ }, { "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CDPreferIdle", + "Node": "TAPreferHighCap", "Duration": 0, "Value": "0" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "TAPreferHighCap", + "Node": "TAPreferIdle", "Duration": 0, "Value": "0" }, @@ -1927,7 +1944,7 @@ "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDCpuset", "Duration": 0, - "Value": "0-7" + "Value": "0-6" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", @@ -1941,6 +1958,12 @@ "Duration": 0, "Value": "camera" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUDVFSHeadroom",