Commit graph

77 commits

Author SHA1 Message Date
Jeffrey Carlyle
f946e78db6 dck: pick up recovery mode library for digital car key wiping am: 24c9524b72 am: d580bf7a58
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19756482

Change-Id: Ida052cd7350f39e4d22efb7ff652f2243d0e0378
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 23:06:50 +00:00
Jeffrey Carlyle
24c9524b72 dck: pick up recovery mode library for digital car key wiping
This is done by conditionally including the makefile under vendor so
that AOSP builds where vendor is not present do not faile.

(cherry picked from commit a3a42642f3)

Bug: 203234558
Test: data wipe in Android recovery mode on raven
Test: data wipe in Android recovery mode on c10
Test: data wipe in user mode fastbootd mode on raven
Test: data wipe in user mode fastbootd mode on c10
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: I0ef9dd1ea9eae90ed4feabd19bf9edc7434a572b
2022-09-08 21:58:52 +00:00
Ian Elliott
2325f3de87 Disable ANGLE as system GLES driver
This partially reverts the following change:

  Switch GLES system driver to ANGLE

Bug: 241757590
Test: com.google.android.GoogleCamera
Change-Id: I79fee4a16eedf87aea40fd75044e065e1811e117
2022-08-26 20:59:21 +00:00
Jeffrey Carlyle
36507d50a1 Revert "dck: pick up recovery mode library for digital car key w..." am: 63e9c666f2 am: 8a128bcef1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19751769

Change-Id: I9b9adb1b81ae0c4c24fd18d2558bd6893d5293a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 07:30:27 +00:00
Jeffrey Carlyle
63e9c666f2 Revert "dck: pick up recovery mode library for digital car key w..."
Revert "move digital car key wiping to gs-common"

Revert "clear secure element of Digital Car Keys during factory ..."

Revert "dck: switch to gs--common implementation of digital car ..."

Revert submission 19734547-b203234558-qpr1

Reason for revert: see b/243864778
Reverted Changes:
I53967a5e8:dck: pick up recovery mode library for digital car...
I8fd944c60:dck: switch to gs--common implementation of digita...
I6e8c80818:move digital car key wiping to gs-common
I60052ca58:Support calling WipeKeys with out a ui object
I459d81800:clear secure element of Digital Car Keys during fa...

Change-Id: Ic3f42d0d2c6c78be47cacf9794e7727e6ee5475f
2022-08-26 06:36:57 +00:00
Jeffrey Carlyle
cfa2a2a353 dck: pick up recovery mode library for digital car key wiping am: a3a42642f3 am: b5fc24ec3f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19704818

Change-Id: If8884b5c89f7bde6e1da46124743e1102b3c357a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 00:01:12 +00:00
Jeffrey Carlyle
a3a42642f3 dck: pick up recovery mode library for digital car key wiping
This is done by pick optionally including a Makefile so that aosp builds
in which the library is not present will pass.

Bug: 203234558
Test: adb reboot recovery; wipe data via menu; verify keys removed
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: I53967a5e8ea0327d6467623929902b90eb2c85da
2022-08-24 12:25:12 -07:00
Jaegeuk Kim
91a677cbe5 Use EXT4 for /persist am: 83e0b84caf am: 74ff274895 am: ca77f375ad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19388119

Change-Id: Iddf4a78f5a4c33055016c90d226e28e150665856
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:57:23 +00:00
Jaegeuk Kim
83e0b84caf Use EXT4 for /persist
Bug: 239632964
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Idf41e3b71fec50029b77951550def1b8c750a42d
2022-08-01 18:00:49 +00:00
Chase Wu
11403b25c9 add haptics actuator model config
Actuator models can vary across devices. Actuator models can have
different characteristics that need to be handled appropriately. Add
support to define the actuator model used in Soong makefiles.

Bug: 236202962
Test: verified that different actuator model configs are used on
different targets
Signed-off-by: Chase Wu <chasewu@google.com>
Change-Id: I4b4c5e26c52f410ec36f9b8959e8fadd2ea19b0f
2022-08-01 12:16:16 +00:00
Christopher Ferris
30f484b7f0 Force build everything as 64 bit. am: f60ad6f3dd am: c803bbc4da am: 4d669c5f0f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19294720

Change-Id: I8051b0de31adfc613aad5f54e897e1ba365acdb7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 21:17:48 +00:00
Christopher Ferris
f60ad6f3dd Force build everything as 64 bit.
When building the 64 bit and the 32 bit executables, there
are a few targets that are prefer32. Using this option forces
those executables to be built as 64 bit.

