Commit Graph

63 Commits

Author SHA1 Message Date
Giovanni Ricca
eb8b12dea6 sm8350-common: rootdir: Prefer s2idle over deep for lahaina
Change-Id: I6831d37d02012e3ce2d58a9c45818e594a658883
2022-08-29 01:24:29 +02:00
Giovanni Ricca
83662ab93f sm8350-common: rootdir: Add shima and yupik kernel post_boot scripts
While at it, update lahaina one from odin V12.5.12.0.RKMCNXM

Apply the following commits to all scripts:
commit a7efe9f3af
Author: Cosmin Tanislav <demonsingur@gmail.com>
Date:   Tue Sep 28 09:15:41 2021 +0300

    sm8350-common: rootdir: remove cpu 7 from foreground tasks

commit 52fde070d6
Author: Cosmin Tanislav <demonsingur@gmail.com>
Date:   Fri Sep 24 02:44:34 2021 +0300

    sm8350-common: rootdir: do not touch sleep disabled

commit 30ddf5a818
Author: Cosmin Tanislav <demonsingur@gmail.com>
Date:   Sat Sep 18 02:57:51 2021 +0300

    sm8350-common: rootdir: cleanup

Change-Id: Ibd4e8717b52c35faa4d43ade170dbde58c04ed37
2022-08-29 01:24:29 +02:00
Randall Huang
e5413336ca sm8350-common: rootdir: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
2022-08-29 01:24:00 +02:00
Arian
163cec32a7 Revert "sm8350-common: let init do read ahead configuration"
Init doesn't handle all dm devices

This reverts commit 17d09b70a0.

Change-Id: I2b42c286307e8fd41140bca8f893ccdf13ebfc06
2022-08-29 01:23:13 +02:00
Arian
d90172a404 sm8350-common: Add power HAL extension and use xiaomi-touch to handle dt2w
Change-Id: I5c65e0df255853eb2b3018a27ceb807c111bc4df
2022-04-02 00:00:58 +02:00
Arian
1a7b42f716 sm8350-common: Drop remaining pieces of qcom system daemon
Change-Id: I4353249682aaa0c08b5af462656974bcb6fdf14a
2022-04-01 23:43:34 +02:00
ItsVixano
2f00448979 sm8350-common: rootdir: Update mi_thermald init script
* From odin V12.5.12.0.RKMCNXM

Change-Id: I5509271b0cdb23e40f8fb4186b740c66d79fe069
2022-04-01 17:50:45 +02:00
Arian
00464fa0d0 sm8350-common: Drop perf learning module
This depends on caf BoostFramework

Change-Id: I1d3e6750ecb88db83f265cc06b175cbc0cfb9726
2022-04-01 17:48:08 +02:00
Arian
4788802371 sm8350-common: Drop IO Prefetcher
This depends on caf BoostFramework

Change-Id: Ie3ea41f7be323472124a395b8fee52aa7333c2fc
2022-04-01 17:47:57 +02:00
Arian
de2c62ffe9 sm8350-common: ueventd: Cleanup unnecessary permissions
Change-Id: Ia37b752c369d8b0dc48aba33898ce7e245f4de2d
2022-04-01 17:39:06 +02:00
Arian
717d76ad6e sm8350-common: ueventd: Setup permissions on mius iio devices
Change-Id: I44004a3c1377d91e887f66905df5f8c61b0d5639
2022-04-01 17:39:06 +02:00
Wang Han
07d7fc7025 sm8350-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2022-04-01 17:39:06 +02:00
Arian
0072a17f4c sm8350-common: Move ueventd.rc to rootdir and checkout to LA.UM.9.14.r1-19100-LAHAINA.0
Change-Id: I7c0a9ad622a0c42966d84024c22cd03e033fd09b
2022-04-01 17:39:06 +02:00
Albert I
07da74745e sm8350-common: rootdir: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2022-04-01 17:24:10 +02:00
Arian
99e97f29a8 sm8350-common: rootdir: Add sdcard mount entries
Change-Id: I0ca98738e4964d23614df797b1faaebe0058a451
2022-04-01 17:24:10 +02:00
Arian
b481a5f286 sm8350-common: rootdir: Update copyright header from lahaina fstab
The copyright header has been modified by caf while the initial lahaina
tree whose fstab we use.
Specifically from https://source.codeaurora.org/quic/la/platform/vendor/qcom/lahaina/tree/fstab.qcom?h=LA.UM.9.14.r1-18900-LAHAINA.QSSI12.0&id=b403cbb26431c57a8590f94307f12443a55e29e2

