Commit graph

5831 commits

Author SHA1 Message Date
Kevin DuBois
f56e018ca4 Upgrade GPU NNhal to 1.3 revision.
Upgrades GPU NNHal to 1.3 revision.

Fixes: 187981206
Test: Boot, VTS for 1.3 revision
Change-Id: I2f860cd092168cb5093794dcfdef60242bfb9b6b
2021-05-18 15:07:04 +00:00
Ted Lin
122923fc74 Dump tcpm for the new path
Bug:188213293
Test: check bugreport
Change-Id: Ib6f2e374d80da88a39440a3de9d0e2d732b2f95e
Signed-off-by: Ted Lin <tedlin@google.com>
2021-05-18 15:05:05 +00:00
Beverly
4747f7c675 Raviole: use hybrid prox sensor on keyguard
Bug: 184176119
Test: manual
Change-Id: Ib2a6c75986ea9e4f7514767ef6d4090e5d71f93c
2021-05-18 11:36:31 +00:00
Alec Mouri
336e603ad2 Enable SurfaceFlinger Cache by default
Bug: 167936510
Test: Multiple fixes for flickering issues have landed.
Change-Id: I3da8f94e736c6dd5347585c3edb1a1080e9fff58
2021-05-18 08:51:00 +00:00
Devika Krishnadas
f25a39d71e Change VSYNC duration
Bug: 161945010
Change-Id: I2bfa217cf3e2e8fc7cf27551f405eac6c0d39ec4
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2021-05-18 07:32:51 +00:00
Rick Chen
7325f58e86 Add debug property for sensor on userdebug/eng build.
Bug: 187248983
Test: lshal debug android.hardware.sensors@2.0::ISensors/default
      See b/187248983#comment2 for the output.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: I174af99b6f1318c7420e8e6c5d4ed745c2328cf0
2021-05-18 07:26:39 +00:00
Jenny Ho
90217296e8 device-common: set testing_battery_profile default 2
set 2 to prevent limit battery level in unexpected testing situation

Bug: 180511460
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I9f0e66cf92b26c6946af162003378dcf0fd749f9
2021-05-18 09:00:06 +08:00
Sidath Senanayake
3f13d8aa5e powerhint: Use 'hint' node for GPU
This changes PowerHAL to use a sysfs node created
specifically for use by PowerHAL when influencing
GPU clocks.

Bug: 188404581
Bug: 188034128
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: Icf120454ff908776c8717826689a0528aebf2f64
2021-05-18 00:50:53 +00:00
Zhijun He
8a52881a41 dumpstate: add camera hal graph state dump
Only dump the latest dump files so that bugreport
size won't be increased by too much.

Test: build and capture bugreport
Bug: 178737594
Change-Id: I699ee76997c9107dad13419688f3c6c04551313b
2021-05-18 00:42:11 +00:00
Tim Murray
c1db6b7386 gs101: preopt SystemUI
SystemUI should always be speed-preopted on these devices.

Test: flashed, SysUI is preopted
Bug: 188465988
Change-Id: I990ce9d7d8c08b8e80fe4ca0b73c9eb339f065f3
2021-05-18 00:40:15 +00:00
Long Ling
736b673c95 display: update vendor color file
Update boosted color data

Bug: 187301816
Change-Id: Iec740f3e933dc564f39fb78605fd5c3b428b167c
2021-05-18 00:03:56 +00:00
Minchan Kim
c9f14081cd gs101: enable page_pinner
Enable Page Pinner.

Bug: 187552095
Test: adb bugreport <zip> and confirmed it contains page_pinner
      information at dumpstate_board.txt
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I509c5a825a798d8f1851cb65c5dd28dbddf11d33
2021-05-17 18:22:16 +00:00
Minchan Kim
637041f47e init.gs101.rc: dump page_pinner information into bugreport
Dump page_pinner information into dumpstate_board.txt.
It helps to find vulnerable place of CMA failure.

