Commit graph

1065 commits

Author SHA1 Message Date
Martin Liu
5bcfdac788 gs101: set swiotlb as noforce
As dma devices are 36bit bounded, we don't need SWIOTLB
bounce buffers. Set swiotlb=noforce to disable this and
make the minimum amount of memory allocation.

Bug: 205246642
Test: check total memory and io_tlb_nslabs
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: If9f68b269f326f0f4b8e165593ec5dd4787fbb52
2021-11-11 00:07:28 +00:00
Krzysztof Kosiński
1be9cf8a51 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
Merged-In: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
2021-11-04 21:58:06 +00:00
davidycchen
87c912336a dumpstate: dump touch HDM debug information
HDM debug information already expend to 64 bytes. Dump whole debug
information when bugreport is triggered.
Read HDM debug information twice to check if any status events keep
changing.

Bug: 174191180
Test: trigger bugreport and check the data.

Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I9d2f9ed094f85dae303ba47e85a182adcd6954ac
2021-11-03 04:46:03 +00:00
Siddharth Kapoor
3eaed9b170 Add GPU Power-on hint for LAUNCH am: 0b13fa4150
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16091140

Change-Id: I5795ff285434da113542be86ebc77e4d9e84ba16
2021-11-02 05:03:27 +00:00
Siddharth Kapoor
0b13fa4150 Add GPU Power-on hint for LAUNCH
Bug: 201718421
Test: trace while App launch
Change-Id: I5f994cf87a1696f843a2419d52133ccc5951d23c
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2021-11-02 02:31:15 +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
Aaron Ding
aad20a2f04 Enable VABC OTA
Bug: 203437381
Change-Id: If9eb8a4b1cefb75cf3d310a27a52aa889b28d0b5
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-10-28 18:45:34 +00:00
Victor Liu
4e79160e93 uwb: remove device name from gs101
Bug: 203746316
Change-Id: I0359a8d2047d39d61d68b32234bfeec5f3440236
Merged-In: I0359a8d2047d39d61d68b32234bfeec5f3440236
2021-10-28 06:29:35 +00:00
Siddharth Kapoor
57e119f053 Add GPU Power-on hint for LAUNCH
Bug: 201718421
Test: trace while App launch
Change-Id: I5f994cf87a1696f843a2419d52133ccc5951d23c
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2021-10-28 00:45:10 +00:00
Edwin Tung
28f628e17c [DO NOT MERGE] gps: update gps driver 129.20.23.518574
Report agnss position even no NLP location
Fix to delete RTO too when delete all aiding received
Add mutex to protect malloc/free
Fix for the bug of power mode logging in ONCHIP_NMEA
Reporting PLMN (MCC+MNC) of SIM and Network
Fix GPS outage when OnChip/Host switching
Fix LPPe UBP issue
Fix gpsd crash issue

Bug: 202366527
Bug: 199818363
Bug: 199048681
Bug: 201582435
Bug: 199114573
Bug: 197716902
Bug: 195383842
Bug: 200107911
Bug: 203068978

Sanity Test: 203854792
Test: build pass

Change-Id: I27f314a4b2b5a82e27186a170f10b1041b7d0650
2021-10-27 14:09:08 +00:00
shawnlin
0aa99d3b57 Remove resource overlays for system bar heights
With the new added APIs, we don't need to overlay status_bar_height that
contains cutout size and quick_qs_offset_height anymore.

Bug: 186604541
Test: make
Change-Id: I474e7272c3240bbc36ddbb43f565e0eaed96b29e
2021-10-27 05:12:16 +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
Badhri Jagan Sridharan
a25b4d683b pixelstats: Filter "PRODUCT_TYPE" uevent for reporting VID/PID
gs101 has the kernel changes to report "PRODUCT_TYPE" upon plug-in.

Bug: 196104058
Test: adb shell cmd stats print-logs; adb logcat | grep 105011
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: Ia61a3b2a693d4f2b630409dd786342743e330ef2
2021-10-26 00:29:14 +00:00
Victor Liu
8144b338f0 move uwb feature to system_ext am: 52317f994b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: Ibdabb697d1e81d5380691e5422ee6e2ad49e7242
2021-10-20 15:49:49 +00:00
Michael Ayoubi
a7f4ef05b5 Add SE State Changed Intents in EuiccSupportPixel
Needed to emit SE_STATE_CHANGED from Thales updater code to clients when
eOS or applets are being updated. Current clients are GMSCore and UWB
Service.

Bug: 189881206
Bug: 183606657

Test: Confirm overlay worked and intents were received.

