Commit graph

646 commits

Author SHA1 Message Date
Minchan Kim
c32568e32d dump page_pinner information into bugreport am: ec97992b78
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17407835

Change-Id: Iae1a04864f617d4c9b8531b8eee7ff3aef97a84c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-28 16:53:30 +00:00
Minchan Kim
ec97992b78 dump page_pinner information into bugreport
Dump page_pinner information into dumpstate_board.txt.
It helps to find vulnerable place of CMA failure.

Page pinned ts 13 us count 0
PFN 10292273 Block 10051 type CMA Flags 0x8000000000080024(uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x278/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Page pinned ts 2 us count 0
PFN 10436170 Block 10191 type CMA Flags 0x8000000000080026(referenced|uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x290/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Bug: 226956571
Test: adb bugreport <zip> and confirmed it contains page_pinner
      information.
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iaf5cd9b70116ed5fff9351dcdcc5485aef18063f
2022-03-28 16:35:02 +00:00
Nishok Kumar S
89f13e56ef ueventd: Modify gxp device permission to allow GCA app to access GXP am: f980e770bd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17397287

Change-Id: I4c88b1f6010db938844cebe5b05fd8d9e146485f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-28 09:14:59 +00:00
Nishok Kumar S
f980e770bd ueventd: Modify gxp device permission to allow GCA app to access GXP
device.

This is required to allow GCA app to access GXP
device. This is separate from selinux policies, which have already
been added to regulate access to GXP device.

Test: Run GCAEng
Bug: 223088240
Change-Id: I78b97e61c569c47771b528d8c8a4cd0e7d8a54b0
2022-03-28 08:59:19 +00:00
Bill Yi
2b481a2bb2 Bypass build time check for users-libs am: a8a4ca2748
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17415780

Change-Id: Ic7963c18270227eb9c94e2ef91fa601cc76dd569
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-28 06:41:40 +00:00
Bill Yi
a8a4ca2748 Bypass build time check for users-libs
* set PRODUCT_BROKEN_VERIFY_USES_LIBRARIES to true to bypss the build
time check on users-libs to fix the build error.

Bug: 189477034
Bug: 217478568

Test: pass the build
Change-Id: I09e5a627eeddc7529a1cc8e33c40e1750eac7c51
2022-03-28 06:20:42 +00:00
Tommy Chiu
712139d085 device: Include RKP VINF am: 1b3717c9d7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17395646

Change-Id: Iaa44c828badc88fdffec4f7b12a9e4ce8dbde80b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-28 03:18:25 +00:00
Tommy Chiu
1b3717c9d7 device: Include RKP VINF
Bug: 224920531
Bug: 221390931
Test: Build pass with PRODUCT_SHIPPING_API_LEVEL=32|33
Change-Id: I6ca8d6ef8e66daefce42e6e2a5b7c2a5104004b8
2022-03-28 02:56:32 +00:00
Martin Liu
613a64364b Keep minimium amount of swiotlb am: 3bcb448aea
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17395648

Change-Id: I82ffb66843ca9a0cad0d70b04dd828d6337085b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 13:14:07 +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
Ricky Niu
2a15453c98 usb: Add dm condition in NCM am: 7d413565cd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17395650

Change-Id: Idc4608cc4ceaa2c1f2e5a800a9766f021c4fe691
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 10:52:40 +00:00
Ricky Niu
7d413565cd usb: Add dm condition in NCM
Add vid/pid 04e8/6862 for dm condition in NCM

Test: The usb gadget functions work normally
Bug: 226682477

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I263f125d2ff961a6967b5b536c71fcbdcd87ed05
2022-03-25 10:34:56 +00:00
Darren Hsu
bd2d419adb powerstats: add AoC restart count stats am: 6bfa5980f9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17351231

Change-Id: I36a970668b8855dfc38dc9f99c0e759e7ebbe16d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 07:19:16 +00:00
Darren Hsu
6bfa5980f9 powerstats: add AoC restart count stats
Bug: 226173008
Test: dump power stats and verify restart count increased
Change-Id: I8fabb1ccf853ad26c4f455129f6d337e8eb37e2c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-25 06:59:34 +00:00
Adam Shih
d538e96cea remove cuttlefish memtrack implementation am: 552c403223
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17396303

Change-Id: Id147a6708ecefcc22481c67f281198aa49a149af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 06:31:59 +00:00
Ken Tsou
846101ee3b battery: Enable Battery Defender am: ee38fc1122
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17066727

Change-Id: I9429330ddcfd0c1882efe6bdb1ecd8cdaf41bfac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 03:24:32 +00:00
Adam Shih
552c403223 remove cuttlefish memtrack implementation
Bug: 225788729
Test: build ROM with the daemon gone
Change-Id: Ibe739256c6967e373a465e3ca9e7b42f61496fb0
2022-03-25 03:16:58 +00:00
Ken Tsou
ee38fc1122 battery: Enable Battery Defender
Sync with ag/14540731 to fix the wrong path.
BatteryDefender: Failed to write /sys/devices/platform/soc/soc:google,charger/charge_start_level
BatteryDefender: Failed to write /sys/devices/platform/soc/soc:google,charger/charge_stop_level

Bug: 222008498
Change-Id: I4782e2c387b147fc48cf4134d27af8675964dc44
Signed-off-by: Ken Tsou <kentsou@google.com>
2022-03-25 03:08:25 +00:00
Etienne Ruffieux
637dad0063 Removed audio A2dp and Hearing Aid from device.mk am: 576864b7c1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17070429

Change-Id: Ic961d6492073fcb0ca262e84614a31fae00c4835
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 00:31:51 +00:00
Etienne Ruffieux
576864b7c1 Removed audio A2dp and Hearing Aid from device.mk
Bug: 220306859
Test: atest
Tag: #feature
Change-Id: I7c882558519968fffd460896d8ce2bd133be35c2
2022-03-25 00:27:30 +00:00
Omer Osman
824eeba3ab Enable /dev/hidraw along with the appropriate group permisssions am: b1a1796c47
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17358959

Change-Id: Ifbb2de5072aaf5d3d2e94e3a1c3961aec2835d2f
2022-03-24 19:38:09 +00:00
Omer Osman
b1a1796c47 Enable /dev/hidraw along with the appropriate group permisssions
Test: Incoming HID data from Pixel Buds
Change-Id: I5934f1244f5dda8b169cdd85103b41446c81964a
2022-03-24 19:05:45 +00:00
chungkai
e2b7b9bdf6 sched: move sysfs to procfs am: b586e0609f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17346006

Change-Id: I055919d5cf46382ab67a1af8e53d0cfdc4022e4e
2022-03-24 18:16:44 +00:00
chungkai
b586e0609f sched: move sysfs to procfs
Modify the path of vendor_sched nodes

Test: work normally
Bug: 216207007
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Ib239ec8bbff66a7f25205eff68c0213cc6b62d69
2022-03-24 17:44:37 +00:00
Petri Gynther
77da822b27 gs201: use prebuilt GKI boot.img for production builds am: 19c92aa321
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17378785

Change-Id: Ia1a8631e895cc679b5386049912f7d2535ba0b7a
2022-03-24 17:24:07 +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
Tim Lin
4fa34e615a Use voice preference setting for emergency call am: 7230a6cbd4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17351124

Change-Id: I2761690d9b4875944291916755d965024e3b7e9a
2022-03-24 09:26:24 +00:00
Tim Lin
7230a6cbd4 Use voice preference setting for emergency call
config_gnss_supl_requires_default_data_for_emergency removed. Use default value of "false".

Bug: 211060538
Change-Id: Iaec1924d4bda5cdcb4ee427bfe3a12ef7e0fd420
Test: TAM help to verify
2022-03-24 08:57:00 +00:00
SalmaxChang
5c26b4cc73 device: remove gnss blanking file temporarily am: 37f619ea3f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17346004

Change-Id: Ibd7939843dd2c55ff59337b2d5af6da84a95a8c4
2022-03-24 04:12:40 +00:00
Adam Shih
33f5f28ced enforce debugfs constraint on user build am: c676225fef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17338964

Change-Id: I9ee3af233310edfbffec028de6dba3378d37b0da
2022-03-24 04:12:13 +00:00
Martin Liu
1f88aec39f set swiotlb as noforce am: b8b02bc357
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17071164

Change-Id: I0bf3118ea218668a8785fdfccb70eb9c9e936540
2022-03-24 04:12:06 +00:00
SalmaxChang
37f619ea3f device: remove gnss blanking file temporarily
The current CP does not support related RCM command.
Disable GNSS blanking temporarily.

Bug: 226074879
Change-Id: I7d433b269d7a5f3c532d949e58bf4190c9501462
2022-03-24 03:01:40 +00:00
Adam Shih
c676225fef enforce debugfs constraint on user build
Bug: 225815474
Test: build pass
Change-Id: I6507e784b3597220920f59d969bbeafdd199174b
2022-03-24 01:05:18 +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
Luigi Zevola
a5ebd22332 dumpstate: add additional AoC entries am: b1dadb6889
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17337551

Change-Id: I617c7ca6582c1fd94cc14aedd2d2a49d33f6a474
2022-03-23 03:46:24 +00:00
Luigi Zevola
b1dadb6889 dumpstate: add additional AoC entries
Add additional AoC Entries to dumpstate to improve debuggability

Bug: 225585054
Test: On P10/C10
Signed-off-by: Luigi Zevola <zevola@google.com>
Change-Id: I2c276a0c157e64b3f376c4af1dbe214223a22af7
(cherry picked from commit 1f1958d031)
2022-03-22 22:51:49 +00:00
Midas Chien
0922920a07 Move 90hz denylist to vendor am: e5125cb214
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17232291

Change-Id: I3633b7258334eda02d6190cce860212342dcac9c
2022-03-21 17:21:57 +00:00
Midas Chien
e5125cb214 Move 90hz denylist to vendor
Bug: 224646131
Change-Id: I66c9dc9b047aaa833f88a3e6162095e6022a92a4
2022-03-21 17:03:34 +00:00
TeYuan Wang
65469e2a15 dumpstate: dump cooling device user_vote am: e138cd41be
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17256671

Change-Id: I2f7baad727de5048d7e3d570c945532f7294c627
2022-03-21 16:45:54 +00:00
TeYuan Wang
e138cd41be dumpstate: dump cooling device user_vote
Bug: 221180075
Test: check dumpstate from bugreport
Change-Id: I68e1d5d3561770714f13ab2560a0533d2cbec243
2022-03-21 16:30:04 +00:00
Beverly
d9c9a30751 By default, face-auth is non-bypass am: 058774bc73
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17257647

Change-Id: Iab785285d7872157d2c30d5ed41303c28c50c3e8
2022-03-21 14:06:56 +00:00
Beverly
058774bc73 By default, face-auth is non-bypass
Test: manual
Fixes: 225374807
Change-Id: I082de931940e9a6803e7bcc49a1a663f1e28a8f3
2022-03-21 13:53:34 +00:00
Darren Hsu
a4bd53c1f8 powerstats: update TPU-DVFS frequencies am: 3413a13921
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17289114

Change-Id: I2486f705680d43e45a19b5648a41fc5309557d2d
2022-03-21 11:59:57 +00:00
Darren Hsu
3413a13921 powerstats: update TPU-DVFS frequencies
Bug: 225290987
Test: dump power stats and see frequencies updated
Change-Id: If516f115e1a3f3c06c04deadcea56b97f5a24ccd
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-21 15:23:24 +08:00
Lucas Dupin
b8b7ddde21 Enable blurs am: 2964ee6020
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17230886

Change-Id: I8732d3f952cf8bc14055b841ab463717ec2e6259
2022-03-18 18:43:47 +00:00
Lucas Dupin
2964ee6020 Enable blurs
This was somehow disabled

Test: forrest build
Fixes: 225015208
Change-Id: I4ed97dfaf8362ace933b6d5e08408ee35d54ee13
2022-03-18 18:26:02 +00:00
Darren Hsu
ea7a75fafd powerstats: add devfreq state residency for BO am: 1d6fa6d79e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17197676

Change-Id: Ie4f5279f9fd8ed556fdb1e193aa754ed87e86193
2022-03-18 11:40:46 +00:00
Darren Hsu
1d6fa6d79e powerstats: add devfreq state residency for BO
Bug: 216600952
Test: dump power stats and see the state residencies appear
Test: verified that the string buffer is enough
Change-Id: Ic2c7c29c9b6408018ba9c98578e5a32d4e082ef1
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-18 11:19:13 +00:00
Shinru Han
f4b9309989 gps: Add MCU crash dump to bugreport am: f943e9a4f3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17230856

Change-Id: Ia1fc3ac4e0d3ab633b7dff1d00ee131e7a61c173
2022-03-18 03:40:08 +00:00
Shinru Han
f943e9a4f3 gps: Add MCU crash dump to bugreport
- Add MCU (ESW) crash dump
- Add tmp log
- Reduce log number to 20

Bug: 223741583
Test: bugreport gps log test
Change-Id: I157d93bd0a3ede4e547df193d2808c4338c8c405
2022-03-18 03:21:36 +00:00