Commit graph

430 commits

Author SHA1 Message Date
George Lee
812b753546 [automerge] bcl: Increase hardware clock divider count 2p: 2f0d3bcc06 am: ce27c0d216
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16995825

Change-Id: I2c8655ff6c9515a71611dda9f69ff31a51aeca40
2022-03-02 02:57:25 +00:00
Rick Yiu
4f3baf3b80 Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
(cherry picked from commit 72b0f768ee)
2022-03-01 04:23:36 +00:00
Rick Yiu
72b0f768ee Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
2022-03-01 04:16:27 +00:00
George Lee
ce27c0d216 [automerge] bcl: Increase hardware clock divider count 2p: 2f0d3bcc06
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16995825

Bug: 221077697
Change-Id: I8d1101481bf4a6dc2655d378d31ca6e1579345e4
2022-02-26 21:33:43 +00:00
George Lee
2f0d3bcc06 bcl: Increase hardware clock divider count
By increasing hardware clock divider count, we do not need to throttle
as hard to mitigate for brownout.

Bug: 221077697
Test: Local stress test to ensure no brownout.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I950fab2e3d70acd76b29f05acff8eec783a0546d
2022-02-26 13:33:23 -08:00
Minchan Kim
e09098ee34 init: gs101: improve first cma allocation latency for faceauth
When the system boot, migrate big mapped movable pages created by
Android boot sequence(e.g., zygote) out of cma to improve first cma
allocation. The test with cma trace shows cma allocation reduction
from 136ms to 25ms.

Test: atest com.google.android.camera.pts.SecurePreviewTest with cma
trace
Bug: 218731671
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iaa2a2f8c0c3256face3ce9cd21fa4acd6fb531ea
2022-02-24 21:54:57 +00:00
Xin Li
6ea7e8b035 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: Ife2ff971eaeda2b132658ca2704bf1edde6fd80a
Change-Id: Ic1617d8e3b1aac8c2acc2c483b1347431e911a1e
2022-02-11 07:10:27 +00:00
Kai Shi
b0599c3b02 Merge "Increase TCP wmem max size" am: 98ee53e52a am: e9e29ca22e am: dd409ec914 am: bd80f61fec
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960054

Change-Id: I860326b1e8a5a41bc57115a218d5f10b5e109b76
2022-01-27 22:13:41 +00:00
Kai Shi
bd80f61fec Merge "Increase TCP wmem max size" am: 98ee53e52a am: e9e29ca22e am: dd409ec914
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960054

Change-Id: Ifdb9837d63d8c384f8675c452b4bbbb04b290b13
2022-01-27 21:10:32 +00:00
Kai Shi
dd409ec914 Merge "Increase TCP wmem max size" am: 98ee53e52a am: e9e29ca22e
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960054

Change-Id: Iac6032830054a99c5cb52c80332769b824b29f4a
2022-01-27 20:53:45 +00:00
Kai Shi
b877da7c69 Increase TCP wmem max size
Increase TCP wmem max size to allow high Tx throughput over wifi.

Bug: 213596972
Test: manual test to confirm TCP memory size is increased and wifi TCP throughput with default TCP window size can reach 700Mbps in HE80 mode.
Change-Id: I6058af03da756aaa63e89eddb674f5b054cecf33
2022-01-25 11:58:30 -08:00
Bowgo Tsai
b276a09717 Removing 'verity_update_state' am: e77021b4c4 am: be59761ace am: 6b7e6787e1
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1878153

Change-Id: I7a2f4f36b1831a4f4a7c11fac6fffd9ff6468e90
2022-01-21 22:43:14 +00:00
Will McVicker
bbc4e64596 gs101: recovery: add wait for dwc3 device to probe am: 04c94df116 am: b62568becb
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1881538

Change-Id: I2754aedadff2ba7d024e46a01ea86a86e9ad7830
2022-01-21 22:28:46 +00:00
Bowgo Tsai
6b7e6787e1 Removing 'verity_update_state' am: e77021b4c4 am: be59761ace
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1878153

