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
This commit is contained in:
Paulsu Su 2024-10-15 08:34:26 +00:00 committed by Android Build Coastguard Worker
parent 187c2f82c5
commit 5adfc377b3

View file

@ -984,6 +984,16 @@
], ],
"ResetOnInit": false "ResetOnInit": false
}, },
{
"Name": "AAModeProperty",
"Path": "vendor.powerhal.mode.aa",
"Values": [
"1",
"0"
],
"ResetOnInit": true,
"Type": "Property"
},
{ {
"Name": "KswapdUclaimMin", "Name": "KswapdUclaimMin",
"Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min", "Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min",
@ -3134,6 +3144,12 @@
"Duration": 0, "Duration": 0,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "AUTOMOTIVE_PROJECTION",
"Node": "AAModeProperty",
"Duration": 0,
"Value": "1"
},
{ {
"PowerHint": "DISPLAY_IDLE", "PowerHint": "DISPLAY_IDLE",
"Node": "FGPreferIdle", "Node": "FGPreferIdle",
@ -3157,6 +3173,18 @@
"Duration": 0, "Duration": 0,
"Value": "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", "PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "CPULittleClusterDownRateLimitUs", "Node": "CPULittleClusterDownRateLimitUs",