Commit graph

4812 commits

Author SHA1 Message Date
George Lee
43d42739b5 bcl: Adjust GPU LIGHT clk divider ratio
Set GPU LIGHT clk divider ratios to /2.

Bug: 327700285
Test: Confirm no prints like:
"28000000.mali: Ctx 8349_23 Group 0 CSG 3 CSI: 3"
while running GFXBench under LIGHT MITIGATION
Change-Id: I4b62b33c0b72e5a053f477943379727d58f7298e
Signed-off-by: George Lee <geolee@google.com>
2024-03-05 15:41:46 +00:00
Sungtak Lee
16d25d07b2 Add media.c2 aidl fragments on gs201 based devices
Bug: 321808716
Change-Id: If0f73c6151127ac5cc786a5580446313f9640025
2024-03-05 06:16:54 +00:00
Mark Chang
739450ad3a Add sepolicy include to gs201.
Bug: 325422902
Test: Manual, system booted without sepolicy denied error.

Change-Id: Id0cd182117340159aed00ad55988323bd45ba840
Signed-off-by: Mark Chang <changmark@google.com>
2024-03-05 05:31:39 +00:00
Devika Krishnadas
e0fbd0d764 Move Gralloc packages to gs-common
Bug: 275906497
Test: Boot succeeds

Change-Id: I879a5ef8365abe018c501cdb0b06c9753e0e5902
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2024-03-04 22:13:50 +00:00
Jenny Ho
85b26e93cc pixelstats: added multiple GMSR paths
support different project paths

Bug: 308364170
Change-Id: I065f8e844d13d1d6d36c36ef689ff6c34b3e3fa6
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2024-03-01 03:14:37 +00:00
Hongyang Jiao
6e91bd9f0b Add betterbug mk to gs201
Bug: 322543833
Test: local test, recorded in http://shortn/_iEz9DTCHgo
Change-Id: I88809df5449909ac528d38e07fa95b8f49bbfd00
2024-03-01 01:10:43 +00:00
Jenny Ho
5e9bc66da0 pixelstats: gs201: add Learning/Update/ModelLoad path
Upload more FG data to analyze its trends

Bug: 317827237
Change-Id: Id45bd9ad3cca67dfc614f9c0f00540b1119a17d0
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2024-02-27 04:06:14 +00:00
Daniel Okazaki
3edeae32e0 dumpstate: moving charger nodes to user build
Bug: 323415060
Test: adb bugreport
Change-Id: I96c06149ad0b960b2fa9116fca126311116fa9d0
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2024-02-21 00:11:01 +00:00
Lei Ju
b13512dd9b [gs201] Enable multiclient HAL
Test: 1) complile and flash a gs201 device, passed PTS and CHQTS;
      2) checked logs to make sure no sepolicy violations
Bug: 247124878
Change-Id: I0b0af38e89c13d645406bb1d30786bb25a74d963
2024-02-20 21:11:32 +00:00
George Lee
49a63dad63 bcl: Adjust GPU clk divider ratio
Revert GPU clk divider ratios.

Bug: 324534203
Test: Confirm no DATA_INVALID_FAULT while running GFXBench under stress
Change-Id: I84682b476af162eff904ed5bec66ae2e6fa6449a
Signed-off-by: George Lee <geolee@google.com>
2024-02-15 16:55:10 +00:00
Mark Chang
ba206cfef1 Move manifest entries to gs-common.
Bug: 322914403
Bug: 324214410
Test: build succeeds on all devices, failing tests pass.
Change-Id: I0711a1d8cfd02ccd168f57ac16feee2a8e0ee777
Signed-off-by: Mark Chang <changmark@google.com>
2024-02-11 23:03:52 +00:00
Richard Hsu
0e6bc4fd5c [Refactor] Include edgetpu targets in final image
Make the EdgeTPU targets defined in <soc>/proprietary visible by product packages included in edgetpu.mk.

Bug: 323601370

Tested:
No functionality change. Edgetpu services still work.

Change-Id: Ib3835ee3976dcfa86df999d0a32398bf8ec9a2cb
2024-02-09 21:55:09 +00:00
Yong Zhang
bef1509d6c Add Youtube back in MRR Small Area Detection Allowlist
Bug: 324132231
Test: Make Pixel builds to verify Allowlist
Change-Id: I5b8f96acfd701887307d0f19566a1489b1ad594d
2024-02-07 16:51:36 +00:00
Jacky Liu
8548e9b2be Update i2c device paths
Update i2c device paths with static bus numbers.
Also remove some redundant paths.

