Commit graph

324 commits

Author SHA1 Message Date
Piotr Klasa
b2592019c9 move common init perf settings to gs_common
compared to ag/31352563 I did not transfer the settings for "write /sys/devices/system/cpu/cpuidle/current_governor teo", which caused the problem

Test: Verified if all values ​​of transferred settings are as they should be after rebooting the device, and and checked that there are no new selinux errors for hal_power_default, verified all metrics that caused power regression in the previous commit on abtd

Bug: 335874870

Flag: EXEMPT not supported by this component yet

Change-Id: I7ad8dbd7fd2783017c5bae8181008db32b95e9b7
2025-01-23 03:36:14 -08:00
Piotr Klasa
b60a6a9f89 Revert "move common init perf settings to gs_common"
Revert submission 31215196-move_common_init_perf_settings_to_gscommon

Reason for revert: Power Regression

Reverted changes: /q/submissionid:31215196-move_common_init_perf_settings_to_gscommon
Bug: 390502171
Change-Id: I9e88aecf6ed56d1d2171d379f16f215b4a135547
2025-01-21 01:27:04 -08:00
Yi-Yo Chiang
210d42804b init-display-sh: Allow writing to kmsg am: 6864f9f43b am: 7ff9bca803
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/3442471

Change-Id: I97ba2eaa1e1d68b3b2bfb5ea593eae57491c18e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-20 21:43:41 -08:00
Piotr Klasa
992d32e318 move common init perf settings to gs_common
Test: Verified if all values ​​of transferred settings are as they should be after rebooting the device, and and checked that there are no new selinux errors for hal_power_default
Bug: 335874870
Flag: EXEMPT not supported by this component yet

Change-Id: I7054fb3ab6f8fce9cf06c7691e8e1aea2453ca88
2025-01-16 01:38:28 -08:00
Yi-Yo Chiang
6864f9f43b init-display-sh: Allow writing to kmsg
modprobe would log errors to /dev/kmsg, need to explicit allow this.

Bug: 388717752
Test: DeviceBootTest#SELinuxUncheckedDenialBootTest
Change-Id: Iecb9d45e5ef08edc04c87d8f1375803c1df11621
2025-01-09 18:42:06 +08:00
Paulsu Su
dbdb448c8b Set initial value for foreground_window group
For multi-window foreground app group.

Bug: 200769420 
Change-Id: I2b65feb4732e33b27155dcfaf0b64a38b1b01026
Test: build pass
Flag: NONE vendor init file does not support flag
2024-12-16 04:23:58 -08:00
Piotr Klasa
71c878d984 Move all vendor_sched parameters and permissions to init.pixel.perf.rc
Bug: 335874870
Test: Checked that permissions and values ​​for all affected files are correct (ls -l, cat)
Flag: EXEMPT not supported by this component yet

Change-Id: I00fa4d3c3f1d7bb3e7c19f94c87dc8c541ebdc85
2024-12-12 04:08:53 -08:00
Rick Yiu
4981fc30f8 Add sched qos support
Add task profiles and set permissions.

Bug: 355612114
Flag: NONE init rc file does not support flag
Test: build pass
Change-Id: I44ab2097bbf919c1487d40ee68e74100c11b8891
2024-12-06 08:19:59 +00:00
Will Song
dda0174645 init: gs101: move sched rate limit to late init
Since pixel performance has a shared configuration,
we need to move override values into late init.

Bug: 381100494
Test: Boot
Flag: EXEMPT bug fix
Change-Id: I28ce81103249f30046d6e22b57be77441bc910b0
2024-11-27 14:58:10 +00:00
Paulsu Su
bab24fc479 init: make pmu_poll_enable node readable
Bug: 378509589
Change-Id: I1904fab932deaf6b50b7c1cfcaa29724b3b1c00d
Flag: EXEMPT init config for read permission
2024-11-19 10:42:30 +00:00
Boon Jun
a3eb6a6500 Update ldaf sensor device filename
LDAF sensor device filename changed after kernel upgrade
from v5.10 to v6.1 in some of our in-market devices.
We need to update the device filename to access the LDAF
with this new kernel version.

Bug: 378045567
Test: Open camera, and observe available LDAF sensor in logs
Flag: EXEMPT bugfix
Change-Id: I4bed0358263910d1312238a8e109afb75517d8c2
2024-11-18 03:36:18 +00:00
Jerry Chang
b6da7df66e 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: I0c0a39e3fc03d8df4e9e87cf61fb8e1dafcfc996
2024-09-18 12:08:38 +00:00
Ocean Chen
5c249e52ce 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: I9433d73e7ed4bfd5e72a0f8318e959373e76202e
Signed-off-by: Ocean Chen <oceanchen@google.com>
2024-09-05 13:00:16 +00:00
carmenyip
0c84b40b00 extended_log: update directory permissions for gs101
Bug: 336638376

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

Change-Id: Id6a76769e84f778e730cfcdffcd6779b5d8c89ce
2024-09-05 02:58:55 +00:00
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