Commit graph

619 commits

Author SHA1 Message Date
George Lee
fcee0fde99 thermal: Reconfigure DFS Clock to divide by 4 am: ea926b06e2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17161495

Change-Id: I4995f7a6685b1c09fecfa086ab149b08120a5444
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 18:56:22 +00:00
George Lee
ea926b06e2 thermal: Reconfigure DFS Clock to divide by 4
1. Reconfigure DFS clock divider to divide by 4.
2. OCP_WARN_CPU2 was repurposed for DFS usage.  Since SOFT_OCP_WARN_CPU2
was not used by BCL, it will be repurposed to replace OCP_WARN_CPU2.

Bug: 223909471
Test: Local test to verify register value
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ie9960c30b102d67f0ade156631386b656ff82790
2022-04-01 18:34:58 +00:00
GOOGLE\huangaustin
78e4221a64 [PixelLogger][P22] Update P22 default.cfg for SIM team am: 10950eaf23
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17536684

Change-Id: I163fb5cb94e654aed7278bd3e566d0f4695c1a64
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 09:28:22 +00:00
GOOGLE\huangaustin
10950eaf23 [PixelLogger][P22] Update P22 default.cfg for SIM team
bug: 213642764
Change-Id: Ieb88e80cf45f3b0f165f5341deac7c823c71234e
2022-04-01 14:50:01 +08:00
Darren Hsu
0500c761c9 Revert "powerstats: disable AoC power stats reporting"
This reverts commit 8c4f8807fd.

Bug: 220032540
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Reason for revert: the timeout mechanism is ready
Change-Id: Ied599054c4b3eda125c71b927dbab0e6bdb99ef9
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-30 08:05:25 +00:00
Darren Hsu
6f41cc87c8 powerstats: set time limit as timeout for AoC
Bug: 219630658
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Iaf5af43ebcda4edb0ff5f88e3ba82dda2d0c51a5
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-30 08:05:25 +00:00
TeYuan Wang
6f00cd7be1 bcl: modify batoilo trip_point_0 permission for thermalHAL
Bug: 222017625
Test: adb shell ls -al dev/thermal/tz-by-name/batoilo/trip_point_0*
Change-Id: Ie8d122a8b70bd4f975e586733f5f2a74c46cdaa9
2022-03-30 06:12:12 +00:00
Ray Chi
7be02c0708 usb: remove set_usb_irq script for irq change
Since the dwc3 irq is moved by USB gadget hal now, the
script is not needed.

Bug: 225789036
Test: build pass
Change-Id: I42299d30df5343f06be810870c61c5cff3e41df2
2022-03-30 04:42:16 +00:00
chungkai
1a05b6dc70 init: add uclamp threshold setting
To filter tiny task, add uclamp threshold setting

Test: build and boot pass
Bug: 214098855
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Ib8f20a8d0134eff972084cd72a2975d7f778d539
2022-03-30 03:49:30 +00:00
Rick Yiu
3c9226acc7 Change file permission for perfer_idle
Sync permission to other nodes.

Bug: 224637637
Test: build pass
Change-Id: I5e9d4dab6bdb94ad2ca8dd4bb6e52bff72f8b6ee
2022-03-29 10:25:06 +00:00
Luigi Zevola
d2c46291d5 dumpstate: remove tasks prints and clean up
Remove tasks printing when dumping state and clean up format

Bug: 226718218
Test: On C10
Signed-off-by: Luigi Zevola <zevola@google.com>
Change-Id: I275b9d213c133e8b80cbdb88d587c83cfe395089
(cherry picked from commit ce46e3cd48)
2022-03-29 00:22:44 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
e5125cb214 Move 90hz denylist to vendor
Bug: 224646131
Change-Id: I66c9dc9b047aaa833f88a3e6162095e6022a92a4
2022-03-21 17:03:34 +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
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
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
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
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
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
Long Ling
d0795a2321 remove hwc-2.4 from manifest
hwc3 is in use.

Bug: 216532282
Change-Id: Iccce473319d7e48cb25e3719ca17092b97d9b07a
2022-03-17 20:39:59 +00:00
Alex Hong
6ede91b25e Remove the RenderScript HAL from the vendor manifest
"android.hardware.renderscript@1.0-impl.so" is already removed.
Remove the declaration of corresponding passthrough HAL from the
vendor manifest as well.

