Commit graph

152 commits

Author SHA1 Message Date
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
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
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
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
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
Wei Wang
414066f103 Use sysbg group for system background jobs
Bug: 201428466
Test: Build and boot check system_server's sched group
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I03396b661788de0a5963e29abfd95f609e9dc7ec
2021-10-12 13:50:57 -07:00
Wei Wang
ac81e67b89 Relax background restriction to 16.67% am: fbb2777b1b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15957488

Change-Id: Iba6960aea57dca062a4e77d3d1517292e634aba1
2021-10-05 17:08:33 +00:00
Wei Wang
ab3747f65e Relax background restriction to 16.67%
To avoid background starvation and PI, especially for those low prio 130
threads within system_server, allocate more cpu shares for background
sched group.

Test: boot and torture a loaded device.
Bug: 201428466
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ia85814294f9534fd83388a72c574c04f631a185f
2021-10-05 16:53:00 +00:00
Sayanna Chandula
30a2540fcf init.rc: Enable SOFT_OCP for TPU/CPU/GPU am: cfcb0b9160
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15952233

Change-Id: I21d44400c63720d210398234b4f4e1dbe113fcd3
2021-10-01 23:21:42 +00:00
Sayanna Chandula
be546e6364 init.rc: Enable SOFT_OCP for TPU/CPU/GPU
SOFT_OCR_WARN was disabled as part of b/199787970. This
change reenables it

Bug: 201551128
Test: build and boot on the device. Verify the sysfs entries
cat /sys/devices/virtual/pmic/mitigation/clock_div/tpu_clk_div
0x1
cat /sys/devices/virtual/pmic/mitigation/clock_div/gpu_clk_div
0x1
cat /sys/devices/virtual/pmic/mitigation/clock_div/cpu2_clk_div
0x1

Change-Id: I366ddd43474d1a690aae5edb70b881c95e7b62d7
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2021-10-01 23:11:00 +00:00
Jenny Ho
bec20a58c0 dumpstate: dump battery maxfg monitor log
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Merged-In: I04e2be21680c2cc673af1205cdb772fa3b845bd
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-09-27 15:39:49 +00:00
Daeho Jeong
a368fcc6d7 init.rc: change the ownership of gc segment info sysfs nodes am: e6c2780ebe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15819243

Change-Id: I7add7e01fb652b51793196ecda9cca89ca4efea0
2021-09-14 04:20:40 +00:00
Daeho Jeong
8fc873c415 init.rc: change the ownership of gc segment info sysfs nodes
Changed the ownership of gc segment info sysfs nodes for Pixelstats
to access these values.

Test: check the ownership of
/dev/sys/fs/by-name/userdata/<gc_segment_mode|gc_reclaimed_segments>
Bug: 182708936
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I444350d6f4898920b6036558eebdb11cf18ddee5
2021-09-13 22:08:12 +00:00
Jenny Ho
1dfbc241a0 dumpstate: dump battery maxfg monitor log
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-09-07 14:00:21 +00:00
Eric Biggers
f8622be0fd Generate a separate fstab file for FIPS mode am: 08c8bc2e40
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: I989dad797866cc82ad11cf2bca3e705370689517
2021-08-30 23:16:38 +00:00
Eric Biggers
f739cf68c0 Generate a separate fstab file for FIPS mode
Add a file "fstab.gs101-fips" alongside the existing "fstab.gs101" in
order to specify different encryption settings in FIPS mode.

"androidboot.fstab_suffix=gs101-fips" on the kernel command line will be
used to select the FIPS fstab when needed.

As the two fstabs should be otherwise identical, generate them from a
template file so that they will stay in sync.

Note that generating the fstabs requires that they be installed as build
system modules rather than via PRODUCT_COPY_FILES, which results in the
vendor_ramdisk copy of the fstabs being installed to system/etc rather
than /.  This shouldn't cause any problem, now that Android has been
updated to look for the fstab in this location too.

