50 Commits

Author SHA1 Message Date
Ramii Ahmed
76c08d115f miatoll: dynamically load widevine blobs for curtana
due to some miatoll devices not having a11 fw which leads to them being L3, this should load a11 blobs for a11 devices (currently only curtana) while the default is a10 blobs, temporary
2021-04-23 07:16:16 +00:00
Brock5555
5191fd4cfd miatoll: Register and enable qcrild & data services on boot
Fixes lag on getting network service after boot
2021-04-23 07:16:16 +00:00
Adithya R
c9cd74999a miatoll: rootdir: Import boot/runtime fs tuning from coral
https://android.googlesource.com/device/google/coral/+/refs/tags/android-11.0.0_r29/init.hardware.rc
2021-04-23 07:15:21 +00:00
Gopal Iyer
18a3ebde61 miatoll: rootdir: Tune UFS clock scaling during bootup
Disabling UFS clock scaling during boot time helps in reducing
IO delays, which helps in reducing the total boot time.
This change will disable UFS clock scaling during early-init and
enable it back after boot completion.

Change-Id: Ib3490a8155610aea399ac2f63aa4a71bee299c6e
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Alex Naidis
a2f3d3c358 miatoll: Override readahead to 128KiB after post-boot
* Qualcomm decided to increase the read-ahead value to 512KiB [1].

 * This value resulted in frequent cases where read-ahead
   would be waiting for new I/O requests and thus ending
   up being synchronous rather than asynchronous.

 * As result, the main goal of Qualcomm's patch [1] which
   is to increase throughput ends up in a regression where
   read throughput is significantly lower than it ever
   would be with the recommended [2] read-ahead value.

 * This patch uses our existing loop in ramdisk to set
   the read-ahead value to 128KiB.

[1] https://source.codeaurora.org/quic/la/kernel/msm-4.19/commit/include/linux/mm.h?h=LA.UM.9.12.r1-09000-SMxx50.0&id=25d04e4ceb7c067907901842c223d62973d73a75
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/mm.h?h=v4.19.160#n2397

Change-Id: I1980d904568fe4f1ce7b676452bcc44e4689f02f
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Wei Wang
361812104b miatoll: rootdir: Tune zram performance
-Switch to LZ4 for better overall performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.
-Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Adithya R
2fef095e36 miatoll: rootdir: Configure CPU input boost properly 2021-04-23 07:15:21 +00:00
Adithya R
33f5b156a5 miatoll: rootdir: Lower CPU input boost duration
* 120ms is overkill and unnecessary
2021-04-23 07:15:21 +00:00
Adithya R
7099704da6 miatoll: rootdir: Bump CPU min freq by a level 2021-04-23 07:15:21 +00:00
weivincewang
53abb30f60 miatoll: rootdir: Launch bootanimation early
Also includes:

commit 82dcb788c9c2ee5d50e75e050550cc841262d3df
Author: Kuba Wojciechowski <nullbytepl@gmail.com>
Date:   Mon Jun 15 21:01:20 2020 +0200

    ginkgo: rootdir: Move boot animation early start to late-init

     * "on init" is triggered in offline charge mode too causing
       boot animation to launch in that mode.

     * Ref: https://github.com/aosp-mirror/platform_system_core/blob/150687b/init/init.cpp#L854-L866

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Kuba Wojciechowski
903fd43681 miatoll: Kang EAS configuration from sunfish
Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
2021-04-23 07:15:21 +00:00
celtare21
102ee7c2ad miatoll: rootdir: Configure dynamic schedtune boost
Change-Id: Id05a4f149c3bc6da9e1962e1c48e049c59d30031
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Karthik Gopalan
0cb2021e49 miatoll: Set lmkd.reinit property from vendor init
Set lmkd.reinit property to 1. This will trigger
reinit of lmkd service after boot complete.

CRs-Fixed: 2692843

Change-Id: Ib946b01ca1dc013f0148ca702e4d550cde32b6c2
2021-04-23 07:15:21 +00:00
Adithya R
57e572c8e0 miatoll: rootdir: Bump top-app stune boost to 10 2021-04-23 07:15:21 +00:00
Adithya R
240a8e9660 miatoll: Improve post_boot tuning for performance
* kang cpusets and schedutil ratelimits from sunfish
 * enable predicted load boosting (WALT feature)
 * enable schedtune boost and prefer_idle
