Commit graph

682 commits

Author SHA1 Message Date
Petri Gynther
50f56ac8c9 gs101: re-enable prebuilt boot.img/boot-user.img usage
When $(TARGET_KERNEL_DIR) contains:
* boot.img
* boot-user.img

then use those as prebuilt boot images for the target build.

Note that debug kernels (e.g. $(TARGET_KERNEL_DIR)/kasan) only have
Image.lz4, so the debug build ends up building boot.img from source.

Bug: 199997188
Change-Id: I6bb70644d8ab7356986f6ca6a77f3098d1ee0f83
2021-09-28 10:56:06 -07:00
Edwin Tung
668587bc3d [DO NOT MERGE] gps: update gps driver 129.20.23.515167
Fix LPP GNSS ID misplaced with QZSS
Disable hardware Geofence
Improve log for onChipStopNotification
Improve PMM mode
Restore carrier config after gps crashing
Fix incorrect altitude encoding of LPPe DBH
Set LPPe CP enable by default
Set LPPe DBH altitude value to maxima if no FLP altitude

Bug: 193380649
Bug: 196702082
Bug: 197196725
Bug: 197563181
Bug: 198261454
Bug: 199677624
Bug: 198727829
Bug: 199719571

Sanity Test: 200797783
Test: build pass

Change-Id: I65813ae49d631f9fe73f2f35ed088978d0ee8f95
2021-09-28 01:37:39 +00:00
Shinru Han
41e8d749db gps: Update SecondaryConfigPath
The seconday config under data/vendor/gps/logs/ could be removed by tester.
Update the SecondaryConfigPath to data/vendor/gps/overlay/.

Test: log config can be updated by pixellogger
Bug: 194493365
Change-Id: I4045908d33abb6c17197ee5c596b945025c5a775
2021-09-28 01:26:49 +00:00
Minghui Tan
50be6f6070 Update CPU throttle frequencies.
Bug: 199761265
Test: CTS
Change-Id: Ie1c907cd96367374f0b51086f54b4d18ab9907da
2021-09-27 21:48:23 +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
Santos Cordon
60f0f582c5 Adjust Doze default value to accomodate HBM. am: bfb3168639
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15897167

Change-Id: Ie5a0ed3d863794a9eeb12c36131c090d105a54a9
2021-09-27 13:30:33 +00:00
Jimmy Shiu
131cf4b76b powerhint: fine tune non-ADPF boost
For 120FPS, lower the uclmap.min from 185 to 157
For 90FPS, lower the uclmap.min from 123 to 107
For 60FPS, lower the uclmap.min from 62 to 42

Bug: 198723106
Test: Running PtsUiBench with disabling ADPF.
      http://sheets/1UbUVo0pxg1Bz0MKPIkv5d1XO1iVppU0P3YVQjivoP8Q#gid=1963167952
Change-Id: I311acbcf352ed0f5bb8fe2d176c48edd003eaf31
2021-09-25 01:01:36 +00:00
Santos Cordon
18bb9722da Adjust Doze default value to accomodate HBM.
HBM changes moved the normal max, so we should adjust the doze
default value by same scale.

Bug: 194972547
Test: Manual, verify behavior is similar to Android R.
Change-Id: I953b8f68f3ad0d9369d6fb0466e178ce366fdbc4
2021-09-23 14:05:29 +00:00
Badhri Jagan Sridharan
aa0a8e1b7d dumpstate: Dump TCPC registers and attributes
debugfs not accessible in user builds. Hence dumping through
sysfs.

Bug: 200313640
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I5e42d1cd9b53c0989dbbb35bf580271d15cd8db3
2021-09-23 05:38:36 +00:00
Shinru Han
8108f9d080 gps: Rename secondary config
Bug: 200255075
Test: on device
Change-Id: If151b8c215e775de24d3c74d3e46b10ab24f6f4e
2021-09-22 14:51:33 +08:00
Edwin Tung
207478ee2b [DO NOT MERGE] gps: update gps driver 129.20.23.514871 am: 06041ffe05
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15824553

Change-Id: I01e526453e584d992b9734a9f6c8da0486bdea52
2021-09-17 03:17:52 +00:00
Edwin Tung
fb0dd13ec3 [DO NOT MERGE] gps: update gps driver 129.20.23.514871
Restore carrier config after gps crashing
Fix incorrect altitude encoding of LPPe DBH