Change-Id: Ia1106d6fad20797e72c49cfc1f790289d0da0963
2021-10-20 00:32:55 +00:00
Victor Liu
193c85c4ef move uwb feature to system_ext
this prevents the gsi device from starting uwb

Bug: 203052451
Test: nearby-share on uwb device
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: Iec21b82dfd79849b2d949f696e59d64f0487edad
2021-10-19 21:57:25 +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
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
eddielan
01459cea67 fingerprint: Enable HIDL fingerprint status flag
Bug: 202485883
Test: Bulid Pass, getprop vendor.fp.status
Change-Id: I67d39a91c24e3d91a029422fd8860de6d74a8422
2021-10-12 02:58:16 +00:00
Edwin Tung
7e1adeaf82 [automerger skipped] [DO NOT MERGE] gps: update gps driver 129.20.23.516938 am: 7fd8cce123 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15993111

Change-Id: Ib247d37517279c4acae596483ece50383299da58
2021-10-08 15:14:29 +00:00
Edwin Tung
7d0d2634ef [DO NOT MERGE] gps: update gps driver 129.20.23.516938
Rescale accuracy confident to 67% for AGPS NI request
Fix velocity URE in SatellitePvt
Fix scd crash
Enhance log mechanism
Fix avc denied
Force 1 sec interval in emergency mode

Bug: 199581865
Bug: 200654813
Bug: 201514516
Bug: 197196725
Bug: 201382800
Bug: 201729040

Sanity Test: 202280989
Test: build pass

Change-Id: I425e3f05e9ffc51ffeaa3f4d3d17a92592097a23
2021-10-08 14:55:53 +00:00
Sayanna Chandula
611e6d7a25 Revert "powerhint: thermal: Support powerhint to change tmu control-temp" am: f319cfc346 am: 7829c88d25
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16009633

Change-Id: I31be22450d7f850a8f8ba274f6ba60c3a0a8a513
2021-10-08 05:27:29 +00:00
Sayanna Chandula
b4d3792d59 Revert "powerhint: thermal: Support powerhint to change tmu control-temp" am: f319cfc346
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16009633

Change-Id: I89c042150bc17229097cfae4a88b122f7f0b395d
2021-10-08 05:13:03 +00:00
Sayanna Chandula
e2da019e13 Revert "powerhint: thermal: Support powerhint to change tmu control-temp"
This reverts commit 7769380db2427d19bbcfad12af08818e75988068.
During debugging of b/192030129, it was observed that setting trip temp
followed by a suspend results in temperature getting struck at 10
degrees. Reverting powerhint change will disable dynamic setting of
trip temp and thus avoiding the 10 degree issue.

Bug: 192030129
Test: build and boot on device
Change-Id: I42ca12be23abf9c48fb2985f1506557d0fb93c1c
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2021-10-07 21:58:17 +00:00
Wei Wang
5a3e0e98e9 Remove DISABLE_TA_BOOST completely am: 0f0f4f6d8a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16007650

Change-Id: If46b121ad07401849082b2db6557dbe490813b12
2021-10-07 19:29:45 +00:00
Wei Wang
a89970daa6 Remove DISABLE_TA_BOOST completely
Bug: 199292504
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ibcdb9b5968268be9765654c691910dfe7ba549ac
2021-10-07 10:30:20 -07:00
eddielan
8f4c51d3b3 fingerprint: Add suez config
Bug: 187663434
Test: Build pass
Test: Check log on logcat
Change-Id: I42026d13dafcfd7d32e37a1e5edb5e7f327d562d
2021-10-07 03:43:01 +00:00
Bill Lin
b5f66163aa Revert "Add support One-handed mode in B3"
Note : We should customize in specific device for B3, instead of
override gs101

This reverts commit d326059d567690c4b2ffbaaf3e5c3fd51e5a69aa.

Reason for revert: 201962520

Change-Id: I2be3f5bebf52ee4be4b7bf8c0ce50bb83380f8ee
2021-10-06 06:08:44 +00:00
Sunil Ravi
3807f28914 Configure channel 149 & 36 as p2p preferred channels. am: 166f4da68c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15978153

Change-Id: I1fc3c8dedeae33ca81a16621f587b2956d15b746
2021-10-05 17:54:14 +00:00
Sunil Ravi
f8a26c3286 Configure channel 149 & 36 as p2p preferred channels.
Bug: 194132777
Test: connect STA to 2.4GHz and verified that p2p is able to come up in
5GHz DBS mode.