Page pinned ts 13 us count 0
PFN 10292273 Block 10051 type CMA Flags 0x8000000000080024(uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x278/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Page pinned ts 2 us count 0
PFN 10436170 Block 10191 type CMA Flags 0x8000000000080026(referenced|uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x290/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Bug: 187552095
Test: adb bugreport <zip> and confirmed it contains page_pinner
      information.

Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I59bd41ad9e06cab0348ce85059f73d0796632868
2021-05-17 18:22:16 +00:00
Midas Chien
4c188d1214 Revert "gs101: display: update 90hz denylist"
This reverts commit 2b88831a1d.

Reason for revert: move to vendor

Bug: 159903227
Bug: 182471327
Test: adb shell dumpsys window refresh
Change-Id: Iea49d0be0338faba1a98bdf184e2f674340602c1
2021-05-17 17:31:42 +00:00
Colin Cross
9715ce3e05 Update manifest_64.xml to match manifest.xml
Update manifest_64.xml for the following changes that were made to
manifest.xml:
I0babd05f17281406af10e4ea2435aca598910d36 Remove android.hardware.drm@1.0 HAL services
Iaafd526fc5a601f7e8189ec764399d99c660beb0 Replace the HIDL with AIDL for "android.hardware.memtrack"
I3f0d35647c0748d360b12d3be078d514f99d23d5 Update dumpstate HAL to V1.1
I9ba18473132f4bfa37a9fe2bbae4bb3dc015cc0e gs101: Remove sensor HAL 1.0 config

Bug: 188239794
Test: m out/target/product/oriole/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible.log
Change-Id: I92c313f7f31df7193ca8c67f56cd9f1317290948
2021-05-15 05:04:03 +00:00
qinyiyan
f93a35ade9 Update the manifest to switch the TPU NNAPI hal to use AIDL. am: ee23b47c8f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14495075

Change-Id: I242dece3fde7ba245755197d4f3ca88021c12c00
2021-05-14 20:44:46 +00:00
qinyiyan
d766be009f Update the manifest to switch the TPU NNAPI hal to use AIDL.
Test: Created Forrest build and flashed to phone.
Bug: 187846367
Change-Id: I0764d244ad939de2e5a6580728e528ec28069a93
2021-05-14 20:15:35 +00:00
Tri Vo
ef75692375 gs101: add trusty_metricsd am: 343ada7d27
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14542977

Change-Id: I8b20e465d11e5cf4d50be442935e8f5b3f6820f0
2021-05-14 19:32:44 +00:00
Wei Wang
37eedd3407 Fix permission for vendor_group migration am: 27e8fd62c7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14552184

Change-Id: Ib4eb7070c6a1f37c732e0ee8af40334a139ae222
2021-05-14 19:32:23 +00:00
Tri Vo
90496be319 gs101: add trusty_metricsd
Bug: 173423860
Test: m
Change-Id: I149410a9c1ae8d9366f05d61e35fda04eb28d445
2021-05-14 19:23:24 +00:00
Wei Wang
b442e78600 Fix permission for vendor_group migration
Test: build
Bug: 182509410
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I535b93649d1653def108c0407b16a8ae2f4873bd
2021-05-14 19:12:21 +00:00
davidycchen
83ef871951 dumpstate: modify the method for dump touch information am: ea61f9cd27
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518353

Change-Id: Ia34b1b8606d4ab6fdf2efe328e87db3e1a12cc29
2021-05-14 06:03:14 +00:00
Midas Chien
dc5e76190b powerhint: Support early wake up DPU via DISPLAY_UPDATE_IMMINENT am: e39d0b5261
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14309301

Change-Id: I10716bbf20bb9edb4acb1901e142468b7e65a41d
2021-05-14 06:03:08 +00:00
davidycchen
2b65d2e31c dumpstate: modify the method for dump touch information
Use bugreport flag to keep waking up the touch driver instead of
force active flag to prevent the kernel driver from blocking CPU
enter the suspend mode.

Bug: 183466375
Test: touch driver won't block system suspend.

Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I586173485bd41deac891b7edb366b51a99977434
2021-05-14 05:47:39 +00:00
Midas Chien
777a57c92a powerhint: Support early wake up DPU via DISPLAY_UPDATE_IMMINENT
This hint is set to indicate that the framework is likely to provide
a new frame soon. Therefore HWC has additional time to exit power
collapse. Set display_update_imminent_timeout_ms align to DPU
hibernation timeout.

Bug: 164411401
Test: systrace, testLayoutCacheLowHitrateFling
Change-Id: Idac388ac8700ed92e9620445a5038af54683df53
2021-05-14 05:47:32 +00:00
Manish Varma
b267dfbfb5 Modify file path for i2c devices am: d06d5bdd23
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14540730

Change-Id: Iaf7faf4b001df07d2e9069fbd7013e4865d806cb
2021-05-14 05:23:34 +00:00
Manish Varma
3fd056fb40 Modify file path for i2c devices
Bug: 188078957
Test: Verified using temporary log messages to confirm
file paths are formed correctly as otherwise to test queryMoistureDetectionStatus()
requires some mock circuits.

Signed-off-by: Manish Varma <varmam@google.com>
Change-Id: If5402d5999c77bf5a3431c70d800e50570b87c88
2021-05-14 05:05:26 +00:00
Rick Chen
8c72ff2227 Update sensor HAL to 2.1. am: 615c2ad8e4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518360

Change-Id: I10ccb5b716230bb12c4eb41e60ef3f7fec1934ba
2021-05-14 02:39:05 +00:00
Rick Chen
af45f3e261 Update sensor HAL to 2.1.
Bug: 187237947
Test: Verified basic sensor sampling function.
      run atest VtsHalSensorsV2_1TargetTest and result is passed.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: If081e8afbfb71b5f9276c5ef023a41e7b8590419
2021-05-14 02:03:46 +00:00
Krzysztof Kosiński
ab1f434aed Update gs101 GCH configuration. am: 84698a030a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14523129

Change-Id: Idae5a9fd616b916e86e8612e35c857e57ac2354a
2021-05-13 22:06:26 +00:00
Krzysztof Kosiński
3d2139f5f4 Update gs101 GCH configuration.
GCH toggle was modified from disable_lazy_hal to use_lazy_hal,
so the explicit assignment is no longer needed - the camera HAL
is eager by default.

Bug: 186175754
Test: build, camera preview
Change-Id: I5e4bede5083c5b0793f1b816a10ba9ae1d7bafc2
2021-05-13 21:32:27 +00:00
Ady Abraham
28e5dbe174 Change SF duration to be less than one vsync period am: 5710767d7d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14509953

Change-Id: Idd8470ddb34f7a2de327a0c5b8532c38beeef55b
2021-05-13 18:46:25 +00:00
Ady Abraham
7d7d96f2cd Change SF duration to be less than one vsync period
To prevent early presentation, SF does not allow to skip validate
if it is called more than one vsync period before the target present
time (ag/14508376). If we wake up SF too early, then skip validate
would be disabled and we would end up with 2 binder calls to composer
(validate + present) instead of just one (presentOrValidate)

Change-Id: I0ff779db088b27a9bf18e4ede459fca722eb944c
Test: run bouncy ball and collect systraces
Bug: 161945010
Bug: 187871031
2021-05-13 18:26:34 +00:00
Christine Franks
669694d084 Add mapping between boosted modes am: af9291f9b1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14277437

Change-Id: Icc237487ca5a9155a6caa7f3dc1f9ebad098f25f
2021-05-13 17:22:30 +00:00
Christine Franks
db9dc2773d Add mapping between boosted modes
Bug: 186186974
Test: n/a
Change-Id: I1096edc95da14b9e5b18f24e23c16af3bbc1fc9b
2021-05-13 17:06:09 +00:00
Wei Wang
00bcaac5a7 gs101: Align max uclamp value for background cgroup with vendor_group am: 308d9c7787
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14525103

Change-Id: I491c2575a2f462e174fbc97cdd2cbaa6d4662687
2021-05-13 03:22:34 +00:00
pointerkung
ee4a19807d Camera: Enable LTM for factory builds am: d72626741c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518346

Change-Id: Icd7f9f2befcd7f4aa1b58a59c669f3f67091fa2e
2021-05-13 03:22:14 +00:00
Jia-yi Chen
11ec3b4cf8 Update power hint for camera workload am: 3a0efffdbc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14508589

Change-Id: Icaf60ae8bf69041273890fcdc90180b3481149a9
2021-05-13 03:21:51 +00:00
Wei Wang
e31ba16606 gs101: Align max uclamp value for background cgroup with vendor_group
Since cfs_rq clamp feature uses tg's value, align it with the
vendor_group setting.

Bug: 170508405
Test: build pass
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ie0c896de2022f435be5ea53ae3cecf5d80d2c067
2021-05-13 02:58:42 +00:00
pointerkung
b88bba7d35 Camera: Enable LTM for factory builds
This is to avoid camera crash on factory builds.
Because disabling LTM could improve camera stability before, we can consider disable it again for factory builds once b/187900993 is clarified.

Test: build pass, capture/recording with Octopus
Bug: 187900993
Change-Id: I00407aa6c7da8b54b009b11c897689e7e003fc2d
2021-05-13 02:56:44 +00:00
Jia-yi Chen
7d81ea9443 Update power hint for camera workload
1) Enable prefer_high_cap of camera vendor group
2) Set high_capacity_start_cpu to 4
3) Set prefer_idle of camera vendor group to 0
4) Set MemFreq floor
5) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130
Test: Boot & check setting values
Change-Id: Ief0cae2aa9e4f84bed93f7de0bfb765e8a27009b
2021-05-13 01:48:20 +00:00
Rick Yiu
dc9eca28bd gs101: Set max uclamp value for background group am: 127fda2812
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13916833

