Commit Graph

77 Commits

Author SHA1 Message Date
Michael Bestas
22f550f593 sm8350-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-08-21 15:07:42 +02:00
Michael Bestas
ba4dd1f2cb sm8350-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-08-21 13:04:53 +00:00
Michael Bestas
3017c2408c sm8350-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-08-21 13:04:53 +00:00
FlowerSea0208
afa2607ddd sm8350-common: Configure common Powershare HIDL
Change-Id: I1287d066eca7d1a274b491f80166ed68c5b11459
2023-08-12 16:52:07 +08:00
Giovanni Ricca
6c44bff5f7 sm8350-common: rootdir: Sync rootdir from haydn V14.0.3.0.TKKMIXM
Change-Id: Ibbaf1fd6ac6e45b71c66b79a95fa2c936cd3e695
2023-04-16 17:43:25 +02:00
Alexander Koskovich
8bd2080cc3 sm8350-common: Switch to /vendor_dlkm for kernel modules
* This lets us flash /vendor regardless of the kernel situation.

Change-Id: Ie1c18354b26006e416d06474f5844ceef3cfbaf3
2022-09-26 17:12:40 +02:00
Giovanni Ricca
3bffdc7265 sm8350-common: rootdir: Update init.qti.kernel.rc from haydn V13.0.3.0.SKKMIXM
* Keep previous commits applied

Change-Id: I8b7efe10b25dcd673c770bcf7ae92435065c05ac
2022-09-26 17:12:40 +02:00
Arian
e5b53b9af8 sm8350-common: rootdir: Update kernel post boot scripts from haydn V13.0.3.0.SKKMIXM
Change-Id: Id283d33472e4af8c3397728174908660e3762cd0
2022-09-26 17:12:37 +02:00
Arian
1799fe9571 sm8350-common: Add udfps handler lib
Change-Id: Ib837e4a70015dc24d431458a1cce5b86e87816a9
2022-09-25 20:04:30 +02:00
Bruno Martins
16a45dcda2 sm6150-common: Move to common fingerprint HIDL
Change-Id: I7cb0a45c865d9dbfd800b1d633f8d5ae613bb1b9
2022-09-25 20:04:30 +02:00
stic-server-open
397523e9f0 sm8350-common: rootdir: Remove duplicate "start logd"
* It is started in the on init phase in /system/etc/init/hw/init.rc

Change-Id: Ie10e1d4c520329a76627a965ca139f9ad0f71875
2022-08-29 01:53:16 +02:00
Arian
caaa6afed4 sm8350-common: Revert Xiaomi cpuset changes
* Drop foreground and top-app cpus
* Set 0-3 as background cpus
* Drop xiaomi iolimit and custom types for shima

Change-Id: I3733e196a8ed090c15d6867b0722425435f31474
2022-08-29 01:24:29 +02:00
Arian
b0fed8b209 sm8350-common: rootdir: Configure input boost for shima
Change-Id: I813e6893475caf8196f7c81f6ae237bd1d4b73d1
2022-08-29 01:24:29 +02:00
Arian
611c35bd95 sm8350-common: rootdir: Drop powerkey input boost
Change-Id: I685a215927b445bb2fac9229a1f41de5f88741ef
2022-08-29 01:24:29 +02:00
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