From e70e81621b178362009811bedd2cbfb24ac15a8b Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Mon, 4 Mar 2024 06:14:57 +0000 Subject: [PATCH 1/2] powerhint: port util threshold change to comet Change util_threshold for little cluster to 50%. Keep value at 1280 for CAMERA_STREAMING_LOW/CAMERA_STREAMING_STANDARD Bug: b/316035859 Test: a/b UIBench test in lab Change-Id: I594dd8ccecef6e26dd2c7ae73b4bee79f39f838c Signed-off-by: Chungkai Mei --- powerhint-comet.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index c5fe44a..499dfac 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -237,9 +237,10 @@ "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", "Values": [ + "2048 1280 1280", "1280", "1100", - "1100 1024 1100" + "1100 1078 1024" ], "DefaultIndex": 0, "ResetOnInit": true @@ -1874,7 +1875,7 @@ "Node": "CPUDVFSHeadroom", "Duration": 0, "Value": "1280 1100 1055" - }, + } { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1941,6 +1942,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "CPUUtilThreshold", + "Duration": 0, + "Value": "1280" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CDPreferHighCap", From e239802407df15e11aa72b40f6a138994d5d7a16 Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Thu, 14 Mar 2024 09:39:05 +0000 Subject: [PATCH 2/2] powerhint: port dvfs_headroom settings from caimito Bug: 322000346 Test: a/b UIBench test Change-Id: I50d3eccc1e663ac5db3792c98a6a73a297a888e3 Signed-off-by: Chungkai Mei --- powerhint-comet.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/powerhint-comet.json b/powerhint-comet.json index 499dfac..669e27c 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -251,7 +251,7 @@ "Values": [ "1280", "1100", - "1280 1100 1055" + "1100 1078 1024" ], "DefaultIndex": 0, "ResetOnInit": true @@ -1718,7 +1718,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPUDVFSHeadroom", "Duration": 0, - "Value": "1100" + "Value": "1100 1078 1024" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1792,6 +1792,12 @@ "Duration": 0, "Value": "700000" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUDVFSHeadroom", + "Duration": 0, + "Value": "1280" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -1864,18 +1870,6 @@ "Duration": 0, "Value": "cam2" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CPUUtilThreshold", - "Duration": 0, - "Value": "1100 1024 1100" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CPUDVFSHeadroom", - "Duration": 0, - "Value": "1280 1100 1055" - } { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDPreferHighCap", @@ -1936,6 +1930,12 @@ "Duration": 0, "Value": "camera" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "CPUDVFSHeadroom", + "Duration": 0, + "Value": "1280" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "PowerHALCameraRunning", @@ -2118,13 +2118,13 @@ }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", - "Node": "CPUUtilThreshold", + "Node": "CPUDVFSHeadroom", "Duration": 0, "Value": "1100" }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", - "Node": "CPUDVFSHeadroom", + "Node": "CPUUtilThreshold", "Duration": 0, "Value": "1100" },