Commit graph

247 commits

Author SHA1 Message Date
Kelvin Zhang
d3ce2b9873 Restore permission of efs/efs_backup/modem_userdata after mount
Test: Boot device, erase EFS, check selinux labels
Bug: 345803836
Change-Id: Ia511731e001d74409b40b087432e3535ca5cfc8f
2024-06-11 09:13:27 -07:00
Pawan Wagh
213da03c2b Use lzo-rle for 16kb page kernel
Test: Checked zram compression with 4KB and 16KB kernel
======== Using 4KB kernel================
$ adb shell getconf PAGE_SIZE
4096
$ adb shell cat  /sys/block/zram0/comp_algorithm
[lz77eh] zstd deflate lz4 lzo-rle lzo
======== Using 16KB kernel================
$ adb root
restarting adbd as root
$ adb shell cat  /sys/block/zram0/comp_algorithm
lz77eh zstd deflate lz4 [lzo-rle] lzo
$ adb shell getconf PAGE_SIZE
16384

Bug: 316158358
Change-Id: I068cf4f9ab9a1fdc36f141a1de6f4ea293db9d6f
2024-05-10 01:13:39 +00:00
Shiyong Li
0f9fe30938 Merge "Add sepolicy for power_state node" into 24D1-dev am: eaa2a2ee8c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/27056931

Change-Id: Ib3a211c40b3ce8fbade8ceb2c72b99ef2277191c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 05:21:44 +00:00
Kelvin Zhang
b08f8dbf23 Reland: Copy files on EFS partition to /data on boot
During boot, this CL adds the following sequence of actions:

1. mount original efs partitions(most likely f2fs) on /mnt/vendor/efs
2. copy files in /mnt/vendor/efs to /data/vendor/copied/efs.img
3. fsync all the files in /data/vendor/copied/efs.img
4. rename /data/vendor/copied/efs.img to /data/vendor/copied/efs
5. bind-mount /data/vendor/copied/efs to /mnt/vendor/efs
6. repeat 1-5 for efs_backup and modem_userdata

The original EFS partitions are mounted and only used for file
copying, no destructive action done on original efs partitions.

Test: reformat /data as ext4, boot the device
Bug: 319335586
Change-Id: Ide78be316778acfc5c582c4a7b78853796cf4c1e
2024-05-07 21:31:13 -07:00
Pechetty Sravani
4053a85fe7 Revert "Copy files on EFS partition to /data on boot"
Revert submission 26822004

Reason for revert: Potential culprit for b/339099720- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:26822004

Change-Id: Ie9598a3b3b56c8ce26f475079798c44314696f44
2024-05-07 07:19:37 +00:00
Kelvin Zhang
7251274bee Copy files on EFS partition to /data on boot
During boot, this CL adds the following sequence of actions:

1. mount original efs partitions(most likely f2fs) on /mnt/vendor/efs
2. copy files in /mnt/vendor/efs to /data/vendor/copied/efs.img
3. fsync all the files in /data/vendor/copied/efs.img
4. rename /data/vendor/copied/efs.img to /data/vendor/copied/efs
5. bind-mount /data/vendor/copied/efs to /mnt/vendor/efs
6. repeat 1-5 for efs_backup and modem_userdata

The original EFS partitions are mounted and only used for file
copying, no destructive action done on original efs partitions.

Test: reformat /data as ext4, boot the device
Bug: 319335586
Change-Id: I4c4024b4cad18199226f5644f98254b2230574d6
2024-05-06 15:27:46 -07:00
Kevin Ying
52be8e937c Add sepolicy for power_state node
Bug: 329703995
Test: manual - use camera
Change-Id: If9f14980e15a3b936bf2117f066e734ee122d72d
Signed-off-by: Kevin Ying <kevinying@google.com>
2024-04-22 22:20:42 +00:00
Kelvin Zhang
bb210c9c43 Move EFS/persist mount to a separate fstab
Next CLs in this stack will make changes to persist/efs mount process
This CL will first move relevant code to a separate file for easier
review.

