Commit graph

400 commits

Author SHA1 Message Date
Limon Mia
5fa0e12ada 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.

Bug: 277148159
Test: m
Change-Id: I65f0593caddbe659528877f583917cdaead1756b
2024-03-11 12:34:13 +00:00
Qais Yousef
908d73a76a init.gs101.rc: Increase uclamp_min at boot time by 1.25
With uclamp changes against margins, we need to bump this value by 1.25
to retain previous boost.

Bug: 314123492
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I0b001772116bdbc2285e942b5795451dee925eda
2024-02-19 18:29:07 +00:00
George Lee
e3ec636b99 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: I9379988d68665924de72441bc0ea24f5fc12be4d
Signed-off-by: George Lee <geolee@google.com>
2024-02-15 18:39:33 +00:00
Jacky Liu
06501969ec 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: I90a723018f6628c825e97ff75a80350843684959
2024-02-06 16:17:25 +00:00
Spade Lee
ad7f854c34 dumpstate: add SoC residency dump
Bug: 319536756
Change-Id: Ied43b9b5bd13a4b36d73399e4dd2fc389ecaa276
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:52:23 +00:00
Midas Chien
8133e314e8 display: allow hwcomposer to access allow_wakeup_by_state_change
Bug: 311495944
Test: check permission
Change-Id: Ie7dc6cdbd2290272cbf8bab820739b234d7c0b3f
2024-01-17 07:50:19 +00:00
Mahesh Kallelil
0b113f5208 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: I20c1a843edadbc4ed2da51af3e242957b5849d6b
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
2024-01-12 06:36:47 +00:00
Jaegeuk Kim
eb637fe036 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:27:15 -08:00
Jenny Ho
7766f6743c Adjust bd_state to system for read
Bug: 316432531
Change-Id: I07aa6aa400acc7db718e0201e61fa6a4f8e4eebb
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-19 03:24:22 +00:00
Kuen-Han Tsai
93d9eb0a8f 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: I29c352696cd9d31168a8eac8c58d23adb484f5d0
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 14:07:27 +08:00
Hiroshi Akiyama
0c4376b098 bcl: adjust heavy clk divider ratios
Bug: 314168856
Test: TBD
Change-Id: I40627648d01161bfbeb873f92ec1a3f22318285a
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-12-04 21:52:04 +00:00
Will McVicker
4bec6c0bf4 fstab: allow unlocked devices to boot with AVB test key am: 662e1bc915 am: 4fa15052cf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/25300777

Change-Id: Ib1293b9afe7a948d840e3377bf574c3f7e05979e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 05:58:24 +00:00
Will McVicker
662e1bc915 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for the vendor_dlkm dynamic kernel partition
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: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
2023-11-07 10:15:11 -08:00
guibing
e9d930291a init: gs101: 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: UIbench ab test
Change-Id: I6f8aa26587578860483d6ededf88e9c04a926644
2023-10-13 17:19:09 +00:00
Will McVicker
b1662cade2 init: update i2c bus numbers and move initialization to ueventd
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.

Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: Ib412510e4b6c086c978ad5487486323685732cae
2023-10-02 16:28:59 +00:00
Midas Chien
184fc05293 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: I76cb73cf9149347d486354abf8c9fc7d165e1bea
2023-10-02 01:52:28 +00:00
Roy Luo
7bd4fdd98f Revert "init: update i2c bus numbers and move initialization to ..."
Revert submission 24855741-gs101-i2c-bus-fixes

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=bluejay-trunk_food-userdebug&lkgb=10876543&lkbb=10876988&fkbb=10876587, bug b/302549624.

Reverted changes: /q/submissionid:24855741-gs101-i2c-bus-fixes

Change-Id: I1c87ea91d0a2eaf441c554b8f4729cefd0eca068
BUG: 302549624
2023-09-28 18:00:06 +00:00
Will McVicker
d9c462fc17 init: update i2c bus numbers and move initialization to ueventd
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.

Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: I579143fa38bc2e9b3bf7dc618b10e63001263e2e
2023-09-28 16:08:00 +00:00
Avichal Rakesh
9d936fe835 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: I78e9f97575784996aac94e576c7f23b0874a8d09
2023-09-21 21:00:10 -07:00
Amit Sunil Dhamne
b2232b52bb 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.

ported from 6710e31a629f81cf308e1099f75a01c82db6d006

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-19 14:01:34 -07:00
Qais Yousef
305dccf733 init.gs101.rc: Disable util-awareness
There are some regression reports. Disable them completely for now.