Test: run vts -m vts_treble_vintf_vendor_test
Bug: 207076973
Change-Id: Id362529acfdfc3d5eb66d79efabbc8edeefc1dea
2022-03-17 14:06:02 +00:00
Alex Hong
b7d761b443 Upgrade VINTF Target FCM level from 6 to 7
Target FCM level 7 requires the newer version of the following HALs.
1. android.hardware.biometrics.face
2. android.hardware.biometrics.fingerprint
3. android.hardware.dumpstate
4. android.hardware.gnss
5. android.hardware.radio.config

Temporarily add the older version of these HALs into the customized product FCM
to claim we are still using the older version and bypass the build breakage.
We will check about how to handle these HALs later.

Test: m check-vintf-all
      run vts -m vts_treble_vintf_vendor_test
Bug: 207076973
Change-Id: I4582385b4d0588ce7310d6ecf59ce0834b7c95c2
2022-03-17 14:06:02 +00:00
SalmaxChang
602c38c63f conf: support to mount modem erofs image
- Create fstab.modem for modem as flexibility.
- Add and support both erofs and ext4 images for compatibility.

Bug: 201348703
Change-Id: Idc6dd8ef8f044c764f2811469806ee9e6defb87f
2022-03-17 05:56:33 +00:00
Wayne Lin
ad680c7138 gps: update gps driver 129.20.23.529478
- Fix NI control plane issue
 - Add NFW IPC between AP and CP
 - Ignore RTI in cold start
 - Fix OnChip logging issue

Bug: 221337679
Bug: 216098015
Bug: 219856838
Bug: 213009701

Verify test: 224691558
Test: Build pass and GNSS verify test pass

Change-Id: Ice69000357d07ad95d2070c277bcc7848f9d8f5f
2022-03-17 05:37:54 +00:00
Jaegeuk Kim
6d4913e3c7 Remove discard command tuning
This is done by rootdir/init.rc.

Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I939c97aa2cd2ee271f05053eea0af006f6c9b8a1
2022-03-17 03:22:07 +00:00
SalmaxChang
dd1cd8388f dumpstate: add timeout for AoC memory dump
AoC memory dumps will take too long time and cause dumpstate board
timeout. Add 2s timeout for the memory dumps.

Bug: 216422700
Test: Triggered bugreport and checked dumpstate file.

Change-Id: Iedb49fa78caf7c5c54a9a1f69191d7441b7308ee
2022-03-17 02:03:12 +00:00
Devika Krishnadas
cf0372dc8b Increase Max framebuffer count to 3
Bug: 220804307
Signed-off-by: Devika Krishnadas <kdevika@google.com>
Change-Id: I5b21d077e2c8f1ee0a22d19bfeb1e3afd29789d3
2022-03-17 02:01:10 +00:00
Jaegeuk Kim
975370904a Enable COMPRESS CACHE in f2fs
Bug: 222321709
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ia10007c678ea640d00c2fe0438218707d5fd7ce8
2022-03-16 18:24:09 +00:00
Randall Huang
3bec1149e8 UFS: enable UFS clock gating when off mode charging
Avoid high UFS power consumption

Bug: 224888044
Test: check clkgate_enable in uart console
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: Ie5504a259621a8661133eebd8f574d5af2809abb
2022-03-16 16:50:46 +00:00
Ryan Chu
1f95aca935 factory: update owner and group for root
Update the exec root owner and group for factory_post_boot

Bug: 222226268
Test: pidx=`adb shell pidof adbd` && adb shell cat proc/$pidx/task/$pidx/sched | grep "adbd \|effective uclamp.min"
Change-Id: I7ad3fc9f2db8bd4d6f4c3d2fdf1de1abc0ddcb16
2022-03-16 06:56:14 +00: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
GOOGLE\huangaustin
a581e2420c [PixelLogger][P22] Update P22 Pixel_default.nprf
bug: 214351205
Change-Id: I5f5006711618e82bb1a65fe869200fdeed7dda81
2022-03-16 04:29:10 +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