2021-04-23 07:15:21 +00:00
Kyle Lin
18e3b79b40 miatoll: Adjust dex2oat thread count after setup wizard
Test: Forrest appinstall test
Bug: 149395059
Change-Id: I9c5db865c616480b0f00629aba54e02b97bc4674
2021-04-23 07:15:21 +00:00
Sonal Singh
5a5637b3d3 miatoll: don't configure read ahead parameters with init.qcom.post_boot.sh
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Michael Bestas
55146455d0 miatoll: rootdir: Import init.qcom.early_boot.sh
* We used to have an init extension, which breaks treble
  and since P it requires custom SELinux rules to allow
  init reading /proc/sys/kernel/boot_reason
* Remove the init extension and set the property like
  QCOM does through init.qcom.early_boot.sh
* Update the property with vendor prefix while we are at it

Change-Id: I238f754a17c9a548c6c90503bfa4b21763d1b4c4
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Nick C
6ac453199e miatoll: rootdir: zram tuning 2021-04-23 07:15:21 +00:00
Jenhao Chen
9dd95a5c00 miatoll: increase ZRAM to 2GB
Test: TH
bug: 119988524
Change-Id: I086be89346e8dae32b06188861a6f0c9fe1d768f
2021-04-23 07:15:21 +00:00
Volodymyr Zhdanov
9075fefc2e miatoll: don't configure zram parameters with init.qcom.post_boot.sh
* let it use whatever is set in fstab
2021-04-23 07:15:21 +00:00
darkbeast69
dd386feca7 miatoll: Decommonized Tree check-in
there is no no need for common tree if all device is this much identical
clean overlays
2021-04-23 07:15:10 +00: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
Demon000
461be9334e sm6250-common: rootdir: remove modprobes for inline modules 2020-09-15 19:30:33 +03:00
Demon000
8068c2a96f sm6250-common: rootdir: include device specific rc file 2020-08-15 04:27:26 +03:00
Cosmin Tanislav
17e4422f9f sm6250-common: rootdir: remove unused init.qti.ims.sh script
Change-Id: Ib00e2205b4490506718d9b4cbfa110d506448609
2020-07-23 13:05:39 +03:00
Cosmin Tanislav
94d6264c9f sm6250-common: rootdir: correct wlan module name
Change-Id: I5d23fcc2938d34faaaf8b3403a0e766637dcf822
2020-07-16 02:06:16 +02:00
Demon000
6bb8716037 sm6250-common: rootdir: refactor usb configuration 2020-07-16 02:19:31 +03:00
Demon000
9668da7df5 sm6250-common: rootdir: remove unused parts of vendor init scripts 2020-07-16 02:12:12 +03:00
Cosmin Tanislav
a270c01cc3 sm6250-common: rootdir: fix machine module name
Change-Id: I3b441bbb7312187124e001e971af9febb4a59c50
2020-07-15 22:13:11 +02:00
Demon000
1ba07c1914 sm6250-common: rootdir: fix audio module names 2020-07-15 23:03:28 +03:00
Demon000
91088f7df5 sm6250-common: rootdir: import vendor init scripts 2020-07-15 23:03:28 +03:00
Erfan Abdi
ac2d5035c4 sm6250-common: symlink logical partitions in recovery 2020-07-15 23:03:28 +03:00
Demon000
a1b7eaf9df sm6250-common: add recovery scripts
* wait for bootdevice
 * setup ADB
 * symlink logical partitions

Change-Id: I78bdab01eb24464ef9416f35ea8e3c50cfef7864
2020-07-15 23:03:28 +03:00
Demon000
95ce303f90 sm6250-common: rootdir: add /boot to fstab
Build process errors out without this.

Traceback (most recent call last):
  File "build/make/tools/releasetools/ota_from_target_files", line 2455, in <module>
    main(sys.argv[1:])
  File "build/make/tools/releasetools/ota_from_target_files", line 2429, in main
    output_file=args[1])
  File "build/make/tools/releasetools/ota_from_target_files", line 1103, in WriteFullOTAPackage
    common.CheckSize(boot_img.data, "boot.img", target_info)
  File "/home/aicp-dev/rom/lineage-17.1/build/make/tools/releasetools/common.py", line 1190, in CheckSize
    p = info_dict["fstab"][mount_point]
KeyError: '/boot'

Change-Id: I30a396ea62e6e48420c0dd41533c156e90032929
2020-07-15 23:03:28 +03:00
Demon000
f9271b3d25 sm6250-common: import fstab from stock 2020-07-15 23:03:28 +03:00