Bug: 191417025
Change-Id: I1d115e014df8ba2fb83046ac0b9b791597364846
2021-08-30 14:09:06 -07:00
AleX Pelosi
ac171ac32d gs101: use CPU4 in charger mode am: 5ac742b9fc am: 3fb606c6a6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15631479

Change-Id: I006252fa85755ec29f808dd682b124b8ec606e24
2021-08-20 00:28:16 +00:00
AleX Pelosi
41fcd9e444 gs101: use CPU4 in charger mode
For charging efficiency certification swap CPU6 with CPU4 while in
off-mode charging.

Bug: 194146139
Signed-off-by: AleX Pelosi <apelosi@google.com>
Change-Id: Ib2bee00b952df65d60534342e20f5d331b839e4c
Merged-In: Ib2bee00b952df65d60534342e20f5d331b839e4c
2021-08-19 23:49:43 +00:00
George Chang
957e03aca2 Remove NFC/SE settings from common gs101
Bug: 196825539
Test: build pass
Merged-In: I1833e3206403f1fce30377daaf942e617ed499b7
Change-Id: I1833e3206403f1fce30377daaf942e617ed499b7
2021-08-19 07:22:04 +00:00
George Lee
1fd62f31bf bcl: Put OCP_WARN level back to original level
Bug: 196833426
Test: Boot and confirm proper level set
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I3f46c74f35925ee0b31ec719b93d007e93a5a18f
2021-08-17 16:21:12 +00:00
Tri Vo
7290750087 Start storageproxyd early
And restart it after /data is mounted.

Bug: 187105270
Test: boot raven, secure storage test com.android.storage-unittest.td
Change-Id: I505e315b58c3e0830d9a1f11d2f8afd549186535
2021-08-11 16:02:34 +00:00
Tri Vo
f29084928b Set /dev/sg1 permissions in ueventd.rc
This way we don't need to guess when we need to chown.

Bug: 187105270
Test: boot raven
Change-Id: I36b17d440ef340e558b10ed3fef03435ec63690f
2021-08-11 16:02:34 +00:00
George Lee
ff8a3c60a2 bcl: lower ocp_warn for tpu and gpu
Bug: 181348043
Test: Local test and verify trip point
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I499bcfecf4a0eea7459f8cdd41d4e7c59129ffef
2021-08-11 01:32:04 +00:00
TeYuan Wang
cc9cd89806 thermal: provide permission for user space request TPU throttling
Bug: 188701596
Test: ls -al dev/thermal/cdev-by-name/tpu_cooling/user_vote
Change-Id: I8a53b118b2e8e51603554c5fbb8a085d47422918
2021-08-10 23:18:01 +00:00
Daeho Jeong
bb82be6a2a bfq: set slice_idle to 0
Bug: 191606824
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I6a2e52cdf5a43fb2e74b756eb0f1249761d76b0e
2021-08-09 23:10:42 +00:00
Stephane Lee
75619b9882 Create one-shot clear for Trickle-Defend
Test: Ensure there are no sepolicy/permissions errors
Bug: 194447428
Change-Id: Ie295e33967edc3294e1bf6d2192639d6b0377659
2021-08-03 00:20:07 +00:00
George Lee
433a2566e6 bcl: enable batoilo thermal zone
Enabling batoilo thermal zone.
Reduced soft_ocp_warn per bug 184739333.

Bug: 194240210
Test: Local test: flash and boot
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4cad70946af1cd8ffd2131df9f505dac49b8c8f8
2021-07-30 20:49:41 +00:00
Lisa Liu
d79a11550b gs101: Start bootanimation explicitly.
Start bootanimation explicitly by name. Let animation start before
surfaceflinger to avoid the condition ctl.start bootanim queued after mount_all command.

Bug: 193726798
Bug: 191910503
Test: boot test
Change-Id: Id0d276ac8bca39c6ac1dae2b2d542107a9522b91
2021-07-30 14:08:15 +08:00