Change-Id: I32016a579f9ee62257c0676f0aba5c300f2a6924
2022-01-21 22:27:29 +00:00
SalmaxChang
d8657cb475 init: gs101: restorecon persist modem file am: 2dfaabef7a am: e4f0fe01b4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16660077

Change-Id: Ia72dc277c41f000d8f04be2a1617faa2bdb86124
2022-01-20 06:14:50 +00:00
SalmaxChang
2dfaabef7a init: gs101: restorecon persist modem file
Bug: 215311024
Change-Id: I8292a5066c3658a8acde622014881338ea24379a
2022-01-19 14:45:10 +00:00
linpeter
752038e9fb display: atc sysfs node change
Give atc nodes are changed to dqe0 form.

Bug: 213133646
test: check file node permission
Change-Id: I12b83482d421c763692d4c64f0ad1666e2abe1d9
2022-01-12 08:06:39 +00:00
Rick Yiu
219111e484 Appy vendor setting for OtaProfiles
Use a new vendor group, ota, for OtaProfiles, and set its uclamp.max
and group_throttle to 40%, which benefits both performance and power
of OTA process.

Bug: 199006579
Test: value set as expected
Change-Id: I63375f3a286f27ab6c54413d6488b175305e6607
2022-01-11 08:58:11 +00:00
Jack Wu
f0fa8db7c9 remove retaildemo settings from gs101 and set in the individual file
Bug: 204926279
Test: check demo mode functionality
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I5205510746132b0edfd3db2a6c44deaf133b3b05
2022-01-10 11:06:23 +00:00
Yifan Hong
a636457b5a Implement health AIDL HAL.
Test: VTS
Test: manual charger mode
Test: recovery
Bug: 213273090

Change-Id: Ie02d7bc1e1c6e39bbab22f008b7767c5de620a73
2022-01-06 23:01:30 +00:00
Gabriel Biren
f08fb02814 Update gs101 rc file to use Supplicant AIDL interface.
Bug: 196235436
Test: Connect to wifi on an Oriole device.
Change-Id: Id01c7f6630ea4946f8667d5e60ad798121250b74
2022-01-05 04:07:25 +00:00
Martin Liu
3406cfb76e gs101: set readahead_size_kb=128 to vendor, product and system_ext am: 2b741a51c5 am: a880d188d2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16549415

Change-Id: I28dea8e69ed3a66d1ac9575e2967e706e398f18d
2021-12-30 02:37:37 +00:00
Martin Liu
2b741a51c5 gs101: set readahead_size_kb=128 to vendor, product and system_ext
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
2021-12-30 02:05:39 +00:00
Ocean Chen
c90627420b gs101: new Android.bp for non-modem projects
Separating fstab to avoid boottime regression

Bug: 210551190
Test: reboot and compare TotalBootTime

Change-Id: I2ad92d8640b2cc25383c5cf5755001f73a5f8861
2021-12-28 10:12:44 +00:00
Stephane Lee
d2102c6a8c Add the rest of the AACR fields am: 57dd93fb86 am: 04687ef556
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16482304

Change-Id: I8f288e2704e8109f8f9d1bdeedd4cc684f70d1fe
2021-12-16 00:51:24 +00:00
Stephane Lee
57dd93fb86 Add the rest of the AACR fields
Bug: 205900652
Test: Ensure that there are no permissions denied errors for
google_battery

Change-Id: I0860b84994c24930334407e909e14469f4b3cb94
2021-12-15 23:28:03 +00:00
chungkai
1252f9c851 init: adjust boost value am: f8454ce693 am: 669b065cb2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16389049

Change-Id: I56741fd60430d05521c3353914a27a23c7a89aa9
2021-12-14 18:48:07 +00:00
chungkai
f8454ce693 init: adjust boost value
To reduce boot time, adjust util clamp to max.

reduce 200ms+ after cgroups created.

