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
This commit is contained in:
Paulsu Su 2025-01-15 00:51:48 -08:00
parent 38df9dc5d6
commit b9f0a79d07
2 changed files with 56 additions and 0 deletions

View file

@ -538,6 +538,16 @@
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
},
{
"Name": "AAModeProperty",
"Path": "vendor.powerhal.mode.aa",
"Values": [
"1",
"0"
],
"ResetOnInit": true,
"Type": "Property"
} }
], ],
"Actions": [ "Actions": [
@ -1436,6 +1446,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",
@ -1453,6 +1469,18 @@
"Type": "EndHint", "Type": "EndHint",
"Value": "DISPLAY_UPDATE_IMMINENT" "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", "PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "DisplayWakeup", "Node": "DisplayWakeup",

View file

@ -537,6 +537,16 @@
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
},
{
"Name": "AAModeProperty",
"Path": "vendor.powerhal.mode.aa",
"Values": [
"1",
"0"
],
"ResetOnInit": true,
"Type": "Property"
} }
], ],
"Actions": [ "Actions": [
@ -1417,6 +1427,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",
@ -1434,6 +1450,18 @@
"Type": "EndHint", "Type": "EndHint",
"Value": "DISPLAY_UPDATE_IMMINENT" "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", "PowerHint": "DISPLAY_UPDATE_IMMINENT",
"Node": "DisplayWakeup", "Node": "DisplayWakeup",