To support booting under 16K page size, we need to copy files on
persist partition(F2FS, which does not support 16K page size)
to data partition(which will would be EXT4 for dev option enabled
devices).

Bug: 319335586
Change-Id: I2750eb8b53431037cecc972448799409345f5ca3
2024-04-19 20:22:56 -07:00
Martin Liu
2c344ad3fa move common MM settings to gs common folder
Bug: 332916849
Bug: 309409009
Test: boot
Change-Id: If5515f107b4fb2490d83c2d48c78727bd6f2e51f
Signed-off-by: Martin Liu <liumartin@google.com>
2024-04-18 03:49:46 +00:00
Martin Liu
625450137c Disable proactive compaction
From field data, sometimes kcompactd is
pretty activated and can impact critical
CUJs. Disable it first to mitigate the
impact.

Bug: 332916849
Test: boot
Change-Id: I87cdcf184afb5fe10e873162b94bd3bf54b1acbd
Signed-off-by: Martin Liu <liumartin@google.com>
2024-04-11 00:14:29 +00:00
Sergey Volk
b5769ac1f1 Fix permissions for dp_hotplug_error_code sysfs node
DisplayPort kernel driver passes error code/status to hardware composer
via the dp_hotplug_error_code sysfs file. When HWC receives/consumes
the error, it will write "0" into that file to reset the error code. So
this file must be readable and writable by the HWC code running with
"system" user/group permissions.
Previously we used to set the ownership to system:system, but in order
to be more consistent with the rest of sysfs files in that directory,
we can use root:graphics instead with permissions 0664. HWC runs
under the "graphics" group, so this should allow HWC write access.

Bug: 324953626
Test: checked permissions of dp_hotplug_error_code sysfs
Change-Id: Idf65acc12d158a78565c41f4e2aea24362e2cdff
2024-02-14 00:58:35 +00:00
Spade Lee
7bb7687851 dumpstate: add SoC residency dump
Bug: 319536756
Change-Id: Iec35a05a22a6e6315a2ff6b9b5190099c1bcd5c4
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:46:36 +00:00
Midas Chien
495a27003c display: allow hwcomposer to access allow_wakeup_by_state_change
Bug: 311495944
Test: check permission
Change-Id: I69b6a1487b84cf798cd61f064a186fca27cd0baf
2024-01-17 07:52:09 +00:00
Jaegeuk Kim
eddcfba6b3 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:00:10 -08:00
Jenny Ho
624157e600 Adjust bd_state to system for read
Bug: 316432531
Change-Id: Ib4a398d766bb321d0579819f248d4688be7ad1d1
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-16 02:03:05 +08:00
Kieran Cyphus
8534e092af Merge "LogMaskLibrary: Add newlines and fix posix perms" into main 2023-12-01 07:24:52 +00:00
Martin Liu
e55232fbac adjust PCP high level
We have observed more reclaiming activities as upstream
has changed how PCP high is calculated since 5.15 kernel.
Re-align the level back to 5.10 first so we can monitor
how it impacts the MM metrics.

Bug: 309409009
Test: boot
Change-Id: I7ac1eb88a8dae7c823330a2c75aec9547bd5c427
Signed-off-by: Martin Liu <liumartin@google.com>
2023-11-21 10:24:32 +00:00
kierancyphus
741d0c09d7 LogMaskLibrary: Add newlines and fix posix perms
Bug:302435001
Test: Manually build, flash, `adb shell ls -l \
/data/vendor/radio`

Change-Id: If2696c577e66ee27a042ebe8d6ff61a9e832caec
2023-11-21 05:52:39 +00:00
Chris Lu
c09eb8dc6b zuma: HWC access to panel refresh_ctrl node
Bug: 295603692
Test: write the node successfully
Change-Id: I7a5e908ec6d253791954d1b2071f3d59871650eb
2023-11-06 08:02:29 +00:00
Jacky Liu
a3772510e6 Update i2c pathes with new static i2c bus numbers
Bug: 305242309
Test: Boot to home
Change-Id: I87687b2e3a479a166257ad958ddd07af7967f416
2023-10-23 14:17:22 +08:00
Tom Huang
b25c109b04 Merge "init.zuma.rc: bluetooth own uart debug node" into udc-qpr-dev am: 16c49ab709 am: 1dcc691194
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24947930