Test: pass
Bug: 204397422
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I92cd3ee3dcf8dfc9d677ca23492dda62711885af
2021-12-14 18:12:08 +00:00
Ocean Chen
c9cde396de gs101: create fstab.modem for project with modem
Non-modem project does't inlucde the fstab.modem
It can avoid long boot time from fs_mgr mount fail

Bug: 209694809
Test: reboot test

Change-Id: I3f1499f0c3767ba61895699e618856e41844b4bf
Signed-off-by: Ocean Chen <oceanchen@google.com>
2021-12-13 22:24:16 +00:00
Stephane Lee
4edaac6163 Ensure aacr_state is writable for google battery am: fb6a6e6cbe am: ee79d7a1ef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16441865

Change-Id: Ic0cc94cb2ed01f4aadd7db35f0400bf401a142f6
2021-12-11 02:16:27 +00:00
Stephane Lee
fb6a6e6cbe Ensure aacr_state is writable for google battery
Bug: 205900652
Test: Ensure that there are no permissions denied errors for
google_battery

Change-Id: Icec73159f3686d37fcf91971772ec85d102b92fe
2021-12-11 01:29:57 +00:00
Jenny Ho
d48db706b4 init.gs101.rc: add persist data for ACA am: 2ea166b43c am: 6461e99332
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16406934

Change-Id: I74bc514ac7d790f38e26f8a2abb2f2ab7eb3b13d
2021-12-09 01:59:08 +00:00
Jenny Ho
2ea166b43c init.gs101.rc: add persist data for ACA
Bug: 208962746
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I2c67619112746fb589bbff5743fd41632b4f9cf2
2021-12-09 01:21:30 +00:00
joenchen
26f9f02fb5 init: change owners of sysfs nodes min_vrefresh and idle_delay_ms
init: change file owners of sysfs nodes min_vrefresh and
idle_delay_ms in order to grant permission for hwcomposer

Bug: 202567084
Test: use the following commands
adb shell "vndservice call Exynos.HWCService 1005 i32 0 i32 30"
adb shell "vndservice call Exynos.HWCService 1006 i32 0 i32 1000"

Change-Id: Ia072a9826402bdf23d2577b8dc7f82b5e4d903f6
Merged-In: Ia072a9826402bdf23d2577b8dc7f82b5e4d903f6
2021-12-08 01:40:05 +00:00
joenchen
0dae8c059f init: change owners of sysfs nodes min_vrefresh and idle_delay_ms
init: change file owners of sysfs nodes min_vrefresh and
idle_delay_ms in order to grant permission for hwcomposer

Bug: 202567084
Test: use the following commands
adb shell "vndservice call Exynos.HWCService 1005 i32 0 i32 30"
adb shell "vndservice call Exynos.HWCService 1006 i32 0 i32 1000"

Change-Id: Ia072a9826402bdf23d2577b8dc7f82b5e4d903f6
2021-12-04 15:37:23 +00:00
Super Liu
7f92d9ac7f init.gs101.rc: add the sysfs permission for touch.
Bug: 193467627
Test: manual test.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I90977f3dfcbd2c62955ec7b9807c10af23041a52
2021-12-02 02:46:11 +00:00
George Lee
de5d05fc8c bcl: Increase SMPL_WARN to 3.1V am: 3cf3ce9386 am: 5ee850ab54
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16076579

Change-Id: Ief774ea5bb17d282be4e245c56d4e1b09bf05031
2021-11-18 21:53:07 +00:00
George Lee
3cf3ce9386 bcl: Increase SMPL_WARN to 3.1V
To mitigate Synthetic load in brownout test, we need to increase
UVLO1 to 3.2V, UVLO2 to 3.0V, and SMPL_WARN to 3.1V.

Bug: 200943374
Test: Local Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I182d55f3a898d6e9adc8d86747ae62541a1c8fab
2021-11-18 19:33:20 +00:00
Super Liu
41c75ffb57 init.gs101.rc: adjust the sysfs permission for touch.
Bug: 193467774
Test: check bugreport for touch pre-logs.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: Iccf138fd891fd54bf22a56e8ed57643ef4d7d384
2021-11-16 10:56:42 +00:00
Bowgo Tsai
529bca2e02 Removing 'verity_update_state'
This is not needed in device-specific init.rc file, because it's
is superseded by commit https://r.android.com/1866693.