Bug: 297496375
Change-Id: I2a2b4d13366d3173c441e8ccad456a67ddd3a16b
Signed-off-by: Qais Yousef <qyousef@google.com>
2023-09-19 17:46:01 +00:00
Martin Liu
1540e87a66 gs101: 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: I0ed7088ddf2ff2fa0feca2197e5cc03c7f5c6778
Signed-off-by: Martin Liu <liumartin@google.com>
2023-09-12 20:35:33 +00:00
TeYuan Wang
ca4d5b08d3 Cancel boost on off-mode charger
Test: Build
Bug: 289120007
Change-Id: Ie7bb050b98efa64eb63ad7a5c29fed7288448128
Signed-off-by: TeYuan Wang <kamewang@google.com>
2023-07-11 02:02:50 +00:00
Avichal Rakesh
98f9031aa8 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's write permission from all uvc config
files that had it.

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

Bug: 289631992
Test: boot to home
Change-Id: I5efdb979e9c738964350b221b9f5fffea19c721d
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-07-06 14:17:54 +08:00
Patty Huang
0e265da01b bt: make bluetooth own the data vendor bluetooth folder permission
Bug: 289055382
Test: enable vendor debug log and check the vendor snoop log contain the
vendor log

Change-Id: I0c490cfa30f289da098382cb7df24b04e2833921
2023-07-05 06:10:07 +00:00
guibing
f826dd437e init: reduce the boot boost uclamp min.
Use a moderate boost instead of fmax out of thermal constraints.

Bug: 284039815
Test: boot ab tests
Change-Id: I5787a62ca26f9e128e73c7bf9d60c4d2216d5e0c
2023-06-30 08:38:21 +00:00
Rick Yiu
372a4484b1 Make bg group throttle value experimental am: 9bf9948f63
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/23728203

Change-Id: Ie3b998e48d97d9d176821a36e713a91f8ceab333
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 17:18:27 +00:00
Rick Yiu
9bf9948f63 Make bg group throttle value experimental
Bug: 287562715
Test: build pass
Change-Id: I8cfa6fef3491bcec38b5ab628fd44fb2a53f85de
2023-06-16 11:21:26 +00:00
Angela Wu
740bb0e3ff Allow access to video12 from applications.
Change-Id: Iea8efe59144ff9fdbe0b40f6426c88c7046338ac
Test: same as ag/23052928
Bug: 267820687
2023-06-06 15:22:03 +00:00
Wei Wang
28a49926be Remove prefer_idle for SF CFS tasks
Test: Boot
Bug: 236868627
Change-Id: I57ea6032f2b6fcd974455ec09cb0318ec9601923
Signed-off-by: Wei Wang <wvw@google.com>
2023-06-02 21:19:42 +00:00
Matt Buckley
26de2161a4 Remove rt_uclamp_min and sf_uclamp_min
rt_uclamp_min and sf_uclamp_min have been made redundant in Pixel by
ADPF for sf, so we are just going to remove them outright rather than
worrying about overriding them later

Bug: 285248880
Test: manual
Change-Id: I5abdf2e16dd769f1fece28a1dc630a9a8e3ddd14
2023-06-01 21:15:32 +00:00
Donnie Pollitz
8418379564 Make sure nsp storage has the right owner/group
Background:
* Not all secure storage files had the correct ownership transitions.

Bug: 280325952
Test: Changed permissions and confirmed user transitions
Change-Id: I306209fe04256ca48ea7b6246a6c8718a29b149b
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
2023-05-26 07:17:39 +00:00
sashwinbalaji
755241a5ff thermal: Update path reading for temperature residency metrics
Add temperature residency reset path
chown to system to reset from pixelstats

Bug: 193833982
Test: Local build and verify statsD logs
adb shell cmd stats print-logs && adb logcat -b all | grep -i 105045
Change-Id: Id73badfb8f8ff97a1a75b0544d3e1457ad0e2f84
2023-05-25 05:28:45 +00:00
Rick Yiu
525571a4c7 Restore uclamp.max for bg groups
These values could indicate if cpu is running important tasks.

Bug: 201260585
Test: build pass
Change-Id: I3d9cfef9070503b16862fb88fec11329eaf8f348
2023-05-24 06:05:11 +00:00
allieliu
6daf750092 init: update esim_profiles_exist property
Bug: 279988311

Change-Id: Ie46a440fe5d6ecb71c761c52857b98fdd72eb8a5
Signed-off-by: allieliu <allieliu@google.com>
2023-05-24 01:07:09 +00:00
Rick Yiu
08de96d5a1 Modify utilization group setting
We should set sysbg_ug to UG_BG but not sys_ug.

