Create the GPU powerhint settings for streaming.

Bug: 229794313

Test: Updated Lyrics in ag/18192655, updated the powerhint files on local C10 (EVT1.0f, ab/8559183), switched to video bokeh prewview and saw 572000 in /sys/devices/platform/28000000.mali/hint_min_freq.

Test: Checked the latency in video bokeh preview. the total latency of video bokeh node improved from 33.96ms to 26.93ms.

- tested scene: https://cnsviewer2.corp.google.com/cns/qj-d/home/pixel-camera-data-readers/acat/hwandy/ag/18192655/PXL_20220512_035931033.mp4?user=pixel-camera-data-readers.
- timer after: https://cnsviewer2.corp.google.com/cns/qj-d/home/pixel-camera-data-readers/acat/hwandy/ag/18192655/timer_after.txt?user=pixel-camera-data-readers.
- timer before: https://cnsviewer2.corp.google.com/cns/qj-d/home/pixel-camera-data-readers/acat/hwandy/ag/18192655/timer_before.txt?user=pixel-camera-data-readers.

Change-Id: I6272f9769441702004299060808b0ccfc18b1caa
This commit is contained in:
Andy Hsu 2022-05-09 10:05:01 +08:00
parent 438c0854bb
commit e0a1e92653
6 changed files with 72 additions and 144 deletions

View file

@ -855,12 +855,6 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MemFreq",
@ -939,12 +933,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MemFreq",
@ -1023,12 +1011,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MemFreq",
@ -1101,12 +1083,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "MemFreq",
@ -1143,6 +1119,18 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_GPU_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "572000"
},
{
"PowerHint": "CAMERA_GPU_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "FIXED_PERFORMANCE",
"Node": "CPUBigClusterMaxFreq",

View file

@ -855,12 +855,6 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MemFreq",
@ -939,12 +933,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MemFreq",
@ -1023,12 +1011,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MemFreq",
@ -1101,12 +1083,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "MemFreq",
@ -1143,6 +1119,18 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_GPU_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "572000"
},
{
"PowerHint": "CAMERA_GPU_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "FIXED_PERFORMANCE",
"Node": "CPUBigClusterMaxFreq",

View file

@ -675,12 +675,6 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MemFreq",
@ -759,12 +753,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MemFreq",
@ -843,12 +831,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MemFreq",
@ -921,12 +903,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "MemFreq",
@ -963,6 +939,18 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_GPU_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "572000"
},
{
"PowerHint": "CAMERA_GPU_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "FIXED_PERFORMANCE",
"Node": "CPUBigClusterMaxFreq",

View file

@ -844,12 +844,6 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MemFreq",
@ -928,12 +922,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MemFreq",
@ -1012,12 +1000,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MemFreq",
@ -1090,12 +1072,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "MemFreq",
@ -1132,6 +1108,18 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_GPU_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "572000"
},
{
"PowerHint": "CAMERA_GPU_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "FIXED_PERFORMANCE",
"Node": "CPUBigClusterMaxFreq",

View file

@ -844,12 +844,6 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MemFreq",
@ -928,12 +922,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MemFreq",
@ -1012,12 +1000,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MemFreq",
@ -1090,12 +1072,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "MemFreq",
@ -1132,6 +1108,18 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_GPU_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "572000"
},
{
"PowerHint": "CAMERA_GPU_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "FIXED_PERFORMANCE",
"Node": "CPUBigClusterMaxFreq",

View file

@ -675,12 +675,6 @@
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_EXTREME",
"Node": "MemFreq",
@ -759,12 +753,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "MemFreq",
@ -843,12 +831,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "MemFreq",
@ -921,12 +903,6 @@
"Duration": 0,
"Value": "1401000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_STREAMING_LOW",
"Node": "MemFreq",
@ -963,6 +939,18 @@
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_GPU_HIGH",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "572000"
},
{
"PowerHint": "CAMERA_GPU_STANDARD",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "FIXED_PERFORMANCE",
"Node": "CPUBigClusterMaxFreq",