Commit graph

1084 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
db9dc2773d Add mapping between boosted modes
Bug: 186186974
Test: n/a
Change-Id: I1096edc95da14b9e5b18f24e23c16af3bbc1fc9b
2021-05-13 17:06:09 +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
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
7a6fa6cd3b Enable Early Camping
Bug: 163005064
Test: Local camping test
Change-Id: I8b97dcb3e5351f981da3e8f6abf253bd39b46545
2021-05-12 23:46:13 +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
be26bc083e Add AoC specific logs to dumpstate
Bug: 187961753
Change-Id: I871912c8b5e49618935f347476ca5cce9ad233aa
2021-05-12 22:01:06 +00:00
Taeju Park
185653e3a2 vendor_hook: separate uclamp configuration
Bug: 182509410
Test: build
Change-Id: Ide71afdbeb5fd79800823d0d8bb9b2a3a54bcca9
Signed-off-by: Taeju Park <taeju@google.com>
2021-05-12 18:28:50 +00:00
Qinchen Gu
7aafb36f77 Dump GSC info
Bug: 185939493
Test: adb bugreport. Look for GSC-related info.

Change-Id: I17fd4d7ef4c16661312d594c99818233cd0ee76a
2021-05-12 10:02:28 +00:00
Alex Hong
79e81ad478 Add the Product Framework Compatibility Matrix (Level 5)
Follow the previous Pixel settings, add a product FCM to describe the
requirements of device-specific HALs.

TO-DO: (1) Check if we need to replace the product config with
           Android.bp module like ag/14052744
       (2) Check if we need to split the FCM for system_ext/product

Test: m check-vintf-all
      The device is bootable.
Bug: 184714406
Change-Id: Icacace16863cfe1415e3dc4454e8763b8a30b425
2021-05-12 09:06:48 +00:00
Alex Hong
ec0510bd91 Upgrade the Target FCM version to 5 (Android Rvc)
PRODUCT_SHIPPING_API_LEVEL is 30 (Rvc) now.
Upgrade the Target FCM version to match the shipping api level.

TO-DO: Upgrade PRODUCT_SHIPPING_API_LEVEL to 31
       Upgrade the Target FCM version to 6

Test: $ m check-vintf-all
      The device is bootable.
Bug: 184714406
Change-Id: I72c7f490e9cb38d94f98071b302a4f465bf3281b
2021-05-12 09:06:48 +00:00
jonerlin
c2e1e46e2b bthal: Bluetooth owns its logbuffer device nodes
This changes the owner of specific logbuffer device node
dev/logbuffer_btlpm and dev/logbuffer_tty16 to Bluetooth,
so Bluetooth HAL is able to access them in userdebug rom

Bug: 177794127
Test: Manually Test
Change-Id: I17db3e3b8df521946d4358d191695c09ac2c2c3a
2021-05-12 07:06:43 +00:00
terrycrhuang
a2ab8d728c Build flag renaming
Bug: 187242540
Test: Loacal build. Google Dialer and Carrier Settings work.
Change-Id: I206d1b5e2474dfcd35c854e98f133704df472f5f
2021-05-12 06:28:33 +00:00
JJ Lee
298eb28dd0 audio: set ro.audio.offload_wakelock to false
Set ro.audio.offload_wakelock to false to release the wakelock in
AudioFlinger so that the CPU is allowed to sleep to save power during
oflload playback.

Bug: 178789331
Test: build pass
Change-Id: I9cc3fe6db17060c7de2b2df8a49befdbe2aecf29
Signed-off-by: JJ Lee <leejj@google.com>
2021-05-12 05:13:33 +00:00
Krzysztof Kosiński
3da54c3bc2 Update Lyric configuration for gs101.
Bug: 185262804
Test: build and camera preview on oriole
Change-Id: I5f705fde829b5d9d581b6f1306ecccfd6fd01cd1
2021-05-12 02:21:59 +00:00
Jason Lee
07bf326a61 Cap VideoEncoderCap maxFrameRate to 30
Fixes CTS without affecting GCA

