Commit graph

438 commits

Author SHA1 Message Date
Ocean Chen
2fef0def24 gs201: Remove unused BFQ I/O scheduler configuration
The I/O scheduler was changed to mq-deadline in ag/29073420,
making the previous BFQ configuration obsolete.

This commit removes the following lines which no longer
have any effect.

Bug: 186902601
Test: forrest build
Change-Id: I5d662e9762809f2d0598a7e980ef0468ac8aff38
2024-10-04 04:18:42 +00:00
Jerry Chang
f0733782af Add input event profile to mitigate input latency of input threads
Bug: 347122505
Test: check the priority and latency of input thread in Perffeto
Flag: NONE early device setting updates
Change-Id: Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9
2024-09-18 12:09:37 +00:00
Ocean Chen
a664dadaa8 Switch from the BFQ to the mq-deadline I/O scheduler
The mq-deadline I/O scheduler is more stable than BFQ. Additionally, the
boot time is shorter with the mq-deadline I/O scheduler. It only changes the scheduler on new kernel.

Bug: 186902601
Test: forrest build

Change-Id: I5d336b3f146ca673c83c03304773d0ccf4c01e77
Signed-off-by: Ocean Chen <oceanchen@google.com>
2024-09-05 06:37:21 +00:00
carmenyip
541efd2ce2 extended_log: update directory permissions for gs201
Bug: 336638376

Test: $ cd data/vendor/radio
$ ls -la
Flag: NONE changing directory permissions only

Change-Id: I972634ab85eb8416b43183712394c27d4d0340ee
2024-09-05 04:02:07 +00:00
Roy Luo
f13115f44c usb: correct sys.usb.controller sysprop
system/core/init/init.cpp SetUsbController picks the first udc device if
there're multiple udc devices present on the system to populate
sys.usb.controller system property.
CONFIG_USB_DUMMY_HCD enabled in kernel-5.10 GKI would introduce a
dummy udc device named "dummy_udc.0". Depends on timing, the dummy
device might be picked up by the init process and incorrectly populate
sys.usb.controller.
This issue only applies to devices on kernel-5.10 GKI, the WAR is to
overwrite the sysprop if it's incorrectly populated by the dummy udc.

Bug: 333778731
Test: tested on Cheetah
Flag: EXEMPT bugfix
Change-Id: I7555dda7f0bb436200ef7cd8a46b785232187cfd
2024-08-27 23:39:24 +00:00
samou
c62a6b812d Remove BCL from thermal
Flag: EXEMPT tuning changes
Bug: 349935208
Change-Id: I43b37dc596c799927868c0c546d30ed8e51c17c5
Signed-off-by: samou <samou@google.com>
2024-08-12 12:32:21 +00:00
Cyan_Hsieh
44ae6ffad2 Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 8c9f1f1663 am: 874a2b07cb
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3214297

Change-Id: Ie37ab68bca27259034f34d009463111caaeb2f36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 11:07:34 +00:00
Cyan_Hsieh
874a2b07cb Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 8c9f1f1663
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3214297

Change-Id: Ie0461f7ba8bbaf4f747fa9b82ec4bc567af38d9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 10:49:03 +00:00
Cyan_Hsieh
8c9f1f1663 Add FSTAB_OWNERS and update OWNERS to include Android.bp
Flag: EXEMPT only changing OWNERS
Bug: 357036384
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b3b56408e146d323e55767be770a5b37cb1c298f)
Merged-In: I2a5813f8436dd2d36b35b790aaebc00df13c5196
Change-Id: I2a5813f8436dd2d36b35b790aaebc00df13c5196
2024-08-09 08:33:39 +00:00
George Lee
fa514f6781 init: gs201: Mask VDROOP1 for GPU CLK Divider
Bug: 337613046
Test: Confirm divider is configured
Flag: EXEMPT bugfix
Change-Id: Id143431a6d63c4915ab0c0e97207eca1be4ea171
Signed-off-by: George Lee <geolee@google.com>
2024-08-05 15:06:01 +00:00
Krzysztof Kosiński
a1ad16fd77 Delete PDX sockets for legacy VR services.
Remove irrelevant copy and paste content. None of the gs201
devices ever included these services and these sockets are
not doing anything.

