Enable EXPENSIVE_RENDERING power hint

GPU takes long time (>8ms) when app launch animation and some pip case.
When doing animation, GPU needs to handle some heavy tasks like color
conversion, app rounded corner. Enable the expensive rendering hint to
raise the gpu frequency to avoid frame drop due to long gpu completion.

Bug: 179007786
Test: 1. Open Chrome/Chrome with pip from homescreen
         Swipe vertically to go back to home screen
         Measure the gpu completion time and "FrameMissed" count from systrace result
      2. 4K60fps HDR Video playback and measure the DoU Power impact
Change-Id: I37f92018e5fd5a925189431db39409f11079b778
This commit is contained in:
tangrobin 2021-03-15 15:13:47 +08:00 committed by Robin Tang
parent 3623b5745f
commit ea12333375
3 changed files with 70 additions and 0 deletions

View file

@ -67,6 +67,7 @@
"Values": [ "Values": [
"762000", "762000",
"471000", "471000",
"400000",
"302000", "302000",
"151000" "151000"
], ],
@ -117,6 +118,15 @@
], ],
"ResetOnInit": true, "ResetOnInit": true,
"Type": "Property" "Type": "Property"
},
{
"Name": "PowerHALRenderingState",
"Path": "vendor.powerhal.rendering",
"Values": [
"EXPENSIVE_RENDERING",
""
],
"Type": "Property"
} }
], ],
"Actions": [ "Actions": [
@ -305,6 +315,18 @@
"Node": "LimitFlashCurrent", "Node": "LimitFlashCurrent",
"Duration": 0, "Duration": 0,
"Value": "1500" "Value": "1500"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "PowerHALRenderingState",
"Duration": 0,
"Value": "EXPENSIVE_RENDERING"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "400000"
} }
] ]
} }

View file

@ -45,6 +45,9 @@
"Path": "/sys/devices/platform/1c500000.mali/scaling_min_freq", "Path": "/sys/devices/platform/1c500000.mali/scaling_min_freq",
"Values": [ "Values": [
"151000", "151000",
"302000",
"455000",
"572000",
"670000" "670000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -85,6 +88,15 @@
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
},
{
"Name": "PowerHALRenderingState",
"Path": "vendor.powerhal.rendering",
"Values": [
"EXPENSIVE_RENDERING",
""
],
"Type": "Property"
} }
], ],
"Actions": [ "Actions": [
@ -237,6 +249,18 @@
"Node": "CPULittleClusterMinFreq", "Node": "CPULittleClusterMinFreq",
"Duration": 0, "Duration": 0,
"Value": "9999999" "Value": "9999999"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "PowerHALRenderingState",
"Duration": 0,
"Value": "EXPENSIVE_RENDERING"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "455000"
} }
] ]
} }

View file

@ -65,6 +65,9 @@
"Path": "/sys/devices/platform/1c500000.mali/scaling_min_freq", "Path": "/sys/devices/platform/1c500000.mali/scaling_min_freq",
"Values": [ "Values": [
"151000", "151000",
"302000",
"455000",
"572000",
"670000" "670000"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
@ -115,6 +118,15 @@
], ],
"ResetOnInit": true, "ResetOnInit": true,
"Type": "Property" "Type": "Property"
},
{
"Name": "PowerHALRenderingState",
"Path": "vendor.powerhal.rendering",
"Values": [
"EXPENSIVE_RENDERING",
""
],
"Type": "Property"
} }
], ],
"Actions": [ "Actions": [
@ -291,6 +303,18 @@
"Node": "LimitFlashCurrent", "Node": "LimitFlashCurrent",
"Duration": 0, "Duration": 0,
"Value": "1500" "Value": "1500"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "PowerHALRenderingState",
"Duration": 0,
"Value": "EXPENSIVE_RENDERING"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "455000"
} }
] ]
} }