Bug: 175830757
Test: GCA, CTS
Change-Id: I5c42e150a5fcc2e6a87b3daa6e1c8c787697168c
2021-05-12 01:33:30 +00:00
Carter Hsu
2e4d1c7d17 audio: add bluenote module
Bug: 186801118
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Icf676c4de46cd38594bb442fcb8dae29dc23e6dd
2021-05-12 01:09:43 +00:00
Carl Tsai
900316d100 Revert "gs101: add trusty_metricsd"
Revert "Trusty metrics reporter service"

Revert submission 14469740-trusty_metrics

Reason for revert: buildbreakage for pdk
Reverted Changes:
Ifdefdd6cc:gs101: add trusty_metricsd
I641d7a5b7:Trusty metrics reporter service

Bug: b/187769789
Test: Pass
Change-Id: I5fc1ad6773795566ba8a3d87d58219660f469d4c
2021-05-11 23:23:06 +00:00
Long Ling
b2e8b6e82d display: rename adaptive color file name
Bug: 184096624
Test: reboot and verify boosted/adaptive color modes work
Change-Id: Iab15629568a91e1db7f866ca1fc70a44b40fe5aa
2021-05-11 18:54:35 +00:00
Jia-yi Chen
a6889fd404 Revert "Update power hint for camera workload"
This reverts commit 637fc9e8d727121276cf8dea2976ac52f8da8d15.

Reason for revert: Camera EBUF overflow observed after launching GCA.

Bug: 187760882
Change-Id: I2357d943f4b4d96ffa7a156671ac7c790640a5ed
2021-05-11 02:22:56 +00:00
Tri Vo
32d3cde120 gs101: add trusty_metricsd
Bug: 173423860
Test: m
Change-Id: Ifdefdd6cc686748d7fd21550f1bc3ef40c05a3d0
2021-05-10 19:56:00 +00:00
Wei Wang
e895392c27 Update power hint for camera workload
1) Enable prefer_high_cap_enable
2) Set high_capacity_start_cpu to 4
3) Set cpu.uclamp.latency_sensitive to 0
4) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130
Test: Boot & check setting values
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I4ea14e82bf65f72a1113359cd163230a767e816b
2021-05-10 18:29:41 +00:00
Jia-yi Chen
82acc06cbe gs101: Change uclamp min value for camera
uclamp value is calculated based on the full capacity 1024. Previously
camera-daemon uses 6 which would set the min to 61. This boosts the
camera thread util up and would have power penalty. Change the value
to 1 to have minimum boost.

Bug: 186564130
Test: cat /dev/cpuctl/camera-daemon/cpu.uclamp.min & check power
Change-Id: Ib8f5ae2091848da4ee98211aeae37612ae2b308a
2021-05-07 22:23:28 +00:00
Rick Chen
43206ce7ab Sensor: Support hifi sensor.
Bug: 186108264
Test: CTS batch fifo tests passed.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: Ie2a3bd31ac463f9a09753486381620cbda3aaa76
2021-05-07 14:55:55 +00:00
Roger Fang
d351a65154 gs101: add audio uevent to report mic status for pixelstats
ACTION=change
  DEVPATH=/devices/virtual/amcs/amcs
  MIC_BREAK_STATUS=1

Bug: 174994440
Test: Manually test passed
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I2a478167960ea9b2e8cbe732e030fa38757204d7
2021-05-07 08:48:18 +00:00
Wei Wang
df79b08139 Adjust little core rate limit
With recently merged kernel change pa/1916082, down rate limit  will be
adjusted dynamically. Without out this change, we would run into cases
that we too little down rate limit for little.

Bug: 186392111
Bug: 170511089
Test: boot and check rate limit
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I78d9894301c9f4f888d33010c9fcca20d51d4b20
2021-05-07 07:17:29 +00:00
Adam Shih
f2457f2d1e remove redundant setting
The path does not exist.
Bug: 187128213
Test: build pass and boot to home