Change-Id: I1dd07a729feeded6478e095573070fde532f2f02
2022-04-01 17:24:10 +02:00
Benergy Meenan Ravuri
fe715bfa51 sm8350-common: rootdir: Remove start console
Remove start console

Change-Id: I1041fa446499cd82bcbf6d5b86cb25a9a88fa90c
CRs-Fixed: 2977860
2022-04-01 17:24:10 +02:00
Ziqi Chen
3ba9fbc3d6 sm8350-common: rootdir: Tuning UFS clkgate and ah8 during boot time
Disabling UFS clkgate and ah8 during boot time helps in reducing
IO delays, which helps in reducing the total boot time. This change
will disable UFS clkgate and ah8 during early-init and then enable
it back after boot completion.

Change-Id: I6a10cd57a30fe3bdc4fba72a0d84cdfa3b1fd513
2022-04-01 17:24:10 +02:00
Vaibhav Agrawal
8cd50b7bf2 sm8350-common: shima: Support ufs and emmc variant fstab files
Two fstabs are needed to support different data unit number (dun)
size for ufs and emmc hardwares. This needs different encryption
flag in fstab to address the difference in dun size.

[ArianK16a: don't add the emmc fstab since all our devices are ufs]

Test: Verified bootup, vts_kernel_encryption, fscryptctl.

Change-Id: Iff03422d39c789c544bdd86faef070ae46eb4e0e
2022-04-01 17:24:10 +02:00
Benergy Meenan Ravuri
57f5133467 sm8350-common: shima: Fix eMMC bootup issue
Remove the hard-coded path for /dev/block/bootdevice.
Instead use the bootdevice property.

Change-Id: I194587e250f1d24f677c6fd3f34a23f146d4bc7e
2022-04-01 17:24:10 +02:00
Michael Adisumarta
eac08cecb1 sm8350-common: init.target.rc: remove ipa fw loading in post-fs
Removing command to load ipa fw from post-fs, where FW mount
is not guaranteed.

Change-Id: I426bcfd2d9e0fb9f09a360374fe05b653676cf4b
CRs-Fixed: 2819603
2022-04-01 17:24:10 +02:00
Christopher Braga
f58b667d1f sm8350-common: rootdir: Update QMCS partition to mount with noatime
QMCS partition is not a read only partition, and risks the danger
of causing unnecessary disk churn when QMCS files are read.

Update QMCS partition to be mounted with the noatime option.

Change-Id: Icf7e565d0e1c990131ad090c2f466bea419b4ad4
2022-04-01 17:24:10 +02:00
Benergy Meenan Ravuri
637840c1e2 sm8350-common: init.target.rc: move spunvm partition out of lahaina/shima fstab
move spunvm partition out of fstab and mount in init.target.rc
only for lahaina as shima doesn't have spunvm partition.

Change-Id: I2b19c7cf84f23c0f73103fff2a2a7ae5a7dd186a
CRs-Fixed: 2801834
2022-04-01 17:24:10 +02:00
Arian
77842cb102 sm8350-common: rootdir: Fix creating persist display folder
Change-Id: I929324ff494ecbf5a0672e503980a547ee0c66ce
2022-04-01 17:22:23 +02:00
Cosmin Tanislav
17d09b70a0 sm8350-common: let init do read ahead configuration 2021-10-19 10:14:31 +03:00
Cosmin Tanislav
a7efe9f3af sm8350-common: rootdir: remove cpu 7 from foreground tasks 2021-09-28 09:15:41 +03:00
Cosmin Tanislav
52fde070d6 sm8350-common: rootdir: do not touch sleep disabled 2021-09-24 02:44:34 +03:00
Cosmin Tanislav
2fc89c231f sm8350-common: rootdir: handle ffs mtp 2021-09-21 21:42:26 +03:00
Cosmin Tanislav
a1693c1b13 sm8350-common: rootdir: chown double_tap node 2021-09-20 20:41:20 +03:00
Cosmin Tanislav
525d710638 sm8350-common: remove module loading from 5.4 gki directory 2021-09-20 20:41:20 +03:00
Cosmin Tanislav
30ddf5a818 sm8350-common: rootdir: cleanup 2021-09-20 20:41:20 +03:00
Cosmin Tanislav
b8b56d385b sm8350-common: remove fts exception from vendor modprobe 2021-09-20 12:19:07 +03:00
Cosmin Tanislav
fdc878085d sm8350-common: rootdir: update 2021-09-18 03:11:01 +03:00
Cosmin Tanislav
1f467ad373 sm8350-common: update fstab 2021-09-03 21:38:58 +03:00
Cosmin Tanislav
c28a95caee sm8350-common: update recovery configuration 2021-09-03 20:23:13 +03:00
Volodymyr Zhdanov
a24f819646 sm6250-common: rootdir: update configs from curtana RKQ1.200826.00 2020-12-06 22:48:36 +02:00
Volodymyr Zhdanov
a7d8ba3094 sm6250-common: rootdir: update fstab from curtana RKQ1.200826.002 2020-12-06 22:48:36 +02:00
Alistair Delva
88a421df00 sm6250-common: rootdir: Enable inline encryption
Bug: 137270441
Change-Id: I8fb8822a5f19f3908b662181495550e60d80a3f3
2020-12-06 22:48:36 +02:00
Sandeep Neerudu
02f6317e04 sm6250-common: rootdir: remove sensors specific boot up commands from init.qcom.rc
move sensors specific boot up commands from global init.qcom.rc to component

specific rc files , which are part of individual component projects.

Change-Id: Ib0410cd0af8d77573bd320063982b504b1b1d1d5
2020-12-06 22:48:36 +02:00
Volodymyr Zhdanov
65208feaa4 sm6250-common: rootdir: override hwcomposer service
* CAF ¯\_(ツ)_/¯
* See https://source.codeaurora.org/quic/la/platform/hardware/interfaces/commit/?id=73a427f95e231a46c2274d51abfec21bd2d316f1
2020-12-05 00:36:17 +02:00
Kyle Lin
c615731c6d sm6250-common: adjust thread count and cpuset after setup wizard
Test: Forrest appinstall test
Bug: 149395059
Change-Id: Ia3f09b817daf36a3ac81f871675fbb1cbd2f6bb5
2020-12-05 00:36:17 +02:00
Karthik Gopalan
9d26cd31ec sm6250-common: Set lmkd.reinit property from vendor init
Set lmkd.reinit property to 1. This will trigger
reinit of lmkd service.

CRs-Fixed: 2692843

Change-Id: Ib946b01ca1dc013f0148ca702e4d550cde32b6c2
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
42402b7702 sm6250-common: rootdir: don't enable a2dp offload from rootdir
* this breaks a2dp toggle
2020-12-05 00:36:17 +02:00
Mohamed Moussa
ba201b9ba9 sm6250-common: Update fstab with system_ext partition.
Change-Id: I3c80b5010a68c57b7b12374600e19bce6396ef9d
2020-12-05 00:36:17 +02:00
Dhananjay Kumar
e2a59ad584 sm6250-common: init.qcom.rc: update audio hal service override as per latest base service definition
Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
2020-12-05 00:36:17 +02:00
Jeya R
2d443ac777 sm6250-common: Remove context hub HAL service from init rc file
Remove context hub HAL service from common init rc file to
target specific

Change-Id: If32c8c15ad5e9ab4103db21580955bff6bfe92ef
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2020-12-05 00:08:57 +02:00
Jimmy Chen
264ba999e2 sm6250-common: wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: Icea6361942873b5177c5fa59f9628c3b383b4509
2020-12-03 01:19:26 +02:00
Volodymyr Zhdanov
b987b28cd5 sm6250-common: rootdir: load_system_props was deprecated 2020-12-03 01:18:03 +02:00
Volodymyr Zhdanov
e5823aa243 sm6250-common: rootdir: remove service for unused wigignpt 2020-12-03 01:17:38 +02:00
Jaegeuk Kim
bf69bf5116 sm6250-common: get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
2020-12-03 01:14:21 +02:00