Change-Id: I2a4a229a25d7f95c901c0c1787f91d2183d5c76c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-13 03:14:05 +00:00
Tom Huang
16c49ab709 Merge "init.zuma.rc: bluetooth own uart debug node" into udc-qpr-dev 2023-10-13 02:47:34 +00:00
jonerlin
7b5f2ae7a5 init.zuma.rc: bluetooth own uart debug node
Bug: 294747612
Test: v2/pixel-pts/release/bootstress/1200counts/suspend-resume
Change-Id: I2d381e37df4e179cc967a0cbc6fbe71458bc23f2
2023-10-11 06:43:35 +00:00
Guibing Cai
a7648dfb45 Merge "init: update vendor_sched procfs paths" into main 2023-10-10 21:45:58 +00:00
Jenny Ho
1886c605a6 Merge "init: add battery persist folder" into main 2023-10-04 07:39:41 +00:00
Jenny Ho
f800b2645c init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 303191266
Change-Id: I7e8c1e536510f24572a6c69c460f00d41e652fe4
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-10-04 00:46:12 +08:00
Midas Chien
78a11c134a Merge "display: allow hwcomposer to access DRM module debug file" into main 2023-10-02 01:52:31 +00:00
guibing
c367051d69 init: 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: I14d07c4525f4bf60318bca31a89b9130c4236600
2023-09-28 23:45:30 +00:00
David Kimmel
160a33cd99 Merge "Game Mode Sched lib affinity" into udc-qpr-dev am: 04635112d1 am: 15d23880e3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24865566

Change-Id: I8bc21f0d2f794161f28fbe5b4a7e1e9131948915
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 20:47:08 +00:00
David Kimmel
ea0cc7f075 Game Mode Sched lib affinity
Bug: 170648047

Test: sched / hints applied correctly

Change-Id: Id781d42a93085981301b5278a67e8e4e1f47617d
Signed-off-by: David Kimmel <davidkimmel@google.com>
2023-09-26 10:58:33 -07:00
Qais Yousef
3a73468bc5 init.zuma.rc: Tune uclamp_max values for Zuma and enable uclamp_max_filter am: 4d16a3505e am: 351ce93d94
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24733248

Change-Id: I7abde255373d256e4276393de6914a6fa4ab9469
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 02:18:46 +00:00
Qais Yousef
4d16a3505e init.zuma.rc: Tune uclamp_max values for Zuma and enable uclamp_max_filter
The values are based on most efficient frequencies from EM default
profile.

Bug: 289083704
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Iab3f17c9f32e0ea01e1a8f414373aac0fece8b46
2023-09-22 23:16:08 +00:00
Midas Chien
cdd405ec70 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: I985c402bc2d920a43493dddd73e9470ab0228104
2023-09-22 16:01:34 +00:00
Treehugger Robot
b9abd19bc2 Merge "Set owner for dp_hotplug_error_code" into main 2023-09-21 20:42:33 +00:00
Sergey Volk
69e8e28d1e Set owner for dp_hotplug_error_code
dp_hotplug_error_code owner needs to be the system user, since HWC
needs to be able to write into it, to reset the error code.

Test: manual
Bug: 283461313
Change-Id: I0866e39f3cd75878628d44b4afaf53df61448213
2023-09-20 20:19:37 +00:00
Jonglin Lee
67ce7e3fa8 Merge "Revert "Sched lib affinity and freq settings"" into udc-qpr-dev 2023-09-20 20:08:45 +00:00
David Kimmel
b833218671 Revert "Sched lib affinity and freq settings"
This reverts commit 253d3d48fa.