Change-Id: Ie1b34a51f55519cfc299fdd84b1e854da909bd78
2021-05-13 00:55:01 +00:00
Rick Yiu
cd64c6b386 gs101: Set max uclamp value for background group
With vendor kernel support of getting rq cfs util in group base,
we could limit uclamp.max of background group to get more power benefit.

Bug: 170508405
Test: build pass
Change-Id: I997e653eb2790f5e3be4fbf3c8b1de356d787377
2021-05-13 00:27:51 +00:00
terrycrhuang
ea1147898e Enable Early Camping am: 478174b88a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14503324

Change-Id: If6bf76902b63c5cb1216da011213031558e8df65
2021-05-13 00:01:38 +00:00
terrycrhuang
7a6fa6cd3b Enable Early Camping
Bug: 163005064
Test: Local camping test
Change-Id: I8b97dcb3e5351f981da3e8f6abf253bd39b46545
2021-05-12 23:46:13 +00:00
Wei Wang
4b6e3933a5 P21: enable throttle background group at 5% am: 5082a3e2fe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13842225

Change-Id: I6027c1df323f54982731cbc965455615ee26d1d1
2021-05-12 23:38:38 +00:00
Wei Wang
6d4c63e896 P21: enable throttle background group at 5%
Right now we have many groups due to uclamp setup, and this would
potentially create interesting fairness between groups.

Ultimately we want only a system group and a background group for
cpu.shares, which would achieve after b/182509410 resolved.

Test: boot and check setting
Bug: 171740453
Change-Id: I8fa23268aa7ed02dcccc527abcec8556009aa9a7
2021-05-12 23:08:05 +00:00
Craig Dooley
60b53edb2a Add AoC specific logs to dumpstate am: ae62c040ae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14520705

Change-Id: I8748026ac89033888b8425bf8793e5ba883f83b0
2021-05-12 22:21:33 +00:00
Craig Dooley
be26bc083e Add AoC specific logs to dumpstate
Bug: 187961753
Change-Id: I871912c8b5e49618935f347476ca5cce9ad233aa
2021-05-12 22:01:06 +00:00
Taeju Park
eeddc26d31 vendor_hook: separate uclamp configuration am: dde635048f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14441979

Change-Id: Iad11167e839b71d855e6f0aa25d9cdaaaf1d35c3
2021-05-12 18:47:09 +00:00