Bug: 198261454
Bug: 199677624

Sanity Test: 199977515
Test: build pass

Change-Id: I2b75b35a256cbbbd1c94ada0d46974d9c9838976
2021-09-16 09:34:38 +00:00
Edwin Tung
96332941f9 gps: Enable power save mode
Bug: 192866284
Test: Enter power duty-cycle
Change-Id: I245e52023c5484e6d9fd4dcba75b5523600598b0
2021-09-15 14:51:02 +00:00
Shinru Han
a575391d96 gps: Configuration split
Split configuration for different build variants.

  user:
  gps_user.xml*, lhd_user.conf, scd_user.conf

  userdebug & eng:
  gps.xml.*, lhd.conf, scd.conf

Bug: 197586294
Test: on devices
Change-Id: Icddd6be30dfe2c1eb2dca5f9a61c1b9f43867cc6
2021-09-15 13:20:14 +00:00
Ocean Chen
dd652a2ccd Pixelstats: add more UFS error count paths
The UFS resume flow also increase the reset count.
It makes the reset count cannot represent the real
error count. So we use other count instead of reset count

Bug: 199459367
Test: run storage-qa pixel/022
Change-Id: I853bd5da410b78a0f9a76beee2e4745f68ddba59
Merged-In: I853bd5da410b78a0f9a76beee2e4745f68ddba59
Signed-off-by: Ocean Chen <oceanchen@google.com>
2021-09-14 17:46:22 +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
Quang Luong
5d1433762e WifiCoex: Add default channel 11 for band 40
Use default wifi channel 11 if interference from band 40
renders all 2.4GHz wifi channels unsafe for coex.

Bug: 198345384
Test: adb shell cmd wifi set-coex-cell-channels lte 40 2400000 200000 -1
0, verify that coex log does not contain unsafe channel 11

Change-Id: Ifd90ed1846bc9897a88244b5fdc964143c00d702
(cherry picked from commit 9a0d4f1f94da0cf96aaefb59cf9fba7228268672)
Merged-In: Ifd90ed1846bc9897a88244b5fdc964143c00d702
2021-09-08 15:02:49 +00:00
Roger Fang
a555dec81e device: gs101: add speaker health stats
Add the sysfs that required by the new ATOM of VendorSpeakerStatsReported.

Bug: 175736081
Test: Manually test with ATOM

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I61a47ff963d7c9ed75d9c636b171c791f7ae7c38
2021-09-07 03:19:32 +00:00
Petri Gynther
299ca16835 gs101: clean up kernel variables
1) remove TARGET_BOARD_KERNEL_HEADERS
2) remove TARGET_PREBUILT_KERNEL

Bug: 198682676
Change-Id: I9ab161ee75dc33e135ad87e084b3373350ca0c93
2021-09-03 12:35:16 +00:00
Edwin Tung
d80cf7415e gps: update gps driver 129.20.23.513912 am: 63d85c21e8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15743517

Change-Id: I3b068cf749a96b1b52287115d19e3638e07140f3
2021-09-03 08:18:41 +00:00
Ted Lin
2b86da4352 dumpstate: move the dump registers from regmap to each driver
dumpstate availible to dump data with below 2 permission:
-r--r--r-- 1 root root
-r--r----- 1 system system
but /d/regmap permission is -r-------- 1 root root
1. we cannot change root to system with chown if the file node is root
2. we cannot change to read with chmod if the file node is root
3. try change permission in vendor_init causes sepolicy build fail with
   message rule neverallow

Base on above results, we added new file node in kernel with available
permission to dump needed data and dump it.

Bug: 194941806
Test: adb bugreport
Change-Id: Ieeb1adfb0351ceb33bf817cbef3663d41cdb8645
Signed-off-by: Ted Lin <tedlin@google.com>
2021-09-03 05:44:37 +00:00
Edwin Tung
16e8a27f52 gps: update gps driver 129.20.23.513912
Fixed a bug of missing ref location in ME switching
Fixed to report velocity type correctly
Increased PGLOR,6,PWR nmea sentence buffer and GLL will print the error log if the sentence is longer than expected
Added a ring buffer for malloc/free debugging with dump
Fixed ESW patch download issue

Bug: 197716902
Bug: 197711819
Bug: 197620911
Bug: 196499748
Bug: 197916943

Sanity Test: 198605012
Test: build pass