Bug: 229787331

Test: With this option, drmserver/mediaserver are built as 64 bit.
Test: Without this option, drmserver/mediaserver are built as 32 bit.
Change-Id: Ie76ffe17f14b5157983796a616436bfa12987136
2022-07-15 20:06:52 +00:00
Christopher Ferris
90692cb9e0 Enable 32 bit building, but only 64 bit zygote. am: 377294ed9d am: 93e0af1927 am: 6ab155af37
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19281764

Change-Id: Ib233dfa4c65347034fcf75802c8570a168bd445c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 01:36:13 +00:00
Christopher Ferris
377294ed9d Enable 32 bit building, but only 64 bit zygote.
Bug: 229787331
Test: Build/Boot in progress.
Change-Id: I4686b567fd96a6cd7c3f6e269f0424811c0b3d6a
2022-07-13 12:20:58 -07:00
Lucas Wei
907e801b6a Rename first stage module list to vendor_kernel_boot.modules.load am: b2d1f99d60 am: 41c4105145
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18869517

Change-Id: I63558eded93d5fe36f4c71a78aa217cfe89c547e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 15:13:34 +00:00
Lucas Wei
b2d1f99d60 Rename first stage module list to vendor_kernel_boot.modules.load
Bug: 234554094
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: Ie46ff0ef2db81169f519bc0266b8298a79712870
2022-06-15 10:12:47 +08:00
Lucas Wei
9dc497283c Rename first stage module list to vendor_kernel_boot.modules.load
Bug: 234554094
Signed-off-by: Lucas Wei <lucaswei@google.com>
Merged-In: Ie46ff0ef2db81169f519bc0266b8298a79712870
Change-Id: Ie46ff0ef2db81169f519bc0266b8298a79712870
2022-06-15 10:11:53 +08:00
Automerger Merge Worker
ba5e63c149 Merge "Enable vendor_kernel_boot partition for gs201 am: 03495e41e2 am: 34e719958a" into tm-qpr-dev-plus-aosp am: 76ab187545
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17817307

Change-Id: I653eda61f3248104b55ec513812e6ef46cb0d0d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 16:10:13 +00:00
Lucas Wei
03495e41e2 Enable vendor_kernel_boot partition for gs201
- Disable dlkm ramdisk fragment from vendor_boot
 - Enable vendor_kernel_boot and OTA support
 - Set partition size to 64MB

Bug: 214409109
Change-Id: I4a6ee0b2f1c44a4d257cc51cf408f6f7cf295471
Signed-off-by: Lucas Wei <lucaswei@google.com>
2022-05-26 13:51:34 +00:00
Jaegeuk Kim
453105b5cc Revert "use erofs for RO partitions" am: 0c024a7f2b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18494501

Change-Id: If2a1d4fde080cd0c838494812933196e1114abf2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 22:31:03 +00:00
Jaegeuk Kim
8c2c364d58 Revert "use erofs for RO partitions"
This reverts commit 554e90c439.

It turned out EROFS has app-launch time regression.

FS			Total image	App-launch	OTA size (MB)
			    size (MB)	    Time (AVG)
ext4			4040 (0%)	403.77		2252
erofs (compression)	2754 (-32%)	540.98 (+34%)	2528 (+12%)
erofs (no-compression)	4126 (+2%)	476.23 (+18%)	2277 (+1%)

Bug: 231934752
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I33f68a426ff655a9282fec66c0fa54215954aa45
2022-05-23 21:00:19 +00:00
Jaegeuk Kim
0c024a7f2b Revert "use erofs for RO partitions"
This reverts commit 554e90c439.

It turned out EROFS has app-launch time regression.

FS			Total image	App-launch	OTA size (MB)
			    size (MB)	    Time (AVG)
ext4			4040 (0%)	403.77		2252
erofs (compression)	2754 (-32%)	540.98 (+34%)	2528 (+12%)
erofs (no-compression)	4126 (+2%)	476.23 (+18%)	2277 (+1%)

Bug: 231934752
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I33f68a426ff655a9282fec66c0fa54215954aa45
Merged-In: I33f68a426ff655a9282fec66c0fa54215954aa45
2022-05-23 21:00:19 +00:00
Martin Liu
d4a81067ff Disable zone dma32 am: 14e8f21c6a am: 8491b99af6 am: ce1f44dd4b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18368632

Change-Id: I6c002b4f06516d99ee636d06b2be67dc841040f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 08:23:53 +00:00
Martin Liu
14e8f21c6a Disable zone dma32
As HW doesn't have 32 bit address limitation, we can disable
zone dma32 to simplify memory management and improve performance.

