Commit graph

310 commits

Author SHA1 Message Date
samou
6c2502279f bcl: revision for kernel6.1
- Migrate dump_gs101.sh to dump_power
- Enable battery_mitigation
- Correct ocp_cpu1 threshold

Flag: EXEMPT refactor
Bug: 349935208
Change-Id: I7e7f155ba7722dc5c24c2795c2840395ed4f9043
Signed-off-by: samou <samou@google.com>
2024-08-23 10:58:20 +00:00
samou
ad78871644 Remove BCL from thermal
Flag: EXEMPT tuning changes
Bug: 349935208
Change-Id: Id34dc3bb1895c28cf3c3a146ef9fc7a742a73044
Signed-off-by: samou <samou@google.com>
2024-08-12 12:32:21 +00:00
Krzysztof Kosiński
8244f563e6 Delete PDX sockets for legacy VR services.
Remove irrelevant copy and paste content. None of the gs101
devices ever included these services and these sockets are
not doing anything.

Bug: 234559097
Test: presubmit
Flag: EXEMPT dead code removal
Change-Id: I6fdab1e2232f83c0286d5f33773aaa17f9da3f7a
2024-07-11 04:41:53 +00:00
Qais Yousef
2340e91ebd init.gs101.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: I87b17dce903762b2c498d3631bf9b7e02cc2ebfe
2024-07-10 11:51:20 +00:00
YiKai Peng
60bd04557f gs101: wlc: add authstart permission
Bug: 348272247
Test: Build/Flash
Flag: EXEMPT bugfix
Change-Id: I8bbdce42984aa8da6abd000c06d6a5df37447914
Signed-off-by: YiKai Peng <kenpeng@google.com>
2024-06-21 04:05:35 +00:00
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
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
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
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
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
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
9bf9948f63 Make bg group throttle value experimental
Bug: 287562715
Test: build pass
Change-Id: I8cfa6fef3491bcec38b5ab628fd44fb2a53f85de
2023-06-16 11:21:26 +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
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
Jack Wu
a9176d48a2 init: enable dock-defend by default am: f5f9239424 am: ed6a5ea035
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20716912

Change-Id: Ic7948a0648cc555b8a1ada92dae69cf4271ea91a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-13 15:15:11 +00:00
Jack Wu
ed6a5ea035 init: enable dock-defend by default am: f5f9239424
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20716912

Change-Id: I09132239b942310e4e1fd4485bccb3d2f83cf028
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-13 14:39:10 +00:00
Jack Wu
f5f9239424 init: enable dock-defend by default
dock-defend is enabled in kernel code.

Bug: 262322247
Test: dock-defend is enabled by default
Change-Id: Ibbd83fc2442e2a6d68d7f506ccd29d452947931c
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-13 11:18:47 +08:00
Chungkai Mei
01a4b14147 Remove UClamp Threshold setting am: ef9d0934c6 am: dc8331b958
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20673904

Change-Id: I7492213e6327ed343311550923842f8d77326bd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 23:01:25 +00:00
Chungkai Mei
dc8331b958 Remove UClamp Threshold setting am: ef9d0934c6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20673904

Change-Id: Ib2c518fccc4f9267dfc2cffbad7aa2b08be38c55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 22:27:19 +00:00
Chungkai Mei
ef9d0934c6 Remove UClamp Threshold setting
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-09 21:43:57 +00:00
Sophia Wang
362e4bdebd Revert "gs101:conf Add memlat CPU idle awareness settings"
This reverts commit 2eb877f265.

Reason for revert: High perf UIBench regression

Change-Id: Ie3fcab4f9092c4ed3648d98871d007039f94647c
2022-11-15 21:49:21 +00:00