Change-Id: I07fb6b586b89f66fd105673d47b2d2367c30e487
Merged-In: I07fb6b586b89f66fd105673d47b2d2367c30e487
(cherry picked from commit 20c24cfd61926f128ca88f1ccf637663fa6575df)
2021-10-05 17:40:09 +00: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
Max Kogan
12186695b5 dumpstate: dump AoC memory votes stats am: 03c1d9311b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15901108

Change-Id: I14f2fe73e01ec2544ab7e83b384ed4f4cb0da90a
2021-10-04 18:15:20 +00:00
Wei Wang
906b1d27d5 Boost SF higher for app launch am: 143edae395
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15953897

Change-Id: I0c8b59d2c582a0b6c197420bc6ffe3e91c4904ea
2021-10-04 18:15:14 +00:00
Wei Wang
b97333ab61 powerhint: use DISPLAY_IDLE signal to control TA boost am: b88f1debbd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15933523

Change-Id: Ibaee4bcb1ae1714f2da86774611a9f2b3770b777
2021-10-04 18:15:09 +00:00
Max Kogan
6896836e0e dumpstate: dump AoC memory votes stats
Bug: 198203507
Test: adb bugreport, open Bug Sections "dumpstate_board.txt"
Test: search for "AoC memory votes"
Change-Id: I24d80a6e3493ccc961b8eed3b9da4b9dfbbf457f
2021-10-04 18:04:01 +00:00
Wei Wang
902e84ee68 Boost SF higher for app launch
Test: Build
Bug: 199779453
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ide9ae93932c09fc1e5090981094d7d3935231e21
2021-10-04 17:57:16 +00:00
Wei Wang
093068d0dc powerhint: use DISPLAY_IDLE signal to control TA boost
Add additional 200ms boost from DISPLAY_UPDATE_IMMINENT and INTERACTION.

Bug: 199292504
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I95d4d4f6f4763714d450eacdd63d0c5f724ac05a
2021-10-04 17:51:05 +00:00
chened
0372678fe3 camera: disable saliency and segmentation for factory build
Test: build pass, aosp camera
Bug: 192660033
Change-Id: Ia5170e956b97dcab745231f0d5441a3511e7edf7
2021-10-04 03:39:22 +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
Martin Liu
950d14c455 gs101: move zram to pixel common mm folder
Move zram settings to pixel common mm folder

Bug: 200899926
Test: check swap size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ic81e26d706459e14029f611c03df4a14d4184277
2021-10-01 17:12:46 +00:00
Edwin Tung
529a5cec3e [automerger skipped] [DO NOT MERGE] gps: update gps driver 129.20.23.516384 am: f8d329ebdc -s ours am: 72f1a7f703 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15939094

Change-Id: Ibfd120014da67307fad06c0ce877c278a4debe71
2021-10-01 06:39:13 +00:00
Edwin Tung
7c59e634e4 [automerger skipped] [DO NOT MERGE] gps: update gps driver 129.20.23.516384 am: f8d329ebdc -s ours
am skip reason: skipped by user edwintung

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15939094

Change-Id: Idaed67f52b0baca9f2d0aea4e33ac549a9df0f00
2021-10-01 06:23:22 +00:00
Petri Gynther
96a90bd47a Revert^2 "gs101: re-enable prebuilt boot.img/boot-user.img usage"
This reverts commit 48a5fe4304e3c5720f468d6b9147ca36bbe9eb4e.

Reason for revert:
Re-enable gs101 prebuilt boot image usage.
All necessary prerequisites have been merged:
cl/399995993, ag/15953678, ag/15953343, ag/15953037, ag/15953719

Bug: 201469630
Bug: 201476061
Change-Id: Idb46a74e7830a274c45fee1f43a52dbcd7e96ca4
2021-10-01 06:00:08 +00:00
Edwin Tung
3221acba2a [DO NOT MERGE] gps: update gps driver 129.20.23.516384
Rescale accuracy confident to 67% for AGPS NI request
Set LPPe DBH altitude value to maxima if no FLP altitude

Bug: 199581865
Bug: 199719571
Bug: 201238299

Sanity Test: 201497808
Test: build pass

Change-Id: I151340dbed8b4ee4aa972c09d284e39f9702223c
2021-10-01 04:14:07 +00:00
Jason Chiu
d037bee915 Revert "gs101: re-enable prebuilt boot.img/boot-user.img usage"
This reverts commit 7badc4b5f1c7b6adff8cd9142f5c97bd4a5a0d49.

Reason for revert: it introduce b/201469630 and b/201476061

Bug: 201469630
Bug: 201476061
Change-Id: Id48ea931410a55bfd382feb7a0da02994fdf8928
2021-09-29 07:30:10 +00:00