Reason for revert: Scheduling while atomic b/301031609

Bug: 301031609
Change-Id: I8179a926315da55ede03653a1517f13f61f3fdeb
2023-09-20 19:51:15 +00:00
Wei Wang
c54ce72fc0 Merge "Sched lib affinity and freq settings" into udc-qpr-dev 2023-09-15 23:48:33 +00:00
David Kimmel
253d3d48fa Sched lib affinity and freq settings
Bug: 170648047
Test: sched / hints applied correctly
Change-Id: Ib4d820b0d12d1bbd7fe9340eaf184aaf7fff9c9a
2023-09-15 22:01:10 +00:00
Florian Mayer
070611ca06 Merge "Allow to override MTE mode from device config" into udc-qpr-dev 2023-09-13 17:52:49 +00:00
Florian Mayer
f4915a01f6 Allow to override MTE mode from device config
Test:
  # setprop persist.device_config.runtime_native_boot.bootloader_override force_on
  # setprop persist.device_config.runtime_native_boot.mode_override sync
  # cat /sys/devices/system/cpu/cpu?/mte_tcf_preferred

Bug: 299536833
Change-Id: If919c002a91b50448aa2ce47e206005e2301a4a6
2023-09-08 18:15:32 +00:00
Kalesh Singh
21c643b232 zuma: Disable MGLRU
Disable mglru in P23 devices.

Bug: 299636739
Change-Id: I73c997f76b02a08c38b8e8d8a9c0bec24237fce6
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2023-09-08 17:03:40 +00:00
Jenny Ho
d175d70886 dump_power: add eeprom path to dump
Bug: 298219364
Change-Id: I233a92e51b215cc712a9344fa369c1a0f7d78d5f
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-09-01 08:32:46 +08:00
Qais Yousef
7d55c7a459 init.zuma.rc: Disable util-awareness for mids and bigs
There are power regression reports for low activity use cases on mids
and bigs. Disable util-awareness on mids and bigs for now until this is
better investigated and either use a slightly higher threshold or fix
any potential root cause that is causing unnecessary higher activities
on these cores.

Bug: 289293494
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I7ab2dca998c749567c5e1908d57b2174313e8390
(cherry picked from commit 4c559d3334)
2023-08-30 23:46:54 +00:00
KRIS CHEN
3782d703a4 Merge "Add task_profiles MaxPerformance for storageproxyd" into udc-d1-dev am: 0a77f9c0d2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24464638

Change-Id: I343d53bb07666de283ba15c59d01309102a88a17
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 06:33:12 +00:00
KRIS CHEN
0a77f9c0d2 Merge "Add task_profiles MaxPerformance for storageproxyd" into udc-d1-dev 2023-08-21 06:00:35 +00:00
Ken Sun
a190c688ec Revert "init.zuma.rc: Disable util-awareness for mids and bigs" am: 1bf61f399f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24483947

Change-Id: I8d059fc45fe2ac49ccfb5f08f9112459384149ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-19 01:19:26 +00:00
Ken Sun
1bf61f399f Revert "init.zuma.rc: Disable util-awareness for mids and bigs"
This reverts commit 4c559d3334.

Reason for revert: Cause Wifi Speed regression issue

Bug: 296539490
Change-Id: Ifd11f6ada4025723839ca6ed9d468e59c2d49ef0
2023-08-18 16:09:37 +00:00
Kris Chen
a4bca41a16 Add task_profiles MaxPerformance for storageproxyd
It adds the storageproxyd to top-app group.

Bug: 290709897
Test: enroll fingerprint
Change-Id: I8f9a54bc374ff203e34f2ad7bcb9aabd319767fa
2023-08-18 16:30:20 +08:00
Qais Yousef
2fce61f633 init.zuma.rc: Disable util-awareness for mids and bigs am: 4c559d3334
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/24281928

Change-Id: I3e9ffff087dfaed0c73da9c734e0b162f4d70579
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 06:18:57 +00:00