Matthew Markwell
5edd757a24
Adding a power hint for face unlock.
...
During Tuscany runs, the Camera HAL is requesting a CAMERA_LAUNCH power
hint, which runs big and small CPU clusters at FMAX for 1 second. This is
overkill for Tuscany, so we are requesting that the hint be removed.
Tuscany should only boost during the computationally expensive image
processing, and should stop boosting as soon as a decision is reached.
This CL adds a new power hint for Tuscany. The other CLs in this topic
use this hint to boost CPU frequency during the critical section of
Tuscany by adding a call from the FaceHAL to the PowerHAL.
Running camera open and camera close without CAMERA_LAUNCH hint saves a
measured ~1W of power. The common case for this boost in Tuscany will be
a few frames at ~60ms per frame, so much less than 1 second of boost.
The worst case scenario is falsing - no attempted unlock. We will allow
the hint to time out after 1 second in that case, but that case is less
common.
Measured latency improvement per-frame from running the CPU at FMAX is
~15ms per frame. Power measurements can be found at go/tuscany-power.
NOTE: This change will _reduce_ the power/battery impact of Tuscany by
boosting for a more precise window of time.
Bug: 190755782
Test: E2E testing, validating frequency in systrace.
Change-Id: Ibca2687d2dffa4e3d2d23a9a588a2eae0b225952
2021-07-09 04:05:28 +00:00
Harpreet Eli Sangha
d91948dbb6
Disable UWB Feature am: e44a1eb9b5
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15222047
Change-Id: I22e959a23f78b619777f98eda975a4a542451cf9
2021-07-09 03:57:16 +00:00
Harpreet Eli Sangha
d5d1799a90
Disable UWB Feature
...
Bug: 193084128
Test: Build and Boot
Signed-off-by: Harpreet Eli Sangha <eliptus@google.com>
Change-Id: I305a535654fabfbb24ade954372db1bb905465cc
2021-07-09 03:35:46 +00:00
Automerger Merge Worker
0e7b03bccb
Merge "Remove gralloc3 support for gs101. am: 942c0fd2f3 am: 699c62c1ad" into sc-v2-dev-plus-aosp am: 915e7cec86
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15194381
Change-Id: I5737f17aad0ab7c869f5573194cc022d72d34e61
2021-07-08 23:20:59 +00:00
Krzysztof Kosiński
8225bfdf79
Remove gralloc3 support for gs101. am: 942c0fd2f3 am: 019797e0dc am: 19f0e8e45d
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15194381
Change-Id: I7d14aa4491ecf51b8452e32d3cc2425d90608efa
2021-07-08 23:19:58 +00:00
Automerger Merge Worker
b611722b5b
Merge "Remove gralloc3 support for gs101. am: 942c0fd2f3 am: 699c62c1ad" into sc-v2-dev-plus-aosp
2021-07-08 23:02:08 +00:00
Krzysztof Kosiński
7daac932ef
Remove gralloc3 support for gs101. am: 942c0fd2f3 am: 699c62c1ad
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15194381
Change-Id: I4760f4effbb547e99837760107f2914ed76845b2
2021-07-08 23:00:53 +00:00
Krzysztof Kosiński
3e9607e1bc
Remove gralloc3 support for gs101. am: 942c0fd2f3 am: 019797e0dc
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15194381
Change-Id: I2e210ead54ae984ffe9b88f2c485355c52d72944
2021-07-08 22:59:59 +00:00
Krzysztof Kosiński
d65131b19f
Remove gralloc3 support for gs101. am: 942c0fd2f3
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15194381
Change-Id: I8d4cf240762f39ce3a5f3730a9c0e025d8427ece
2021-07-08 22:46:44 +00:00
Krzysztof Kosiński
74b7a2a871
Remove gralloc3 support for gs101.
...
All devices use gralloc4 now, so this code is unused.
Bug: 174998182
Test: builds for the affected devices
Change-Id: Icff36a0204f7f9fd10ae7269248aef8a08c5fc1e
2021-07-08 22:28:25 +00:00
yihsiangpeng
23702d82df
dumpstate: add pca9468 logbuffer am: 5a74c9a585 am: d0479e0df0 am: 52dceb32b4
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15184581
Change-Id: I347ef4160309c2922301f68a6fef63e002bf229f
2021-07-08 20:20:38 +00:00
yihsiangpeng
22dc7084b9
dumpstate: add pca9468 logbuffer am: 5a74c9a585 am: d0479e0df0
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15184581
Change-Id: I6475ec4087bbd668fb2d62b5e704dbcb685cacb4
2021-07-08 20:08:10 +00:00
yihsiangpeng
492c003eca
dumpstate: add pca9468 logbuffer am: 5a74c9a585
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15184581
Change-Id: I0d664c69a02e1548bcfaca5c92ef5bf2c0dd50a0
2021-07-08 19:49:17 +00:00
yihsiangpeng
86a339dfab
dumpstate: add pca9468 logbuffer
...
also remove duplicate logbuffer_rtx/wireless
Bug: 188752986
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
Change-Id: Iabedf9c7c247cc5ca89f65ca17317a53569959b6
2021-07-08 19:36:49 +00:00
Kevin DuBois
37cb7a4e88
mali: disable backend thread affinity. am: 82feef805e am: 281e4fc622 am: bfbe9a34a0
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15176970
Change-Id: I7ef7dbdaffee21ae4ad213428a9222fc90d882c4
2021-07-08 18:38:49 +00:00
Kevin DuBois
6ecdd1e582
mali: disable backend thread affinity. am: 82feef805e am: 281e4fc622
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15176970
Change-Id: I4666ed896ac366bff4eb8cec7bb8e92cf65dc3b7
2021-07-08 18:24:14 +00:00
Kevin DuBois
b1333f7bd0
mali: disable backend thread affinity. am: 82feef805e
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15176970
Change-Id: Id147610db222277598893238bdac31de5c5527cf
2021-07-08 18:07:38 +00:00
Kevin DuBois
757500e40f
mali: disable backend thread affinity.
...
Setting backend thread affinity with higher uclamp value can cause
governor to clock little cores to max. Disable explicit affinity for
driver backend threads.
Fixes: 192486236
Test: build, see SF's backend threads on mid cores in gpu comp.
Change-Id: Id1b17d9783fc65f2d2541fa9c6166d771494cd42
2021-07-08 17:53:28 +00:00
Yu(Swim) Chih Ren
9b2785d4bb
Use CPU 4-7 when CAMERA_LAUNCH am: 7e40643a8a am: 4fbe1b7b34 am: be866e22a0
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15208817
Change-Id: Id2a062319a8fad2163e77721d375b13129dcbc18
2021-07-08 04:22:37 +00:00
Yu(Swim) Chih Ren
2b970805c6
Use CPU 4-7 when CAMERA_LAUNCH am: 7e40643a8a am: 4fbe1b7b34
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15208817
Change-Id: I8e1662a11d1fb89dde44409efc6cc7345a77fe59
2021-07-08 04:10:13 +00:00
Yu(Swim) Chih Ren
7e77fdf306
Use CPU 4-7 when CAMERA_LAUNCH am: 7e40643a8a
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15208817
Change-Id: I5b904012f551d8e372dd03b567af92483d36e1a3
2021-07-08 03:52:52 +00:00
Yu(Swim) Chih Ren
31270ed1f3
Use CPU 4-7 when CAMERA_LAUNCH
...
Add powerhint configuration to use CPU 4-7 when CAMERA_LAUNCH
Bug: 188369995
Test: 1. Check camera daemon move to CPU 4-7 when camera launch
2. P21 Camera Test Checklist done
Change-Id: I6ddc9ce664166c5b78c9a5bc427c800f0714b6ea
2021-07-08 03:37:49 +00:00
Maciej Żenczykowski
d4d45ba745
tune usb irq (dwc3) based on usb function am: f9e02b98b8 am: 37b5dd622e am: 4f8ce0968c
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15217381
Change-Id: Ic8ca42ff0eaecd362dc206c05f819fabdf22cb7c
2021-07-07 17:01:19 +00:00
Maciej Żenczykowski
0627de07db
tune usb irq (dwc3) based on usb function am: f9e02b98b8 am: fa23c69183 am: 8788773ebc
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15217381
Change-Id: I87969f0fe18c0f9078c00dee4821d37271d95ca6
2021-07-07 17:01:11 +00:00
Maciej Żenczykowski
c97bff67a1
tune usb irq (dwc3) based on usb function am: f9e02b98b8 am: 37b5dd622e
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15217381
Change-Id: I43d008947a8bb30fabc2e6d0bf89fa94da98efcb
2021-07-07 16:52:00 +00:00
Maciej Żenczykowski
1d63f1a73f
tune usb irq (dwc3) based on usb function am: f9e02b98b8 am: fa23c69183
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15217381
Change-Id: If62c083d526f4724d4e572b0c628419d730e4261
2021-07-07 16:48:03 +00:00
Maciej Żenczykowski
3774b023d7
tune usb irq (dwc3) based on usb function am: f9e02b98b8
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15217381
Change-Id: I793c5e7fd820bf79c2eba226cbd0d8853930c5e7
2021-07-07 16:36:33 +00:00
Maciej Żenczykowski
a24469c9d0
tune usb irq (dwc3) based on usb function
...
This among other things greatly increases tethering performance.
Bug: 185092876
Test: TreeHugger, built and booted on an oriole, enabled tethering
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic9f0b4bef05250bb38c91dc1e046366098d98dc0
2021-07-07 16:23:12 +00:00
Albert Wang
65c7926cbd
Move init.gs101.usb.rc under hw/ am: b6c1a1d04e am: 1aeb4d8f18 am: 1582efda13
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167660
Change-Id: I097a4c4985099e7675180b5201ad9a5423a1591a
2021-07-07 15:58:53 +00:00
Albert Wang
391965ea3b
Move init.gs101.usb.rc under hw/ am: b6c1a1d04e am: 1aeb4d8f18
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167660
Change-Id: I36901c5883a8b6f72c9a71848fc18a4782fec375
2021-07-07 15:46:09 +00:00
Albert Wang
b64e7cb973
Move init.gs101.usb.rc under hw/ am: b6c1a1d04e
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167660
Change-Id: I0f3871f3668a6bc4719879165ab3d2d11a520423
2021-07-07 15:33:07 +00:00
Albert Wang
ed651c86bf
Move init.gs101.usb.rc under hw/
...
Bug: 192498561
Test: boot to home normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I465a668035cf03c6ac9587a6d48d22e2f52133d0
2021-07-07 15:18:17 +00:00
Ethan Lin
d141ce1330
Modify GCA_CAMERA_SHOT power hints for better performance. am: c2264dc421 am: 6a2d247045 am: 0bc4d24987
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15207634
Change-Id: I15d6aa15dc6bdaf7356fbd68d63dae67f05fb91e
2021-07-06 15:16:31 +00:00
Ethan Lin
4c18dd19ea
Modify GCA_CAMERA_SHOT power hints for better performance. am: c2264dc421 am: 6a2d247045
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15207634
Change-Id: I1270a35b2ad3f2c47e38196e47edd2c0135ecc64
2021-07-06 15:04:36 +00:00
Ethan Lin
386f25fbbc
Modify GCA_CAMERA_SHOT power hints for better performance. am: c2264dc421
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15207634
Change-Id: I63433d8879303b710b3167c12cd286773e9bdaef
2021-07-06 14:52:51 +00:00
Ethan Lin
8ef3f6cc02
Modify GCA_CAMERA_SHOT power hints for better performance.
...
CAMERA_STREAMING has the setting "TAPreferHighCap=1". GCA_CAMERA_SHOT should set "TAPreferHighCap=1" as well in case user leaves the viewfinder.
We could get better performance with "HighCapacityStartCpu=6".
Bug: 192534118
Test: manual R4
Change-Id: I85c77ac1ccc2176312b54a6acdd37df55a658f04
2021-07-06 14:32:39 +00:00
byunggwan kang
51e5cac35a
update performance-point at media_codecs_aosp_c2.xml am: 8b67e6da73 am: ebafeb2487 am: 417bf9ebfc
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167661
Change-Id: Ida76d1499c8969ee635ecbdeb61d98132027b7b6
2021-07-06 10:08:17 +00:00
byunggwan kang
4b854be3a6
update performance-point at media_codecs_aosp_c2.xml am: 8b67e6da73 am: ebafeb2487
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167661
Change-Id: I02f82bea3404012dde42ceb8765eebf2d3c670ec
2021-07-06 09:54:16 +00:00
byunggwan kang
497744b4bd
update performance-point at media_codecs_aosp_c2.xml am: 8b67e6da73
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15167661
Change-Id: If51ac8ce341d9c0d6c4cbbfa2db54d678465df84
2021-07-06 09:38:09 +00:00
byunggwan kang
676f94117f
update performance-point at media_codecs_aosp_c2.xml
...
Bug: 187191316
Test: android.mediapc.cts.MultiTranscoderPairPerfTest
Signed-off-by: byunggwan kang <bk0917.kang@samsung.com>
Change-Id: I69d1244770c118d5e37234b9d1ab85a288d09505
2021-07-06 09:23:00 +00:00
Automerger Merge Worker
262be3024f
Merge "boost INT clock when CAMERA_BACKEND_BOOST am: 52594b749d am: c72bc5bb90" into sc-v2-dev-plus-aosp am: f57fb26ade
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15152131
Change-Id: I5c3bafb01ab4844ab3bd33265bd592d0560e43a9
2021-07-06 01:58:49 +00:00
Yu(Swim) Chih Ren
fbefd5b4c6
boost INT clock when CAMERA_BACKEND_BOOST am: 52594b749d am: a6f63f41b6 am: 7ca0cb3213
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15152131
Change-Id: I05a587d85c81578d42f05893e29d548670bb14a1
2021-07-06 01:58:32 +00:00
Automerger Merge Worker
185ce95703
Merge "boost INT clock when CAMERA_BACKEND_BOOST am: 52594b749d am: c72bc5bb90" into sc-v2-dev-plus-aosp
2021-07-06 01:44:40 +00:00
Yu(Swim) Chih Ren
a4f92b77a4
boost INT clock when CAMERA_BACKEND_BOOST am: 52594b749d am: c72bc5bb90
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15152131
Change-Id: Ic7cc25447c65cb980e85a058993114840e62f7c7
2021-07-06 01:44:35 +00:00
Yu(Swim) Chih Ren
122315bc38
boost INT clock when CAMERA_BACKEND_BOOST am: 52594b749d am: a6f63f41b6
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15152131
Change-Id: Ifc59ec1b83aeb9fb099b37e991acdc0cc37bd54e
2021-07-06 01:44:34 +00:00
Yu(Swim) Chih Ren
9b0fc87063
boost INT clock when CAMERA_BACKEND_BOOST am: 52594b749d
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15152131
Change-Id: I03a6ceed53db735f2d1b9921021d18d2355c7baf
2021-07-06 01:27:27 +00:00
Yu(Swim) Chih Ren
9ab67ae5cd
boost INT clock when CAMERA_BACKEND_BOOST
...
Add MIF, INT boost powerhint configuration for CAMERA_BACKEND_BOOST to
improve stability
Bug: 168654554
Test: 1. Check clock freq related file when camera start
2. Check face id function work correctly
3. P21 Camera Test Checklist done
Change-Id: Ia39acd531063bcf93c2db9971d783f6da8006502
2021-07-06 01:12:20 +00:00
Konstantin Vyshetsky
6ddb2e1b08
ufs: set clkgate_enable when in offmode charging am: dbdc3ac5bf am: f2248ddbb6 am: f8065aa6f1
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15191999
Change-Id: Iee389c96a315d74ffdf4aaf869a4b721ce532f99
2021-07-04 04:52:35 +00:00
Konstantin Vyshetsky
a83bd78c5c
ufs: set clkgate_enable when in offmode charging am: dbdc3ac5bf am: 88d2a72990 am: 87e8cd438d
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15191999
Change-Id: I77872244d14277ac2188f5348d783aa451eb5990
2021-07-04 04:51:42 +00:00
Konstantin Vyshetsky
b26f9d72af
ufs: set clkgate_enable when in offmode charging am: dbdc3ac5bf am: f2248ddbb6
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15191999
Change-Id: Ia7552aecd165b74ac97b1b44bfe1050b78e1635e
2021-07-04 04:33:29 +00:00