Change-Id: I06e25376c194058404e5d65e463086d3d1e2f1d9
2021-09-02 21:02:27 +08: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
Puma Hsu
c798852213 usb: fix the naming for uwb mode
In previous we created a new bootmode "uwb" which will enable
the ACM port, but the name was wrong. Rename it as "usbuwb"

Bug: 187877902
Test: ACM port can be enabled
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: Id27930c4c34e7272cebf1825b6aa68f526e84112
2021-08-29 22:21:30 +08:00
Puma Hsu
fbcb7ad5dc usb: create new functions for uwb
uwb needs ACM port, create this function combination.

Bug: 187877902
Test: ACM port can be enabled.
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: I14c6af95bbd5e9e0b2c4a17a1fffb6e04def2c9b
2021-08-26 06:37:39 +00:00
Edwin Tung
31cf630527 gps: update gps driver 129.20.23.512827 am: b4ee393e13
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659562

Change-Id: If37d23febac5921bb090fadf74ffeb1a4f482985
2021-08-25 09:21:00 +00:00
Edwin Tung
09ea2fd293 gps: update gps driver 129.20.23.512827
Set minimum interval 1000ms for CHRE request
Fix position gap in scheduling request
URA value should not be divided by sqrt of 2 regardless of position source
Enable SvPvt logic even the period is less than 1s
Fixed Native crash: Additional check before using gyro mean as VDR measurement.

Bug: 196499748
Bug: 196927451
Bug: 197141478
Bug: 196851941
Bug: 197061041

Sanity Test: 197583040
Test: build pass

Change-Id: I1409f75e50a7b8402c967957fa4148823d22caea
2021-08-25 09:08:11 +00:00
Petri Gynther
ccbd2c7431 Revert "gs101: use prebuilt GKI boot.img for production builds"
This reverts commit 96007d8f9cab5f6028cb4a1b15e30c6ffe8bf5dd.

Temporarily revert prebuilt boot.img usage on sc-qpr1-dev
until we have official signed GKI boot images available.

Bug: 188095549
Bug: 191417025
Change-Id: I2f9907d3674f8a8869aac3c926994e116c76a91b
2021-08-23 19:20:43 +00:00
Oleg Matcovschi
95f4b9ccb7 bootctrl: enforce synchronous write operation
Bug: 197104397
Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
Change-Id: Ifbc612fc40847395ccb751463b1bb15bd3f20657
2021-08-20 17:16:35 +00:00
SongFerngWang
a07c71c4c7 Enable the Connectivity helper Settings UI am: f3c254dd05
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15337099

Change-Id: I3438eac67e7dc2ec085975fe7d2c430ff585e02f
2021-08-20 16:44:15 +00:00
SongFerngWang
b296e9a28d Enable the Connectivity helper Settings UI
Bug: 190018497
Bug: 190017996
Test: build pass
Change-Id: I0970be731d37a25d73ee0cc7e5c147627567b4ed
2021-08-20 16:29:31 +00:00
AleX Pelosi
115455b772 gs101: use CPU4 in charger mode am: 5ac742b9fc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15631479

Change-Id: I5d918af95f3a8f6587cebe65ea806468d04c286e
2021-08-20 00:11:10 +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
Chris Fries
43348d59a2 Revert "device.mk: Freeze vendor security patch 2021-09-0x" am: 376fb1a2fe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15520497

Change-Id: Iac2bb7179bb324642674651b27d3be3262d4533e
2021-08-19 19:56:15 +00:00
Chris Fries
ad0409f917 Revert "device.mk: Freeze vendor security patch 2021-09-0x"
Undo this temp hack before launch.

Bug: 187105270
Change-Id: Ieb210d1c713aa4434748af8d6848574f5da7f798
2021-08-19 11:15:06 -05:00
Taehwan Kim
03dee4e377 firmware: mfc: update release MFC F/W(21/08/13) am: 632f404d83
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15580548

Change-Id: Iee309bb431bf64c2f17372181b21781f0c6bd66d
2021-08-18 21:40:15 +00:00
Taehwan Kim
72cccf1d6f firmware: mfc: update release MFC F/W(21/08/13)
- Reverted the "Implemented so that H.264 decoder return
FEATURE_NOT_SUPPORTED error when content is 10-bit" feature

