From 0828455566a71d275ba5f2ba15b50bc8b521366c Mon Sep 17 00:00:00 2001 From: Pointer Kung Date: Tue, 26 Mar 2024 06:15:02 +0000 Subject: [PATCH 1/4] 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", From 1400a33ff82e969d4e3ebee695dddf395b2d9059 Mon Sep 17 00:00:00 2001 From: Pointer Kung Date: Wed, 10 Apr 2024 06:34:13 +0000 Subject: [PATCH 2/4] Thermal Boost for severe thermal state Refer to ag/26566748 Bug: 333649807 Test: Build pass Change-Id: I1255d9f4525fc8e28e7d414d5b4ed42d1b96a937 --- powerhint-comet.json | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 100bc21..df1b857 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -291,6 +291,7 @@ "Path": "/proc/vendor_sched/groups/cam/uclamp_min", "Values": [ "765", + "250", "0" ], "ResetOnInit": true @@ -358,9 +359,10 @@ "0-3", "4-7", "4-6", - "0-6", - "0-7" + "0-7", + "0-6" ], + "DefaultIndex": 3, "ResetOnInit": true }, { @@ -1257,6 +1259,30 @@ "Duration": 3000, "Value": "0" }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CDPreferHighCap", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CAMUClampBoost", + "Duration": 0, + "Value": "250" + }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CPUSkipMask", + "Duration": 0, + "Value": "0x0" + }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CDCpuset", + "Duration": 0, + "Value": "0-7" + }, { "PowerHint": "CAMERA_SHOT", "Node": "PMU_POLL", From eb2e4813b11b61ae10f7c39d8d0ac31d5fe69113 Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Fri, 12 Apr 2024 08:06:42 +0000 Subject: [PATCH 3/4] reorder the powerhint.json since exynos driver take a longer time during access MEM/INT/DSU/BCI file nodes, change the order of powerhint and do other boost first Bug: 329209796 Change-Id: I63a709d0607f5999cd30c8fe12de0699934b4c53 Signed-off-by: Chungkai Mei --- powerhint-comet.json | 166 +++++++++++++++++++++---------------------- 1 file changed, 83 insertions(+), 83 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 1ab7568..70a0ff6 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -24,59 +24,6 @@ ], "ResetOnInit": true }, - { - "Name": "MemFreq", - "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", - "Values": [ - "9999999", - "1539000", - "1352000", - "1014000", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "IntFreq", - "Path": "/sys/devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/min_freq", - "Values": [ - "9999999", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "DsuMinFreq", - "Path": "/sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/min_freq", - "Values": [ - "9999999", - "1800000", - "1548000", - "820000", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "DsuMaxFreq", - "Path": "/sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/max_freq", - "Values": [ - "9999999" - ], - "DefaultIndex": 0, - "ResetOnInit": true - }, - { - "Name": "BCIMinFreq", - "Path": "/sys/devices/platform/170000a0.devfreq_bci/devfreq/170000a0.devfreq_bci/min_freq", - "Values": [ - "9999999", - "1401000", - "700000", - "0" - ], - "ResetOnInit": true - }, { "Name": "CPULittleClusterMaxFreq", "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", @@ -502,36 +449,6 @@ "Type": "Property", "ResetOnInit": true }, - { - "Name": "INTCAMFreq", - "Path": "/sys/devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq", - "Values": [ - "664000", - "233000", - "67000" - ], - "ResetOnInit": true - }, - { - "Name": "TNRMaxFreq", - "Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/max_freq", - "Values": [ - "664000", - "111000" - ], - "DefaultIndex": 0, - "ResetOnInit": true - }, - { - "Name": "TNRFreq", - "Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/min_freq", - "Values": [ - "664000", - "233000", - "67000" - ], - "ResetOnInit": true - }, { "Name": "BigTjOffset", "Path": "/sys/devices/platform/100a0000.BIG/offset_enabled", @@ -819,6 +736,89 @@ "20 40" ], "ResetOnInit": true + }, + { + "Name": "MemFreq", + "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", + "Values": [ + "9999999", + "1539000", + "1352000", + "1014000", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "IntFreq", + "Path": "/sys/devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/min_freq", + "Values": [ + "9999999", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "DsuMinFreq", + "Path": "/sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/min_freq", + "Values": [ + "9999999", + "1800000", + "1548000", + "820000", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "DsuMaxFreq", + "Path": "/sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/max_freq", + "Values": [ + "9999999" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "BCIMinFreq", + "Path": "/sys/devices/platform/170000a0.devfreq_bci/devfreq/170000a0.devfreq_bci/min_freq", + "Values": [ + "9999999", + "1401000", + "700000", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "INTCAMFreq", + "Path": "/sys/devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq", + "Values": [ + "664000", + "233000", + "67000" + ], + "ResetOnInit": true + }, + { + "Name": "TNRMaxFreq", + "Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/max_freq", + "Values": [ + "664000", + "111000" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "TNRFreq", + "Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/min_freq", + "Values": [ + "664000", + "233000", + "67000" + ], + "ResetOnInit": true } ], "Actions": [ From 46f9c996ea0b369a219b63fafbe7cb1caf617484 Mon Sep 17 00:00:00 2001 From: Massimo Carli Date: Fri, 12 Apr 2024 16:20:23 +0000 Subject: [PATCH 4/4] Improve app rounded corner radius for thin letterboxed apps Change the default rounded corner radius to 64 pixels. Fix: 332563101 Test: adb shell wm get-letterbox-style Change-Id: If48c9febe5bd04b5bbae3fd3f6c429001b1bc326 --- comet/overlay/frameworks/base/core/res/res/values/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comet/overlay/frameworks/base/core/res/res/values/config.xml b/comet/overlay/frameworks/base/core/res/res/values/config.xml index b06ef42..5eb4b7e 100644 --- a/comet/overlay/frameworks/base/core/res/res/values/config.xml +++ b/comet/overlay/frameworks/base/core/res/res/values/config.xml @@ -288,5 +288,5 @@ - 88 + 64