Bug: 282718756
Test: build pass
Change-Id: I739d9379b321ef6cf3f4edebb530269bb859002c
2023-05-18 10:04:28 +00:00
Rick Yiu
c75cbeedce Set top-app to UG_FG explicitly
Bug: 280924566
Test: work as expected
Change-Id: Ia11ed30cb2a7e160eba6ef2ae8ecababc219fcde
2023-05-12 09:00:33 +00:00
Rick Yiu
d5346363fe Rename vug_bg_group_throttle to ug_bg_group_throttle
Also set initial ug group for some vendor groups.

Bug: 201260585
Test: build pass
Change-Id: I697da624a13aaf9eeeae5876640ccc2502f2afa0
2023-05-10 08:27:56 +00:00
Rick Yiu
7c4daf87e5 Set boost_adpf_prio with property
Set boost_adpf_prio with property for experiment.

Bug: 245675204
Test: work as expected
Change-Id: I44001ef27238e6b089b7f33ebc72de6a4bd4d81e
2023-05-04 07:52:43 +00:00
Rick Yiu
80b75704f4 Relax background cpuset
With bg group throttle set to 30 percent of cpu capacity, we need to
relax background cpuset as well.

Bug: 201260585
Test: value set as expected.
Change-Id: I4a4dca2d077386d58fa06b6445e040906818c7dd
2023-05-02 01:59:47 +00:00
Rick Yiu
98a1a13d4b Set bg group throttle to 30 percent of cpu capacity
Also remove old settings.

Bug: 201260585
Test: value set as expected
Change-Id: I095ec5e5766f887863b75c8b51d5e6cff8ced65d
2023-05-01 07:57:54 +00:00
Jack Wu
8546110be6 init: add permission for first_usage_date access am: 4dc5683053 am: b9ec82b4fb am: 6223256813
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2514941

Change-Id: I0714007e4d9df55b114ca8e22da73d45a49684b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-31 14:22:15 +00:00
Jack Wu
4dc5683053 init: add permission for first_usage_date access
Bug: 275441997
Test: write first_usage_date sysfs node successfully
Change-Id: Iaeccf5c16701390e1aedadcb75ce312fcc40d4ce
Signed-off-by: Jack Wu <wjack@google.com>
2023-03-30 19:38:21 +08:00
Avichal Rakesh
0dceb53c11 usb gadget: Add config for UVC in init
The UVC gadget requires some setup in configfs before it can be used by
the gadget HAL. This CL adds that setup to usb specific init.rc file.

Currently, UVC is setup to advertise mjpeg streams at 720p and 1080p at
60, 30, 24, and 15 fps each.

Bug: 242344221
Test: Manually tested that UVC is correctly set up on boot.
Change-Id: Ic597e5a1ec1bd31d73899e5a885f8cb0d0753bd5
2023-02-06 21:20:59 +00:00
Jack Wu
753aa1e73f init: add permission for charging_policy access am: fb8fb609b0 am: 559d0c1057 am: 86dcb345b3
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2418901

Change-Id: Ib81f20d069166a6f6c1089e39e68c7ca3e0aa234
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 09:51:27 +00:00
Jack Wu
559d0c1057 init: add permission for charging_policy access am: fb8fb609b0
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2418901

Change-Id: Icc2d509be2b0cb7261e3f24db68180f996bed7fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 05:42:30 +00:00
Jack Wu
fb8fb609b0 init: add permission for charging_policy access
Bug: 251425963
Test: write charging_policy sysfs node successfully
Change-Id: I523e27088819c479cd323333729f65aae2e33124
Signed-off-by: Jack Wu <wjack@google.com>
2023-02-02 20:14:34 +08:00
Sophia Wang
7cebb76173 Revert "Revert "gs101:conf Add memlat CPU idle awareness settings""
This reverts commit 362e4bdebd.

Reason for revert: Perf regression issue get addressed

Change-Id: I7f7418caaeca6b70ce6409a300a2ce75efcba815
2023-01-10 18:26:30 +00:00
Michelle Yang
75726e25f3 Set /dev/video12 file permissions for gs101
This is required so Lyric is able to talk to smfc driver

Bug: 257084044
Test: ls -la /dev/video12 shows proper file permissions
Change-Id: I181c8f8d1647d91d092d83887f28bef640e3b464
2023-01-05 19:20:28 +00:00