Bug: 196487829
Test: android.mediav2.cts.DecoderColorAspectsTest
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: Iaffa77b07d341c973b12abf26250f8c12ce3ce5a
2021-08-18 21:27:09 +00:00
Chris Fries
b31a45d447 device.mk: Freeze vendor security patch 2021-09-07 am: c2c594926f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15613533

Change-Id: I4d0c39d7e20e2c75afd5bb77cb9b578ec58a95af
2021-08-18 20:04:12 +00:00
Chris Fries
6d42117462 device.mk: Freeze vendor security patch 2021-09-07
(stopship hack) Roll forward the SPL so that we can test
rollback cases in testing before launch.

Bug: 187105270
Change-Id: Ic0bdb7e3ece264aa42af1965421a485a8f16980b
2021-08-18 12:51:30 -05:00
George Lee
a9377aac5d bcl: Put OCP_WARN level back to original level am: 70d560fc98
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583753

Change-Id: I0a27cb99eed07d8826c2e1b00da1681d008deb7f
2021-08-17 16:38:07 +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
Chris Fries
aed3eda558 device.mk: Freeze vendor security patch 2021-09-06 am: ead2bd66e1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15580480

Change-Id: Ia6fb63a77cb344e352187c4993d52f01af42897f
2021-08-16 23:43:08 +00:00
Chris Fries
44b49fdcab device.mk: Freeze vendor security patch 2021-09-06
(stopship hack) Roll forward the SPL so that we can test
rollback cases in testing before launch.

    Bug: 187105270

Change-Id: Ia6e75f0b6699f7967d4b92ef973f5ca6af1b5e6a
2021-08-16 15:29:32 -05:00
Peter Liu
2fd2169f7b remove camera prefer idle for streaming low am: 01886a30d7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15533425

Change-Id: I12a5fda87062c0f7a049d7120bdc43986595a2d6
2021-08-14 05:04:41 +00:00
Peter Liu
cbb6ccd278 remove camera prefer idle for streaming low
Currently, the streaming low hint is not used yet.
but we plan to use it with 30fps mode or at the modes that can remove
prefer idle.

Bug: 195327798

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: Ibc75bf596bd05831605643c3fe427154fa626093
2021-08-14 04:50:34 +00:00
Paul Crowley
b6ed885346 Revert^2 "Enable deleteAllKeys from vold" am: a380060b2e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15547745

Change-Id: Ia823434eb06df9d60b3feb631076c968f4ec5ce1
2021-08-13 22:44:56 +00:00
Paul Crowley
80db0638d7 Revert^2 "Enable deleteAllKeys from vold"
Revert of cac9588d7ee8d3e5bfa684cd0bb92db80ac3bac4
aka I0a236e0308b9b8354e669b9261fc22a88a01f743
re-landing change Ife779307db0fe161c8889f7aaab34e2899a6c9e6

Bug: 187105270
Change-Id: I2981420841f2ecdc67a36f9a8c7b81bad00bfe96
2021-08-13 22:23:33 +00:00
Edwin Tung
e37109d6f3 gps: update gps driver 129.20.23.511689 am: 69fc814a6d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15527098

Change-Id: I9247ce86ae3bf5d435a7eae499e918924ced1598
2021-08-13 10:31:34 +00:00
Edwin Tung
e4f95dfa9c gps: update gps driver 129.20.23.511689
Reduce warmstandby timeout to 15 sec
Add OnChipGpsCarrierType
Disable OnChip notification
Refine RF path loss
Changed to send SUPLEND when interrupted by another NI SUPL
Fixed the replay mismatch issue by modifying LTE filter configuration
Fix incorrectly set period of CP periodic request
Fixed empty provideLocationInformation-r9 when running NI SUPL MSB
Fixed Bias track issue from US
Remove time of flight adjustment for Google SvPvt support
Satellite PVT Info API for google support

Bug: 193222014
Bug: 196013847
Bug: 195895395
Bug: 195066618
Bug: 195723263
Bug: 195638041
Bug: 182438827
Bug: 194637097

Sanity Test: 196184169
Test: build pass

Change-Id: I55b75a827734b9e1ef27c73674dd6c570e14d8e4
2021-08-13 10:16:45 +00:00
Daniel Solomon
818f538e5c display: make set_idle_timer_ms optional am: 6f1cd42f6a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15483380

Change-Id: Ib3a4f09ff919a2125426312d510689529ea26163
2021-08-13 05:42:10 +00:00