From 5adfc377b3a402c09b7536829a217639df91ada6 Mon Sep 17 00:00:00 2001 From: Paulsu Su Date: Tue, 15 Oct 2024 08:34:26 +0000 Subject: [PATCH] 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 Android property is set. When navigation in Android Auto, the two hint with action to boost memlat is costly. Bug: 323085369 Test: Local test with desktop_head_unit_internal Flag: EXEMPT powerhint change does not need flag (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2a7bdfb21ee25f50166e3a3e02fa799eda76aa36) Merged-In: Iaf1d72aaeea6e91c9e7ea1e9987a2e89490f6c49 Change-Id: Iaf1d72aaeea6e91c9e7ea1e9987a2e89490f6c49 --- perf/powerhint-tegu.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/perf/powerhint-tegu.json b/perf/powerhint-tegu.json index efd28ec..5755b88 100644 --- a/perf/powerhint-tegu.json +++ b/perf/powerhint-tegu.json @@ -984,6 +984,16 @@ ], "ResetOnInit": false }, + { + "Name": "AAModeProperty", + "Path": "vendor.powerhal.mode.aa", + "Values": [ + "1", + "0" + ], + "ResetOnInit": true, + "Type": "Property" + }, { "Name": "KswapdUclaimMin", "Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min", @@ -3134,6 +3144,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "AUTOMOTIVE_PROJECTION", + "Node": "AAModeProperty", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "DISPLAY_IDLE", "Node": "FGPreferIdle", @@ -3157,6 +3173,18 @@ "Duration": 0, "Value": "0" }, + { + "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": "CPULittleClusterDownRateLimitUs",