Commit graph

317 commits

Author SHA1 Message Date
Yi-Yo Chiang
d1e8b04c5d init-display-sh: Allow writing to kmsg am: 840c1c9e2f am: 51bcffcce8
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3442472

Change-Id: I50a3ad723fdd55964c69d7f70b4f5a449865d04c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-20 21:43:41 -08:00
Piotr Klasa
987a1e0a99 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: I4b5ac2fb09533a87cf8dda9f2364d1fe8ab9acc9
2025-01-16 01:38:28 -08:00
Yi-Yo Chiang
840c1c9e2f 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: I142a20b0af9008956ad2325caef70e85b1463f41
2025-01-09 18:42:20 +08:00
Paulsu Su
c74b1a6c60 Set initial value for foreground_window group
For multi-window foreground app group.

Bug: 200769420 
Change-Id: I2d9cd9d90e9011593c53facf5fd47a4414e3f1cf
Test: build pass
Flag: NONE vendor init file does not support flag
2024-12-16 04:23:58 -08:00
Piotr Klasa
8cca4af88c 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: I018b7b564bcc533212d2ada0dda85678c41feead
2024-12-12 04:08:53 -08:00
Rick Yiu
6eded858fc 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: I04d2f7af89fe3b1425962a5a5ab01e42f09fc19d
2024-12-06 08:19:59 +00:00
Will Song
d817c86300 init: gs201: 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: Ia0ec769ff8996d66a4355f20de884fcb05728c3f
2024-11-27 14:58:10 +00:00
Paulsu Su
f48f2625e6 init: make pmu_poll_enable node readable
Bug: 378509589
Flag: EXEMPT init config for read permission
Change-Id: I226aa1a9801bdbb2630c7583180495752c9002e1
2024-11-19 11:41:43 +00:00
Boon Jun
ba05fccd6d 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: I9ecdeb73e6787409e02eae3c699d2d9817249bc4
2024-11-18 03:36:18 +00:00
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
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
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
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
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
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
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
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
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
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
Sebastian Pickl
ac5dd11596 Revert "bt: make bluetooth own the data vendor bluetooth folder ..."
Revert submission 23844270-P22-vendor-log-udc-qpr

Reason for revert: causes selinux tests to fail b/289989584

go/abtd: https://android-build.googleplex.com/builds/abtd/run/L37600000961782595

Bug:289989584

Reverted changes: /q/submissionid:23844270-P22-vendor-log-udc-qpr

Change-Id: Ife1c71257572101c32b9e6f60c275b9366c654b2
2023-07-05 11:28:39 +00:00
Patty Huang
f77e84ac98 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: If3e247093deae5b9d5c237dc585973e77a0629b1
2023-07-05 06:16:08 +00:00
guibing
ae51b7425b 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: Ie8d321e20d64e97d2896f6e5cf6f437dede84928
2023-06-30 08:38:04 +00:00
Rick Yiu
7e4ac7e54e Make bg group throttle value experimental
Bug: 287562715
Test: build pass
Change-Id: I6482881c454687fe7ccae5d7d1da39d88b27a476
2023-06-16 11:19:18 +00:00
Wei Wang
f2ec1ed9ab 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:56 +00:00
Matt Buckley
b4e9557898 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: I230a9f39603a27409a2a06b22bc62b8ede4af94c
2023-06-02 16:33:34 +00:00
Jenny Ho
8352219e0d dump_power_201: update battery fg dump data
- add battery eeprom dump path
- adjusted maxfg names for better readability

Bug: 284878175
Change-Id: I162314f580eace926c9cd661d8d1e04dea131fe4
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-05-30 12:00:20 +08:00
Donnie Pollitz
d78467fe66 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: I4486bb08d21e42cf3099c6b600a7adaf7580c4bf
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
2023-05-26 07:17:39 +00:00
sashwinbalaji
9ad2131f09 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 atom logs
Change-Id: I272b1f52243dcb91d4d6dd142c54edf533f6498c
2023-05-25 05:28:45 +00:00
Sam Dubey
b67c8e1423 Revert "Make sure nsp storage has the right owner/group"
Revert submission 23280559-nsp

Reason for revert: b/284107307

Reverted changes: /q/submissionid:23280559-nsp

Change-Id: Ieaed6e8e130c1a443c48981d160dc20e06c2449b
2023-05-24 10:40:51 +00:00
Donnie Pollitz
2a83a22a6d 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: Ic76f312ec954e8afbbe95b3843356b8f92a1d4a7
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
2023-05-24 08:30:29 +00:00
Rick Yiu
0fed542401 Restore uclamp.max for bg groups
These values could indicate if cpu is running important tasks.

Bug: 201260585
Test: build pass
Change-Id: I222ba118f63d8c1a3285c882eb4e5940e666a02d
2023-05-24 06:06:17 +00:00