From 7fe286c7e00d5441eca7d43bea03107fd7272556 Mon Sep 17 00:00:00 2001 From: Chungkai Mei Date: Tue, 17 Dec 2024 09:56:36 +0000 Subject: [PATCH 1/3] remove unused hint As we already migrated kernel to 6.1, NewlyIdleBalancer is not used anymore. Flag: NONE just remove unused hint Bug: 379810138 Change-Id: I320983d36c2cc8edae99e5c132ca63f4d2237046 Signed-off-by: Chungkai Mei --- powerhint.json | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/powerhint.json b/powerhint.json index 4fcdb12..147ebbb 100644 --- a/powerhint.json +++ b/powerhint.json @@ -322,14 +322,6 @@ ], "ResetOnInit": true }, - { - "Name": "NewlyIdleBalancer", - "Path": "/proc/vendor_sched/idle_balancer", - "Values": [ - "0", - "1" - ] - }, { "Name": "LimitFlashCurrent", "Path": "vendor.camera.max_flash_current", @@ -1097,12 +1089,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_EXTREME", - "Node": "NewlyIdleBalancer", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PowerHALCameraRunning", @@ -1199,12 +1185,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "NewlyIdleBalancer", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -1283,12 +1263,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "NewlyIdleBalancer", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "PowerHALCameraRunning", @@ -1373,12 +1347,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_LOW", - "Node": "NewlyIdleBalancer", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_VIDEO_RECORDING", "Type": "MaskHint", From 2123fdccbd9a88301f39ab273386544a0f12ef22 Mon Sep 17 00:00:00 2001 From: Vince Chiu Date: Wed, 8 Jan 2025 13:05:25 +0800 Subject: [PATCH 2/3] Support CAMERA_MULTICAM_BOOST to improve multicam performance Flag: EXEMPT bug fix Bug: 388122376 Test: GCA Change-Id: Ia10e0b6830c8c7ec691ee99b5e8d663bebe0a92a --- powerhint.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/powerhint.json b/powerhint.json index 147ebbb..8d32605 100644 --- a/powerhint.json +++ b/powerhint.json @@ -1263,6 +1263,24 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_MULTICAM_BOOST", + "Node": "CPUBigClusterMaxFreq", + "Duration": 100, + "Value": "9999999" + }, + { + "PowerHint": "CAMERA_MULTICAM_BOOST", + "Node": "CPUMidClusterMaxFreq", + "Duration": 100, + "Value": "9999999" + }, + { + "PowerHint": "CAMERA_MULTICAM_BOOST", + "Node": "CPULittleClusterMaxFreq", + "Duration": 100, + "Value": "9999999" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "PowerHALCameraRunning", From 81e76723cc87d34511c67ee39cad156b4e4f4c06 Mon Sep 17 00:00:00 2001 From: Paulsu Su Date: Wed, 15 Jan 2025 00:53:22 -0800 Subject: [PATCH 3/3] powerhint: Mask hints in AA and DISPLAY_IDLE This CL adds a powerhint for AA mode to mask storming hint. DISPLAY_IDLE masks DISPLAY_UPDATE_IMMINENT and CPU_LOAD_RESET when Android Auto property is set. When navigation in Android Auto, the two hint with action to boost memlat is costly. Bug: 380188115 Change-Id: I825a56ac32a0ecdc8b441af9cb64e81b1d04f9a6 Test: Local test with desktop_head_unit_internal Flag: EXEMPT powerhint change --- powerhint.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/powerhint.json b/powerhint.json index 8d32605..020410c 100644 --- a/powerhint.json +++ b/powerhint.json @@ -541,6 +541,16 @@ ], "DefaultIndex": 0, "ResetOnInit": true + }, + { + "Name": "AAModeProperty", + "Path": "vendor.powerhal.mode.aa", + "Values": [ + "1", + "0" + ], + "ResetOnInit": true, + "Type": "Property" } ], "Actions": [ @@ -1547,6 +1557,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "AUTOMOTIVE_PROJECTION", + "Node": "AAModeProperty", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "DISPLAY_IDLE", "Node": "FGPreferIdle", @@ -1564,6 +1580,18 @@ "Type": "EndHint", "Value": "DISPLAY_UPDATE_IMMINENT" }, + { + "PowerHint": "DISPLAY_IDLE", + "Type": "MaskHint", + "Value":"DISPLAY_UPDATE_IMMINENT", + "EnableProperty": "vendor.powerhal.mode.aa" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Type": "MaskHint", + "Value":"CPU_LOAD_RESET", + "EnableProperty": "vendor.powerhal.mode.aa" + }, { "PowerHint": "DISPLAY_UPDATE_IMMINENT", "Node": "DisplayWakeup",