Bug: 323447554
Test: Boot to home
Change-Id: Id3f0fccd39b70d247c0d7a17a1944223619ec40e
2024-02-07 04:00:46 +00:00
Jacky Liu
21dc8acdaa Revert "usb: Select usb-service rc files based on kernel versions"
This reverts commit 2371ea7920.

Use the same i2c device paths across all kernel versions.

Bug: 323447554
Change-Id: I0f970347a09e01f272a54fc7c940ea576a9e510b
Signed-off-by: Jacky Liu <qsliu@google.com>
2024-02-06 16:18:27 +00:00
Joen Chen
0873870552 gs201: enable dynamic color mode
Enable dynamic color mode to reduce the power overhead of color space
conversion when GPU composition exists.

Bug: 315787778
Test: check "dumpsys SurfaceFlinger" and state of display color service
when playing SDR/HDR video

Change-Id: Ie9e87091385ab5247141bf956fbaba3275cc6811
2024-02-05 04:26:02 +00:00
Kyle Tso
2371ea7920 usb: Select usb-service rc files based on kernel versions
The sysfs paths in the rc file differ across kernel versions or build
targets. Given that the path is static in the newer kernels (6.1+),
modify the paths for newer kernels in the original rc file and create
another rc file for older kernels (i.e kernel 5.10). Put the correct rc
file to the vendor partition based on kernel versions.

Bug: 317946158
Change-Id: Ie313664ee14c837bc9f33113e9341f6e06192401
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-02-03 01:14:43 +00:00
Kyle Tso
9bafd5f134 usb: Runtime search the i2c path
The paths of sysfs nodes are different on multiple build targets and are
also different between the old kernel (5.10) and newer kernel (6.1).
Since usb HAL code is shared by those targets and different kernel
versions, Runtime search the correct paths.

Bug: 317946158
Change-Id: I676455145232fd71db1578bb7a9801fed7bb327f
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-02-03 01:14:43 +00:00
Leon Scroggins III
7d2aafad34 gs201: Remove sysprop forcing renderengine to skiaglthreaded
This is already the default, so no need to set via sysprop. Moving
forward, we will set this using flags, unless a particular category
of device needs to override the flag.

Bug: 293371537
Test: NA
Change-Id: Id05d31e3c058d3bfe961d90e37a0c6992d823605
2024-02-02 14:29:25 +00:00
Xin Li
4418833d9b [automerger skipped] Merge Android 24Q1 Release (ab/11220357) am: 25172cefce -s ours
am skip reason: Merged-In Ibd7816b717d2fbcb038a7c0ff703b7fab7d2a46c with SHA-1 8412883458 is already in history

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

Change-Id: I153247ab42c2a09ea35bd6d30bec9919508dca51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 02:03:34 +00:00
Joe Onorato
55257cbde8 remove build log spam
Test: m
Change-Id: I5bd60de66b31c7c5df43240161350d0f5d4da29f
2024-01-29 18:49:40 -08:00
Darren Hsu
ff196ef65a powerstats: expose display MRR state residency data provider
Bug: 317767775
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I72037cc9d5b35a47ae0173d52bbc57708a593936
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-01-29 05:59:52 +00:00
kierancyphus
0eb7d38545 liboemservice_proxy: Remove service defs
`Liboemservice_proxy` was originally included as a part of the build target for DMD, which meant that the binder aidl declaration had to be done on all devices that used DMD (all Lassen devices), even if they didn't use the service. `Liboemservice_proxy` has now been decoupled from DMD so it only needs to be included on our target devices now. This CL removes the outdated service definitions.

Test: Build gs101 and ensure it still builds.
Bug: 321867236
Change-Id: I7fb10e4013da59f42cff47da6d104deed9b4bb71
2024-01-29 05:58:40 +00:00
Robin Peng
c6d819462e Support system_dlkm modules.blocklist from kernel side
assign system_dlkm.modules.blocklist to BOARD_SYSTEM_KERNEL_MODULES_BLOCKLIST_FILE
located from kernel prebuilts folder

Bug: 267429528
Bug: 322457552
Change-Id: I912f1a8e0df12e4614c74b870921ca0b47b8383e
Signed-off-by: Robin Peng <robinpeng@google.com>
2024-01-26 13:38:14 +00:00
Robin Peng
975145cc52 Assign system_dlkm.modules.load to BOARD_SYSTEM_KERNEL_MODULES_LOAD
- BOARD_SYSTEM_KERNEL_MODULES_LOAD is for GKI modules
- BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD should not contains GKI modules

