From af0111f5ef6016e408599d1ff9d3c695b7c0fb97 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Sun, 8 May 2022 23:29:34 -0700 Subject: [PATCH 1/3] Remove FPS based hints for TA boost Bug: 205369368 Test: Build Change-Id: I063f8aa6d77b966d50d11c0135880ff787870e07 Signed-off-by: Wei Wang --- powerhint-cheetah-a0.json | 5 +---- powerhint-cheetah.json | 4 +--- powerhint-panther-a0.json | 4 +--- powerhint-panther.json | 3 +-- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index dd4b56e..f82ce3f 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -138,10 +138,7 @@ "Values": [ "553", "185", - "127", - "64", "1", - "183", "63" ], "ResetOnInit": true @@ -1282,7 +1279,7 @@ "PowerHint": "REFRESH_120FPS", "Node": "TAUClampBoost", "Duration": 0, - "Value": "183" + "Value": "63" }, { "PowerHint": "REFRESH_60FPS", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 0b2d102..20ee9dc 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -138,9 +138,7 @@ "Values": [ "553", "185", - "127", "1", - "183", "63" ], "ResetOnInit": true @@ -1281,7 +1279,7 @@ "PowerHint": "REFRESH_120FPS", "Node": "TAUClampBoost", "Duration": 0, - "Value": "183" + "Value": "63" }, { "PowerHint": "REFRESH_60FPS", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index 67ac687..e6dc622 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -138,9 +138,7 @@ "Values": [ "553", "185", - "64", "1", - "125", "63" ], "ResetOnInit": true @@ -1270,7 +1268,7 @@ "PowerHint": "REFRESH_90FPS", "Node": "TAUClampBoost", "Duration": 0, - "Value": "125" + "Value": "63" }, { "PowerHint": "REFRESH_60FPS", diff --git a/powerhint-panther.json b/powerhint-panther.json index 0da9a56..dd13615 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -139,7 +139,6 @@ "553", "185", "1", - "125", "63" ], "ResetOnInit": true @@ -1269,7 +1268,7 @@ "PowerHint": "REFRESH_90FPS", "Node": "TAUClampBoost", "Duration": 0, - "Value": "125" + "Value": "63" }, { "PowerHint": "REFRESH_60FPS", From 438c0854bb0d34eb4423318bc79479ad08c6cbe8 Mon Sep 17 00:00:00 2001 From: Victor Liu Date: Wed, 18 May 2022 20:22:57 +0000 Subject: [PATCH 2/3] uwb: calibration file update Fix C10 AoA polarity by modifying LUT in config file Bug: 233072004 Change-Id: Ic163f03efa14f3af38fff92902241cd09516546f Signed-off-by: Victor Liu --- uwb/UWB-calibration.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uwb/UWB-calibration.conf b/uwb/UWB-calibration.conf index 554cf01..f263ec4 100644 --- a/uwb/UWB-calibration.conf +++ b/uwb/UWB-calibration.conf @@ -101,10 +101,10 @@ ant2.ant3.ch5.pdoa_offset=0 ant2.ant3.ch9.pdoa_offset=0 ch5.pll_locking_code=0 ch9.pll_locking_code=0 -ant1.ant2.ch5.pdoa_lut=0a:f4:89:f5:d9:f4:3b:f6:c1:f5:ee:f6:df:f5:a0:f7:7f:f6:54:f8:dd:f6:06:f9:f2:f6:b8:f9:89:f7:6a:fa:d1:f7:1d:fb:54:f8:d1:fb:f0:f8:83:fc:46:fa:35:fd:b0:fb:e7:fd:23:fd:9c:fe:a2:fe:4e:ff:00:00:00:00:31:01:b2:00:a6:02:64:01:0a:04:19:02:52:05:cb:02:73:06:7d:03:cb:07:2f:04:be:08:e3:04:f8:09:96:05:39:0b:48:06:81:0c:fa:06:1b:0d:ac:07:87:0d:60:08:a0:0e:12:09:06:0f:c5:09:2d:0f:77:0a -ant1.ant2.ch9.pdoa_lut=d7:ec:89:f5:d9:ed:3b:f6:73:ee:ee:f6:58:ef:a0:f7:73:f0:54:f8:f0:f1:06:f9:d7:f2:b8:f9:f6:f3:6a:fa:cf:f5:1d:fb:2d:f7:d1:fb:23:f8:83:fc:a4:f9:35:fd:4c:fb:e7:fd:cb:fc:9c:fe:33:fe:4e:ff:00:00:00:00:f6:01:b2:00:ba:03:64:01:83:05:19:02:21:07:cb:02:6d:08:7d:03:71:09:2f:04:ba:0a:e3:04:c3:0b:96:05:f0:0c:48:06:c7:0d:fa:06:77:0e:ac:07:42:0f:60:08:89:0f:12:09:87:10:c5:09:c7:10:77:0a -ant1.ant3.ch5.pdoa_lut=89:f4:54:f8:a2:f4:a0:f7:ae:f4:89:f5:0a:f5:ee:f6:7d:f5:3b:f6:8d:f5:06:f9:0a:f7:b8:f9:9a:f7:6a:fa:fa:f7:1d:fb:68:f8:d1:fb:f0:f9:83:fc:fa:fb:35:fd:6d:fd:e7:fd:2f:fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05:2f:04:85:07:e3:04:b0:08:96:05:06:09:48:06:71:09:fa:06:48:0a:ac:07:4e:0b:60:08:58:0c:c5:09:62:0c:12:09:c5:0c:77:0a -ant1.ant3.ch9.pdoa_lut=4e:ec:89:f5:9c:ee:3b:f6:04:f0:ee:f6:44:f1:a0:f7:c3:f2:54:f8:54:f3:06:f9:4c:f4:b8:f9:12:f5:6a:fa:0a:f6:1d:fb:21:f7:d1:fb:19:f8:83:fc:79:f9:35:fd:ba:fa:e7:fd:73:fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07:2f:04:c5:07:e3:04:fc:07:96:05:8f:08:48:06:b0:09:fa:06:39:0a:ac:07:c9:0a:60:08:58:0b:12:09:75:0b:77:0a:83:0b:c5:09 +ant1.ant2.ch5.pdoa_lut=0a:f4:77:0a:d9:f4:c5:09:c1:f5:12:09:df:f5:60:08:7f:f6:ac:07:dd:f6:fa:06:f2:f6:48:06:89:f7:96:05:d1:f7:e3:04:54:f8:2f:04:f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a:04:e7:fd:52:05:35:fd:73:06:83:fc:cb:07:d1:fb:be:08:1d:fb:f8:09:6a:fa:39:0b:b8:f9:81:0c:06:f9:1b:0d:54:f8:87:0d:a0:f7:a0:0e:ee:f6:06:0f:3b:f6:2d:0f:89:f5 +ant1.ant2.ch9.pdoa_lut=d7:ec:77:0a:d9:ed:c5:09:73:ee:12:09:58:ef:60:08:73:f0:ac:07:f0:f1:fa:06:d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33:fe:b2:00:00:00:00:00:f6:01:4e:ff:ba:03:9c:fe:83:05:e7:fd:21:07:35:fd:6d:08:83:fc:71:09:d1:fb:ba:0a:1d:fb:c3:0b:6a:fa:f0:0c:b8:f9:c7:0d:06:f9:77:0e:54:f8:42:0f:a0:f7:89:0f:ee:f6:87:10:3b:f6:c7:10:89:f5 +ant1.ant3.ch5.pdoa_lut=89:f4:ac:07:a2:f4:60:08:ae:f4:77:0a:0a:f5:12:09:7d:f5:c5:09:8d:f5:fa:06:0a:f7:48:06:9a:f7:96:05:fa:f7:e3:04:68:f8:2f:04:f0:f9:7d:03:fa:fb:cb:02:6d:fd:19:02:2f:fe:64:01:98:fe:b2:00:00:00:00:00:1d:02:4e:ff:2d:02:e7:fd:33:02:9c:fe:0a:03:35:fd:6f:04:83:fc:db:05:d1:fb:85:07:1d:fb:b0:08:6a:fa:06:09:b8:f9:71:09:06:f9:48:0a:54:f8:4e:0b:a0:f7:58:0c:3b:f6:62:0c:ee:f6:c5:0c:89:f5 +ant1.ant3.ch9.pdoa_lut=4e:ec:77:0a:9c:ee:c5:09:04:f0:12:09:44:f1:60:08:c3:f2:ac:07:54:f3:fa:06:4c:f4:48:06:12:f5:96:05:0a:f6:e3:04:21:f7:2f:04:19:f8:7d:03:79:f9:cb:02:ba:fa:19:02:73:fc:64:01:0e:fe:b2:00:00:00:00:00:d7:00:4e:ff:f6:01:9c:fe:21:04:e7:fd:60:04:35:fd:37:05:83:fc:0a:07:d1:fb:c5:07:1d:fb:fc:07:6a:fa:8f:08:b8:f9:b0:09:06:f9:39:0a:54:f8:c9:0a:a0:f7:58:0b:ee:f6:75:0b:89:f5:83:0b:3b:f6 xtal_trim=23 temperature_reference=85 smart_tx_power=1 From e0a1e9265381602af93faabb93a71374c2e15e0c Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Mon, 9 May 2022 10:05:01 +0800 Subject: [PATCH 3/3] 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 --- powerhint-cheetah-a0.json | 36 ++++++++++++------------------------ powerhint-cheetah.json | 36 ++++++++++++------------------------ powerhint-cloudripper.json | 36 ++++++++++++------------------------ powerhint-panther-a0.json | 36 ++++++++++++------------------------ powerhint-panther.json | 36 ++++++++++++------------------------ powerhint-ravenclaw.json | 36 ++++++++++++------------------------ 6 files changed, 72 insertions(+), 144 deletions(-) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index f82ce3f..51cc1ef 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -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", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 20ee9dc..5af78dd 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -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", diff --git a/powerhint-cloudripper.json b/powerhint-cloudripper.json index ac9ce8c..d6c1f96 100644 --- a/powerhint-cloudripper.json +++ b/powerhint-cloudripper.json @@ -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", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index e6dc622..d1e52c4 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -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", diff --git a/powerhint-panther.json b/powerhint-panther.json index dd13615..77aba7e 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -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", diff --git a/powerhint-ravenclaw.json b/powerhint-ravenclaw.json index 4a12911..2cd08a8 100644 --- a/powerhint-ravenclaw.json +++ b/powerhint-ravenclaw.json @@ -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",