Bug: 203720638
Test: presubmit
Change-Id: I9798f0fa868e453b62dcdd8d7b4ee7a94c7f148f
(cherry picked from commit e77021b4c4)
2021-11-12 02:53:02 +00:00
Will McVicker
04c94df116 gs101: recovery: add wait for dwc3 device to probe
This patch adds a dependency on the dwc3 device probing before setting
the sys.usb.controller property. Without this, we have a race between
fastbootd starting and the dwc3 device probing. If fastbootd starts
before the dwc3 device probes, then the recovery init.rc will fail to
setup the USB gadget resulting in "fastboot devices" failing to detect
the device.

Bug: 202338035
Test: verify device is detected in fastbootd
Change-Id: I146451eae03f23dde915c00af3028681be41a8c1
2021-11-04 14:36:37 -07:00
Bowgo Tsai
e77021b4c4 Removing 'verity_update_state'
This is not needed in device-specific init.rc file, because it's
is superseded by commit I300265f4af9c2781d40537f391bda9eaf62c27ba.

Bug: 203720638
Test: presubmit
Change-Id: I9798f0fa868e453b62dcdd8d7b4ee7a94c7f148f
2021-11-03 15:11:42 +08:00
George Lee
0a838b3284 bcl: disable SOFT_OCP_WARN HW divider
Bug: 201546866
Test: Local Test to verify readback of register
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4c303bc18d0a6bcc3b83a4cde9aca9b49e63daa7
2021-11-01 17:54:14 +00:00
Rick Yiu
1b06962002 Configure dex2oat group settings
Also associate with its vendor group.

Bug: 201223712
Test: build pass
Change-Id: I86a2e2eb628d2f412079e9c8321809f48b1e4be3
2021-10-26 07:09:27 +00:00
Will McVicker
09f583f336 gs101: recovery: add wait for dwc3 device to probe
This patch adds a dependency on the dwc3 device probing before setting
the sys.usb.controller property. Without this, we have a race between
fastbootd starting and the dwc3 device probing. If fastbootd starts
before the dwc3 device probes, then the recovery init.rc will fail to
setup the USB gadget resulting in "fastboot devices" failing to detect
the device.

Bug: 202338035
Test: verify device is detected in fastbootd
Change-Id: I146451eae03f23dde915c00af3028681be41a8c1
(cherry picked from commit f31fad844a7b94ee7c6689afd0b563da00c29118)
2021-10-19 16:58:00 +00:00
Kyle Lin
fd1871eb7a init.gs101.rc: adjust ratio_ceil am: e574d5e7dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16074856

Change-Id: I5e79c73fed953ffb18c0027ef0ee7319b5eeed2d
2021-10-18 19:38:55 +00:00
Kyle Lin
f5817b68d7 init.gs101.rc: adjust ratio_ceil am: e574d5e7dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16074856

Change-Id: I608d4a4a8caa806569ff0b9f598c7c1c5481a815
2021-10-18 19:38:55 +00:00
Kyle Lin
a3c7bc302f init.gs101.rc: adjust ratio_ceil
Test: build , boot and CUJs.
Bug: 201052887
Change-Id: I94158c1f78f937ef93e4e2c31eabcd4d05798870
2021-10-18 19:24:03 +00:00
Wei Wang
43c94bc18a Use sysbg group for system background jobs am: 4599c16628
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15995425

Change-Id: I2c01c2614a309b1cbca412cb2dbc79cc3cb9c36e
2021-10-13 06:16:24 +00:00
Wei Wang
0d2642fa60 Use sysbg group for system background jobs am: 4599c16628
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15995425

Change-Id: I3e0059ec5d491b157f460a8f311ba2fe47dc8ddd
2021-10-13 06:16:23 +00:00