Bug: 267429528
Bug: 322457552
Change-Id: Ib5da01f861a34edec07e2a958f153c876e5cef10
Signed-off-by: Robin Peng <robinpeng@google.com>
2024-01-26 13:09:10 +00:00
Jerry Huang
c67150d613 gs201: update c2.android.av1-dav1d.decoder performance point
c2.android.av1-dav1d.decoder performance has been improved with CL
"C2SoftDav1dDec: Fix performance issues in frame parallel multi-threading"
More detail in b/315828433

Bug: 315828433
Test: run cts -m CtsMediaDecoderTestCases -a arm64-v8a -t android.media.decoder.cts.VideoDecoderPerfTest --module-arg CtsMediaDecoderTestCases:instrumentation-arg:codec-prefix:=c2.android.av1-dav1d.decoder
Change-Id: If4912322095ec112507c2e7f37e5bc1506d8c17a
2024-01-25 11:03:11 +00:00
Spade Lee
df3f348d3b dumpstate: add SoC residency dump
Bug: 319536756
Change-Id: If12b04cca0b5f426709d4f0a8e4c6937d7abc7e2
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:50:25 +00:00
Wayne Lin
c1a79afe2d gps: add new certificate
Bug: 319329399
Bug: 319329247
Test: confirm certificate is included
Change-Id: Iafdbb7ad53da68c7f14fa94c1458f56016f70680
2024-01-19 06:36:07 +00:00
Kyle Tso
84e6e2b491 dumpstate: Fix wrong path for tcpm psy uevent
Bug: 320605646
Change-Id: I24ee174bdb5f9bb8127f5ae158c55a8738d852e3
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-01-18 15:12:23 +00:00
Xin Li
25172cefce Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: Ibd7816b717d2fbcb038a7c0ff703b7fab7d2a46c
Change-Id: I6d87c71b72050405370a19801b9e49ef46c5d3e0
2024-01-17 22:12:36 -08:00
Midas Chien
6a34636f89 display: allow hwcomposer to access allow_wakeup_by_state_change
Bug: 311495944
Test: check permission
Change-Id: Id41872449035e16e7abc7f5111cdf95a7914f846
2024-01-17 07:53:09 +00:00
Utku Utkan
6afe88fbce Pregrant ACCESS_FINE_LOCATION as default permission to PCS on G2
Bug: 309676824
Test: m && flashall + pair & connect to remote device Wi-Fi AP
Change-Id: Ic40efe2d77b6d69ec97888fd421a5d0bda51860b
2024-01-12 16:51:42 +00:00
Mahesh Kallelil
9366c5117a Set owner as system for logbuffer_cpif
Setting the owner of /dev/logbuffer_cpif as system to allow the
dump_modem script to read the logs as part of bugreport

Test: Tested bugreport on device
Bug: 305600375
Change-Id: Ic7c64f942985596d9a5d919dfd3ca2127de881d0
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
2024-01-12 06:36:47 +00:00
Devika Krishnadas
58dc835539 Revert^3 "Use graphics allocator 2"
4217a458ba

Reverting to comply with the Allocator VTS for 24Q1, do not merge to main.

Bug: 310046460
Test: VtsHalGraphicsAllocatorAidl_TargetTest
Change-Id: I322cdf9452a80e5da87f1808b324ac2e499fe9cd
2024-01-11 20:58:19 +00:00
Roy Luo
fc280685ca usb: dump flag value in the constructor
Dump flag value in the construtor for easier debugging. Feature flags
are not expected to change in runtime, dumping the value once should
be enough.

Bug: 296119135
Test: manual test
Change-Id: Ie5aca2dff23e59704fb306833cde0e592b9f430d
(cherry picked from commit 9164eae7cdee032381d8bf045fbbed33f62b00bf)
2024-01-10 11:47:02 +00:00
wenchangliu
59ed5b77f5 gs201: uses Codec2 HIDL 1.2 service
- Include mediacodec_samsung setting from gs-common
- Enable Codec2 HIDL 1.2 from BoardConfig and update
manifest hidl version for samsung.hardware.media.c2