Bug: 224535283
Test: boot, test basic wifi, faceauth, camera, UDFP features
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ia7c1098ddd4b91738702dd99552661dbe18cfaa5
2022-05-23 07:31:39 +00:00
Lingfeng Yang
3e9ca2c727 Switch GLES system driver to ANGLE
Test: make and flash
Bug: 218321565
Change-Id: Ia40c708254fe111726626e5744d71f949e3323ac
2022-05-18 02:59:30 +00:00
Yichi Chen
809d526c14 Revert "Revert "[Gralloc] Remove the conditional configs for Gralloc"" am: 6155b7811a am: 6e5d588f64
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18329096

Change-Id: Ibe63012f44a59c6bcdbba92e29101509d33ac3ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 23:58:15 +00:00
Yichi Chen
09fd09985b Revert "Revert "[Gralloc] Remove the conditional configs for Gralloc"" am: 6155b7811a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18329096

Change-Id: I32622d69436bce7ea3bff03180b87d885799eece
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 23:31:20 +00:00
Yichi Chen
6155b7811a Revert "Revert "[Gralloc] Remove the conditional configs for Gralloc""
This reverts commit 184562c0f8.

Reason for revert: The cache coherency shouldn't be reverted. This will cause the function break.

Change-Id: I9a62e507911a3eaed704f029546e81770ef3d199
2022-05-12 22:23:35 +00:00
Jay Wang
03ac9d0c3c Revert "[Gralloc] Remove the conditional configs for Gralloc" am: 184562c0f8 am: 2a1bd2dfe2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18310586

Change-Id: If1eb226310c440bd4cb0f894ab6bd6b1ceacebb0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 07:31:36 +00:00
Jay Wang
3257de1670 Revert "[Gralloc] Remove the conditional configs for Gralloc" am: 184562c0f8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18310586

Change-Id: I03a0b0c52448be3874c4e6d28451073e74a252f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 07:05:13 +00:00
Jay Wang
184562c0f8 Revert "[Gralloc] Remove the conditional configs for Gralloc"
This reverts commit 15dd6c2272.

Reason for revert: Caused the power regression b/231537621

Change-Id: Ie8d74127a16cf0a938201cf5e1cb7a76fa9ade0e
2022-05-11 15:56:07 +00:00
Vincent Palomares
ca5f67a539 Add p10c10 perf setup script am: e6c32d5165 am: 2ed1a55b3b am: 4cc8efbc02
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18104015

Change-Id: I2094334415753bf581730abce1ec49ec2532db86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 20:00:22 +00:00
Yichi Chen
d9ed4ff223 [Gralloc] Remove the conditional configs for Gralloc am: 15dd6c2272
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17987925

Change-Id: I046735b7c5018cebcb01a870e708eaef828f9fa4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 19:15:36 +00:00
Yichi Chen
15dd6c2272 [Gralloc] Remove the conditional configs for Gralloc
Since GRALLOC_VERSION control has been totally removed, the
corresponding conditional configs should be removed to avoid wrong
configurations.

Bug: 224911573
Test: gralloc sync function can work to avoid noise in tiktok
Change-Id: I7d48f0271a251dfef2abc13dea59b92c541a497e
2022-05-02 18:45:16 +00:00
Vincent Palomares
e6c32d5165 Add p10c10 perf setup script
Bug: 204892459
Test: none
Change-Id: Ic5e21f982ad8da2fe83279eaba7b8b31d3f8ff5a
Signed-off-by: Vincent Palomares <paillon@google.com>
2022-04-30 00:20:33 +00:00
Chung-Kai (Michael) Mei
7260497897 Revert "Enable load kernel modules in parallel"
Revert "fix path for i2c peripheral device"

Revert submission 17338969-gs201_parallel_load_enable

Reason for revert: b/229241620 RamdumpTest failed
Reverted Changes:
Ib0b4f19f4:Enable load kernel modules in parallel

Change-Id: I1dfea73fc9cd1549721201916fbf6e1184d56e56
2022-04-20 02:57:08 +00:00
chungkai
7bb2178bc3 Enable load kernel modules in parallel
Test: boot successfully
Bug: 223463247
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Ib0b4f19f46a029113bd71371e50c318218b517fd
2022-04-08 02:20:40 +00:00
Kyle Lin
2db72b9aee BoardConfig: Target arm v8.2a and A55
This will let bionic use 8.2a atomics which helps scudo locking.