Bug: 234559097
Test: presubmit
Flag: EXEMPT dead code removal
Change-Id: I60698b026c2e456296943adc8c2a2f03fe3dd867
2024-07-11 04:41:53 +00:00
Qais Yousef
082d87f959 init.gs201.rc: Apply sched tuning to improve sched latencies
Bug: 340860065
Flag: NONE not supported for init.rc scripts
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Iea2a75de69815c5fd812f2e65b8a018a9c396d9e
2024-07-10 11:51:11 +00:00
YiKai Peng
0f55bf0d03 gs201: wlc: add authstart permission
Bug: 348272247
Test: Build/Flash
Flag: EXEMPT bugfix
Change-Id: I1bba5e3d25dd3d062faf11a1a92e254de4de78e5
Signed-off-by: YiKai Peng <kenpeng@google.com>
2024-06-21 04:05:38 +00:00
Xin Li
d85477e3f3 Merge 2024-06 Release (ab/AP2A.240605.024) to aosp-main-future
Bug: 343100748
Merged-In: Ib57dbaf32c2198e755e123cd894514bce5fb212e
Change-Id: I16dcd1267407af7e9f899de1cb665e0ad7c25a47
2024-06-06 20:51:05 +00:00
Treehugger Robot
6d16ee061c Merge "explicit 'user root'" into main am: dd4d390489 am: d7434d32a3
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3102021

Change-Id: I12a342d536edfedc1284dfa33aa742ae8a96beed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 18:46:31 +00:00
Treehugger Robot
d7434d32a3 Merge "explicit 'user root'" into main am: dd4d390489
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3102021

Change-Id: I2dfb059b1e680237fe402c53410299efa0089863
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 18:23:22 +00:00
Steven Moreland
8ba12e3caa explicit 'user root'
Bug: 340953047
Test: N/A
Change-Id: I3cfa4844916973c12ed9cff54361070cc091551f
2024-05-25 00:38:44 +00:00
Poompatai Puntitpong
d0d4a07d3a bt: set rfkill device nodes permission setting on early_boot stage
move the rfkill permission setting from post-fs-data to early_boot
stage because the kernel/net/rfkill/rfkill.ko may not be loaded on
post-fs-data stage and cause the permission setting failed.

Test: m
Bug: 323377234
Change-Id: Ibf3862a5e0f4554e8df5c2ed1c76d460bbd5e543
2024-03-11 09:04:43 +00:00
George Lee
a528a2c7f9 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
Signed-off-by: George Lee <geolee@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:43d42739b57713f7e41df147e6372d1ccce6243f)
Merged-In: I4b62b33c0b72e5a053f477943379727d58f7298e
Change-Id: I4b62b33c0b72e5a053f477943379727d58f7298e
2024-03-07 20:51:33 +00:00
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
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
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
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
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
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
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
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
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
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
Hiroshi Akiyama
c41e6f519b bcl: adjust heavy clk divider ratio
Bug: 314168856
Test: tbd
Change-Id: If32830eb480a6db99e32b3c1a277a79f058cc43f
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-12-04 21:52:04 +00:00
Will McVicker
b438a64948 fstab: allow unlocked devices to boot with AVB test key am: a9ba6b344f am: eac65ae6df
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25300418

Change-Id: Ic74fa4b1ed490e4046bbd9799b767627741e98ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 10:13:14 +00:00
Will McVicker
a9ba6b344f fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for dynamic kernel partitions to allow booting
unlocked devices with a custom kernel. This allows a few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: I11edf6e50411a05c6723f7523f3672a9a8116d7a
2023-11-07 09:58:35 -08:00
William McVicker
c88501a606 Revert "fstab: allow unlocked devices to boot with AVB test key"
This reverts commit c13cd03ccf.

Reason for revert: Let's go through a proper security review for this.