Bug: 318793681
Test: run cts -m CtsMediaDecoderTestCases
Test: run cts -m CtsMediaPlayerTestCases
Test: run vts -m vts_treble_vintf_vendor_test
Change-Id: I1f947d2eb75bd4d75d9db1d39b0b083d32f8032f
2024-01-09 14:49:56 +00:00
Limon Mia
4305bf7cd0 Packed vendor log to bugreport for P22
Bug: 316071157
Test: enable vendor log and take bugreport
Change-Id: If9497810763d813e97a893d736bfbdeaf208c904
2024-01-03 02:11:04 +00:00
Roy Luo
5e14ba01be usb: adjust heuristics for flaky connection warning
The state count requirement is very specific to the case where the
signal integrity is the culprit of flaky connection. However,
there could be other cases such as bad receptacles causing data pins
to disconnect randomly.
Remove the state count requirement to cover more cases.

Bug: 296119135
Test: manually trigger the warnings
Change-Id: Ic2ae376ad6062d9930614381503f44e4a5ac760f
2023-12-26 21:49:19 +00:00
Roy Luo
42020dc458 usb: implement heuristics to flag data compliance warnings
Support flagging enum failure and flaky connection in device mode,
flagging enum failure and missing data lines in host mode.
No warning would be flagged until 5 secs after the data session
starts to give ample time for the connection to stabilize, a timer
is added to support it.

Bug: 296119135
Test: manually trigger the warnings
Change-Id: I25f08657e328913946add192b5ecb9ee50c3a1a8
2023-12-22 03:05:06 +00:00
Jaegeuk Kim
a04e12983b Migrate to gs-common/storage/init.storage.rc
Bug: 311655524
Change-Id: I084717957a3bdf0bcbdca06502867d8e108ac139
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-12-20 10:22:34 -08:00
Sandeep Dhavale
9ffdaf1c94 Update health AIDL HAL to V3 am: 7bdd0af481 am: cc462adf40 am: c4c2921aad
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: I80d5838d50c521c42404e5ebdd128e2e3daf345b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 09:50:00 +00:00
Sandeep Dhavale
c4c2921aad Update health AIDL HAL to V3 am: 7bdd0af481 am: cc462adf40
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: Ia736dc5ff4339bc96c2f6f0d60465529b688af20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 09:17:36 +00:00
Sandeep Dhavale
cc462adf40 Update health AIDL HAL to V3 am: 7bdd0af481
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: I078b2af55d78f2fc7e3421b5299146fd4e8f2d92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 08:47:14 +00:00
Sandeep Dhavale
7bdd0af481 Update health AIDL HAL to V3
Bug: 316837586
Test: TH
Test: vts-tradefed run vts -m vts_treble_vintf_vendor_test
Change-Id: Ib4b240cd28df174257105db5bf6eae6accfae26a
Signed-off-by: Sandeep Dhavale <dhavale@google.com>
2023-12-18 23:36:44 -08:00
Jenny Ho
2542b04a24 Adjust bd_state to system for read
Bug: 316432531
Change-Id: I4964217a9c1782cc60011850ea111bd235b91ef6
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-19 03:24:22 +00:00
Jenny Ho
7755cc6fde dump_power_gs201: lynx: add battery EEPROM dump path
Bug: 316820830
Change-Id: Ia5833d8980f97335b15e9ebb3a81f28b9019adc9
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-18 08:27:05 +00:00
kierancyphus
b9424d9c59 logmasklibrary: update version info and freeze api
The versions were originally not specified in the device manifest and
compatibility matrices. This is changed here to fix the broken vts
tests.

Bug: 310109332
Test: atest vts_treble_vintf_vendor_test -- --abi arm64-v8a
Change-Id: Ib2baeda6a3c81c701e6f813b6c88f561b158e674
2023-12-15 22:46:17 +00:00
Kuen-Han Tsai
8412883458 usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the
device when the SD card is inserted or removed.

To support SD card hotplugging, this patch enables in-kernel
media-presence polling, which will check the SD card status every 2
seconds after a SD card reader is attached.

Bug: 186479576
Test: SD card insertion/removal and data copy (see b/301566595)
Change-Id: Ibd7816b717d2fbcb038a7c0ff703b7fab7d2a46c
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 08:06:12 +00:00
Hungyen Weng
6fa3ccb524 config: Use carrier config in ROM by default am: 8dbc173f2b am: 26e7f60254
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25616534

Change-Id: Ieb8260a470929777b3fad60cc6c66e480a9ffee0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:45:01 +00:00
Hungyen Weng
26e7f60254 config: Use carrier config in ROM by default am: 8dbc173f2b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25616534

Change-Id: Icb4bdc42888cbd41d71387574affabc6607f4745
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:10:55 +00:00