Bug: 224756824
Test: build , boot and check by getprop

Change-Id: Ie5f55071af5b8aff293224665ca68942f3e86625
2022-04-05 18:00:59 +00:00
Martin Liu
3bcb448aea Keep minimium amount of swiotlb
Keep 2MB swiotlb for devices that not support 36bit access.

Bug: 226578178
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I88deb288e326880b0328c06f5d1b32777cc1ccb9
2022-03-25 12:57:43 +00:00
Petri Gynther
19c92aa321 gs201: use prebuilt GKI boot.img for production builds
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: 223663549
Change-Id: If9d2b1041108cec8fc0481e4b633502371d6f987
2022-03-24 16:53:48 +00:00
Martin Liu
b8b02bc357 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: 207573157
Test: check total memory and io_tlb_nslabs
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I21eac64f57505c14e12fed50980aad4d818b34cb
2022-03-23 17:08:18 +08:00
Martin Liu
1c697c5df3 Enable page pinner
Enable page pinner to catch long pin pages' history so
we can root cause issues.

Bug: 224771748
Test: check kernel cmdline
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I3b384d427ac0ba48841d9a13e8f5565d9a83fb72
2022-03-16 05:44:23 +00:00
Martin Liu
66fe1adedd sync RCU settings
sync RCU settings to improve overall RCU latency

Bug: 224756824
Test: check cmdline
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I1d320a308009111a0598bbda3f5c5da9e447e17e
2022-03-16 01:00:26 +00:00
Martin Liu
e00a9b2099 Disable memcg
Pixel kernel don't use MEMCG, let's disable it to
minimize the overhead.

Bug: 224521042
Test: check cmdline
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I60681fb04e4f9a41814eda5988b6c1a0d4fb127c
2022-03-15 01:05:11 +00:00
Ramji Jiyani
f53de92c92 Pixel T launch devices: Enable system_dlkm
Set flags to enable system_dlkm dynmaic partition
for GKI Modules for T launch pixel devices.

Partition will be empty as of now but this adds
enough support to pass the vts for feature.

Bug: 222334390
Test: TH, manual build, Code testing gs101 & R6
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: Ic56dd711ab97f3ae993cc5c543fabc8cbe3f347c
Merged-In: Ic56dd711ab97f3ae993cc5c543fabc8cbe3f347c
2022-03-04 01:42:47 +00:00
Devin Moore
2b15c10b02 Build init_boot for new devices
Builds a new init_boot.img with the ramdisk that was previously in
boot.img.
Removes the ramdisk from boot.img.
Change fstab to make sure the /dev/block/by-name/init_boot_* entries are
created in first stage init for Verified Boot.
Add init_boot.img to the list of OTA images so it is picked up for OTA
updates.

Test: unpack_bootimg --boot_img=boot.img
Test: unpack_bootimg --boot_img=init_boot.img
Test: Build and boot new device with required bootloader changes
Bug: 211823573

Merged-In: Idbd700b17d862f48ea568d1274a6550b965763ea
Change-Id: Idbd700b17d862f48ea568d1274a6550b965763ea
2022-02-24 23:32:46 +00:00
Michael Wright
55730686f5 Revert "Revert "Turn on SELinux""
This reverts commit 077aaa107b.

Reason for revert: SELinux issues are fixed

Change-Id: I90f32b8b633988ab6f79606ac8464cbb07a861dd
2022-02-23 02:41:40 +00:00
Aurimas Liutikas
077aaa107b Revert "Turn on SELinux"
This reverts commit 3923566e2c.

Reason for revert: causing com.android.pixellogger crashes

Bug: 220935985
Change-Id: If97dd3585651167762890b98c2446f3b5222f9d4
2022-02-23 02:39:55 +00:00
Adam Shih
3923566e2c Turn on SELinux
Bug: 214923175
Test: Boot to home, OTA, adb connection, wifi, phone call, SMS, Bluetooth,
LTE, camera, video, audio, GPS, lock screen, sensor, fingerprint,
bugreport, no crash loops

Change-Id: I23adacc6f3d68becd86d238046a0458baacd122d
2022-02-22 01:27:53 +00:00
Andrew Scull
661151aa2b Remove BOARD_PREBUILT_PVMFWIMAGE from the common board config
The pvmfw image is included by setting PRODUCT_BUILD_PVMFW_IMAGE in
device.mk and there shouldn't be this prebuilt override.

Bug: 199717422
Test: build
Change-Id: I0ba022e7b222ff89a4b2f991900abb3b4589396c
2022-02-01 13:21:37 +00:00