Change-Id: I18aa60fafe1538972ad2111bfad483b54c6fab06
2021-05-07 04:31:02 +00:00
Carter Hsu
5bc59075bd haptic: add haptic ampilifer codec
Bug: 178431048
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Id20663a7469f04fda8dd49651fce88a815450af7
2021-05-07 03:10:19 +00:00
terrycrhuang
0f8dbe476b Add Google Dialer and Enable PARIS in PDK ROM
Use the environment variable USES_GOOGLE_DIALER_PARIS to decide to
replace AOSP Dialer by Google Dialer and enable PARIS.
The variable should be set in PDK release ROM and User could set it
locally as you want the AOSP build with them.

Bug: 187242540
Test: Loacal build. Google Dialer and Paris work

Change-Id: Ib823f5447db5fd593b9044c8cdb766165ce6cedf
2021-05-07 00:25:48 +00:00
Sunil Ravi
2832991570 Wifi: Added supplicant HAL interface declarations 1.3 and 1.4
Bug: 187302501
Bug: 186636898

Test: boot and wifi function is ok
Test: p2p connection and throughput tests.
Change-Id: I599763e8c583f9566833183d4dbec13db1d040bc
2021-05-06 23:33:51 +00:00
Sunil Ravi
3d015b03ab Revert "Wifi: Move supplicant service init to wpa_supplicant"
This reverts commit 788012640b

Reason for revert: Caused throughput issue in p2p b/187302501

Bug: 187302501
Bug: 186636898

Test: boot and wifi function is ok
Test: p2p connection and throughput tests.

Change-Id: I70f4015040f10452acff697ee504b02cfb3c1e27
2021-05-06 23:33:51 +00:00
Lucas Dupin
3f04ce39c9 Revert "Enable blurs"
This reverts commit 52cc3f23c6.

Reason for revert: b/187310427
Bug: 187310427

Change-Id: I0190509dd2a5a3e727bce742e02cd21cf921caee
2021-05-06 22:54:48 +00:00
qinyiyan
24815da75e Add TPU metrics logger library to the device.mk
Test: Forrest build with the commit and the libmetrics_logger.so is
present in the build.
Bug:151063663

Change-Id: Ib5b59acfb6bc929d24884740f593417afe392434
2021-05-06 17:45:00 +00:00
Tri Vo
b39a771980 Revert "Trusty metrics reporter service"
This reverts commit c0dc597e70.

Reason for revert: b/187417029

Change-Id: Ia571b39ef3e5d66c112505bebd323deb2f7cc823
2021-05-06 17:03:37 +00:00
Tri Vo
c0dc597e70 Trusty metrics reporter service
Bug: 173423860
Test: m
Change-Id: Ib54790d883bd797ce1efa98a1cb053b5a4e007f7
2021-05-06 15:52:50 +00:00
Kyle Lin
3a3512c3a3 init.gs101.rc: add memlat settings
Bug: 170479743
Test: build and boot
Change-Id: I1f5f3ebdb2e4aeb3fe76de3b82358ea4783a571b
2021-05-06 07:05:34 +00:00
Alex Hong
5f5a621335 Remove android.hardware.drm@1.0 HAL services
The following interfaces are deprecated for Target FCM version 5
  android.hardware.drm@1.0::ICryptoFactory/default
  android.hardware.drm@1.0::IDrmFactory/default

Test: $ m check-vintf-all
      The device is bootable.
Bug: 186538652
Change-Id: I0babd05f17281406af10e4ea2435aca598910d36
2021-05-06 04:15:49 +00:00
David Li
e3718f2067 audio: remove libdsp_aecns.so from device.mk
Move AEC and NS to the liboffloadeffect

Bug: 187153996
Test: make -j128
Test: run cts --include-filter "CtsMediaTestCases android.media.cts.AudioPreProcessingTest"
Change-Id: Ida949d8ae3c06b4ab6743159cc952cdef3a73de7
2021-05-06 02:28:43 +00:00