Bug: 306264015
Change-Id: I51fe3f32f8a4ec92cb2d38869568a51dc2522bb4
2023-10-19 17:02:25 +00:00
Will McVicker
c13cd03ccf fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=/avb` for dynamic kernel partitions to allow booting
unlocked devices with a custom kernel that is signed using a test key.
This allows a few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Test: flash production userdebug build, then flash custom kernel.
Bug: 274825778
Change-Id: I11edf6e50411a05c6723f7523f3672a9a8116d7a
2023-10-18 19:46:02 +00:00
guibing
7b8a531469 init: gs201: update vendor_sched procfs paths
Vendor sched procfs path hierarchy gets updated in kernel.
Update the paths in init rc file and task profiles to match the change.

Bug: 289151587
Test: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases
      -t com.google.android.perfwbs.pts.SchedulerTest
Change-Id: I94f17627f913e20323f9fe111a34fcc666f38a72
2023-10-13 17:18:24 +00:00
Midas Chien
6116a993a4 display: allow hwcomposer to access DRM module debug file
Change the owner and group of the DRM module debug file to system to
grant permission for hwcomposer.

Bug: 301599195
Test: check HWC can access it
Change-Id: Ife250a1a4984f94cc52bc1b3e52deeffbc5b5410
2023-10-02 01:52:28 +00:00
Avichal Rakesh
537da0f60c usb.rc: Advertise 360p and 480p support through UVC am: cd00df2aeb am: bad05cd4d1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24804762

Change-Id: I51f038dabfdfccc55cfdba5cfff358e28984b9ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 18:09:53 +00:00
Avichal Rakesh
cd00df2aeb usb.rc: Advertise 360p and 480p support through UVC
Many host applications expect and ask for lower resolution streams when
streaming from a USB webcam. To support those applications, this CL
adds support for 640x480 and 640x360 streams.

Bug: 301170431
Test: Manually tested that the resolution is advertised and streamed.
Change-Id: I0bb6e2073554de4e5ce8fe472dae6a77e69aeb54
2023-09-21 21:00:21 -07:00
Amit Sunil Dhamne
99a86975cd usb: Modify sdp enumeration timeout value in charger mode am: 3644ca07e8 am: 3b48e7e17b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24740939

Change-Id: If5be8a5aad91bde69ca12a88f0d79f906cffef08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:33:26 +00:00
Amit Sunil Dhamne
3644ca07e8 usb: Modify sdp enumeration timeout value in charger mode
Write to /sys/class/typec/port<...>/device/update_sdp_enum_timeout
to reduce SDP enumeration timeout value when device is in charger
mode. This will enable faster detection of a DCP port.

Test: Validate (in charger mode) that the sysfs attribute is 1
(meaning lower sdp timeout value is being used). Read dmesg to
see print showing timeout value is 5000ms.

Bug: 275687235
Change-Id: I1bc872911d7f1eab26e62fe6f12fba05608e0f83
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
2023-09-20 16:23:49 +00:00
Qais Yousef
0988550750 init.gs201.rc: Disable util-awareness am: c7042d8b23 am: cd089a7f75
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24705002

Change-Id: I60ca01041f544c147d8a2074d9c78979dc996729
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 19:32:20 +00:00
Qais Yousef
c7042d8b23 init.gs201.rc: Disable util-awareness
There are some regressions reports. Disable them completely for now.

Bug: 297496375
Change-Id: I6478931d73145a15471982738f0ff93eae5f2f07
Signed-off-by: Qais Yousef <qyousef@google.com>
2023-09-19 17:46:01 +00:00
Woody Lin
89b9a50820 init.debug.rc: enable etm/etm2dram when SJTAG is unlocked
Enables the debug features required an unlocked SJTAG to the section
`on property:ro.vendor.sjtag_ap_is_unlocked=true`, so they can be
enabled when 1. PD is available on non-fused device on boot, or 2. PD is
available after betterbug acquires it from the corp service.

Bug: 298314432
Change-Id: Ie834b587c130d749a33a87801113df03d5b3d29a
2023-09-13 04:10:09 +00:00
Martin Liu
f7a71debb7 gs201: tweak memory management
- set lmkd's swap_free_low_percentage to 100
- decrease swappiness to 60

This tweak also aligns the policy with P23.

Test: boots with correct settings
Bug: 299975853
Change-Id: I623a7687ef692f8f7a5cc906e186edde294b30be
Signed-off-by: Martin Liu <liumartin@google.com>
2023-09-12 20:35:33 +00:00
Robin Peng
5f0318b21f do not mount the debugfs on userdebug builds
Bug: 278988913
Change-Id: I5c703310a4f82acf52fad87854682ca6e668d99b
Signed-off-by: Robin Peng <robinpeng@google.com>
2023-07-26 00:25:54 +00:00
samou
8990012f1d bcl: mask out clock divider for CPUCL1
Bug: 288238917
Change-Id: I330d966ee13539fcb46d54883d04b42152f6a58f
Signed-off-by: samou <samou@google.com>
2023-07-14 02:37:43 +00:00
TeYuan Wang
34bb36163d Cancel boost on off-mode charger
Test: Build
Bug: 289120007
Change-Id: I753f9233600c1374f35de3eda0513451b602795a
2023-07-11 02:02:50 +00:00
Avichal Rakesh
78f6f8b59d usb.rc: Remove write permissions from uvc specific files
Files created by the uvc driver gives write permissions to 'other' by
default. This permission is not needed at runtime. To minimize write
privileges, this CL removes other-write permission from all uvc config
files that had it.

Bug: 242344229
Test: Manually verified that no files have other-write permissions
Change-Id: I27611d0ba4ecf2851aef6ea8bd613284744142fb
2023-07-07 21:53:53 +00:00
Randall Huang
0e178ea210 fstab: add the noatime for read-only ext4 partitions
This is to avoid unnecessary ext4 behavior

Bug: 289631992
Test: boot to home
Change-Id: I44f9632cc7b848d6fe673232be014cef71355018
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-07-06 14:59:39 +00:00