Commit graph

2595 commits

Author SHA1 Message Date
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
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
2dc2b7c899 Dump GSC info am: 8472b7ad62
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14492030

Change-Id: I691012f712eb7b949101dd7fe065a14703825f9b
2021-05-12 10:25:05 +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
6187657152 Add the Product Framework Compatibility Matrix (Level 5) am: 84f9e855f0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14185533

Change-Id: I5a5b7ed58c43b2885438197d32fbbe6cceb3277e
2021-05-12 09:23:35 +00:00
Alex Hong
23ce2dcbe0 Upgrade the Target FCM version to 5 (Android Rvc) am: 96ef439587
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14160946

Change-Id: Ia4bba209693a82f3c1183bb09927302e6e37e2ed
2021-05-12 09:23:34 +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
4830483d9f bthal: Bluetooth owns its logbuffer device nodes am: aff9bd022e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14503320

Change-Id: I4c58d350acc2c52bb1b4cbd19ba3144b7e0a4abb
2021-05-12 07:33:40 +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
6561414007 Build flag renaming am: b8da5c81a7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14503318

Change-Id: I886f9a06e212f14de27775487cce0c0a1ac56d83
2021-05-12 06:47:17 +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
c3f605b12e audio: set ro.audio.offload_wakelock to false am: e51761b54f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13885209

Change-Id: Ia36626577b85ab2f27f0a8819d8d9a262042bf3c
2021-05-12 05:43:59 +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
6fc108994b Update Lyric configuration for gs101. am: 9cdfcfb356
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14506303

Change-Id: Ic23f5dc4f4dba6320c3d2f90353f68235418f343
2021-05-12 02:44:00 +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
08b1039b32 Cap VideoEncoderCap maxFrameRate to 30 am: d10c070c77
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14494379

Change-Id: I5578c544248495d781e776583f02beeab2c38d66
2021-05-12 01:39:14 +00:00
Carter Hsu
efc1f0a169 audio: add bluenote module am: 8bd37f2c01
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14227311

Change-Id: I2c0e858d2e5b712a24dec8d1765ec137faa3c63a
2021-05-12 01:38:48 +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
376d3d7379 Revert "gs101: add trusty_metricsd" am: 98d8308f48
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14494377

Change-Id: Ic5dfc9d5a78ccbff29da6e05517d3d126e35e8e0
2021-05-11 23:49:25 +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
904be22755 display: rename adaptive color file name am: 3c788b3a7d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14418873

Change-Id: I0213a99fddccb3161b0432f12dec11af1acf213e
2021-05-11 19:45:54 +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
616f6b2ccd Revert "Update power hint for camera workload" am: 5ac313e4fd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14491471

Change-Id: Ia490ea0f87818969e2768fe4a9fbaf0b39d61517
2021-05-11 02:40:38 +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
99c91db3ef gs101: add trusty_metricsd am: ad7261254c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14469740

Change-Id: Ib6adc58230a357a9ccdf2a48455909a34115f367
2021-05-10 20:14:50 +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
b6c46c01e3 Update power hint for camera workload am: 637fc9e8d7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14351582

Change-Id: If3e5d8ecd2d3729186127d0679563140dd709d0a
2021-05-10 18:48:38 +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
1d202eef48 gs101: Change uclamp min value for camera am: 82acc06cbe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14454976

Change-Id: I9b815d3d9b513fe3c6193cac9c10bcbee4cb1ab7
2021-05-07 22:43:05 +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
eee27ee50e Sensor: Support hifi sensor. am: 43206ce7ab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14444592

Change-Id: I397e4e75458069d19b19327cac33402477d9bf32
2021-05-07 15:13:40 +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
90a74f7ec1 gs101: add audio uevent to report mic status for pixelstats am: d351a65154
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14444595

Change-Id: I5697e6446eeb1f9d8575ce078e9c0011bf191f3b
2021-05-07 08:58:39 +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
22bf2aeba1 Adjust little core rate limit am: df79b08139
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14391555

Change-Id: I06966d80465849af8e135b4933456fcc46dee8aa
2021-05-07 07:40:15 +00:00