541 Commits

Author SHA1 Message Date
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
Rahul Krishna
3ab99f01c5 miatoll: Enable full vndk support
Change-Id: I1e50e8d66d79200410c19cca7ecd6248c89bd9d3
2021-04-23 07:15:21 +00:00
SonalSingh
f585afc2ac miatoll: prebuilts: Add GCamGOPrebuilt 2021-04-23 07:15:21 +00:00
Sonal Singh
2703a890cf miatoll: Switch to source built vendor.qti.hardware.perf@2.2.so
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Sonal Singh
a822ba4c49 miatoll: Build libminijail and system variant of libavservices_minijail from source
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
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
Park Ju Hyung
a3e9e0c57b miatoll: Optimize everything on preopt
We have plenty of space left at /system

Change-Id: I39d552259b66ec329c56cd4f4a7fc46fb2c07457
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Randall Huang
a3abaacfe5 miatoll: Enable zram-writeback job
This patch enables zram-writeback job. It will run idle marking
at 60m since the device is boot. After that, it will do first
writeback after 3hour to sweep initiallized cold pages out.
After that, it periodically write out every 24hour.

Bug: 117682284
Bug: 127185055
Test: confirm with manual testing
Change-Id: I6857c79ca3ce6a3619f4b7e200d7f17a8decd659
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Michael Wright
fd9678234e miatoll: Enable haptic text cursor
Support has landed in WebView, so time to turn it on in framework!

Bug: 111461797
Test: manual
Change-Id: I064cf3512928637895932b3405adaec74b1ceed2
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Alexey Kuzmin
4d537dc4e3 miatoll: Turn on support of multiple vibration intensities
Bug: 121202530
Test: manual
Change-Id: Id8ce35089b520fe73e9d18f9778a72bdb52b4015
2021-04-23 07:15:21 +00:00
David Su
e3acfea10b miatoll: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>
2021-04-23 07:15:21 +00:00
arco
3b950542ab miatoll: Silence clang warnings during kernel compile
clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]
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
Sonal Singh
1776cd623a [BLOBS] miatoll: Import missing blobs needed for WFD functionality
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Alex Naidis
f9b10f5c5d miatoll: wlan: Smarter decisions on whether to use a 2- or 5Ghz AP.
- Implement a smarter system on whether to connect to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
2021-04-23 07:15:21 +00:00
Yaroslav Furman
fa2583a503 miatoll: wlan: Disable logging.
Change-Id: Ib9d2e325dc64d068a08412f12c792ec0e5a0c1be
2021-04-23 07:15:21 +00:00
Sultanxda
49cf3aedc2 miatoll: wlan: Relax WiFi re-association RSSI thresholds.
Change-Id: I72bc937d1b9863d61dc96d2ad2ee81f365a3c903
2021-04-23 07:15:21 +00:00
LuK1337
f943d9306e miatoll: wlan: Enable DFS channel scanning in P2P search.
- Fixes P2P when connected to 5GHz access point.

Change-Id: Ie94aa06e9b6be9345688a1e10caa9a62b180eb30
2021-04-23 07:15:21 +00:00
Nick C
6ac453199e miatoll: rootdir: zram tuning 2021-04-23 07:15:21 +00:00
justinweng
b7e6a888cd miatoll: audio: enforce 24-bit audio for offload playback
Test: Audio Playback

Change-Id: Ia581e65a0e5e8dcbfae188fe36ca9d07bd9eb4e2
Signed-off-by: justinweng <justinweng@google.com>
2021-04-23 07:15:21 +00:00
Alex Naidis
2b12b4200e miatoll: wifi: enable QPower and Deep Sleep at the same time
* This enables Deep Sleep mode, additionally to QPower
* With this configuration, QPower manages the new Deep sleep mode
 -> Leads to amazing power savings

Change-Id: I32dbaee6406fbe01594176ba14c9f3f0c6d16714
2021-04-23 07:15:21 +00:00
Akash
1df715ec01 miatoll: Fix mic issues in apps like WhatsApp
Change-Id: I64d34f95386c14a2003228f6a5ed9a61602b81ae
2021-04-23 07:15:21 +00:00
Adithya R
5b94c8f707 miatoll: Remove dexpreopt flags that are default 2021-04-23 07:15:21 +00:00
Sonal Singh
1a91f9cee3 miatoll: overlay: Pin surfaceflinger
PA Notes:
- Not merged to master, but merged to internal master.
- Original commit removes libsurfaceflinger but I do not
  because we have enough memory.

Test: Builds as expected after this change, and flashes successfully.
Bug: 176197656

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
kdrag0n
a6c07829d9 miatoll: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save precious RAM on this
device.

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Jesse Chan
d068e65338 miatoll: overlay: Set fast charging indicator threshold to 10.8W
We no longer call 7.5W charging "fast charging" nowadays

Change-Id: I3a11f50f89933bd44b70d9f30a6e74a3d77abb25
2021-04-23 07:15:21 +00:00
Kuba Wojciechowski
98a5e51cb7 miatoll: Force disable wide color display
Xiaomi has built this device with TARGET_HAS_WIDE_COLOR_DISPLAY=true (possibly because it is the default in caf), but
the hardware doesn't properly support DISPLAY_P3 profilem causing weird yellowish tint in some scenarios. Force
disable the feature to fix it.

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
2021-04-23 07:15:21 +00:00
Tushar Mahajan
b3eea6a3b1 miatoll: Update TetheringOverlay & WifiOverlay
* taken from sm6150-common

Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>
2021-04-23 07:15:21 +00:00
Jesse Chan
1316e16ad0 miatoll: overlay: Configure SQLite to operate in MEMORY mode
This change yields considerable SQLite performance gains. It
should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.

Signed-off-by: Jesse Chan <jc@lineageos.org>
Change-Id: Ic775c3fa735a32653d8e7f4c15cac26c6ebc262c
2021-04-23 07:15:21 +00:00
Rahul Shahare
51c2de8f3d miatoll: Add kpti=off to boot command line
This will OFF kernel page table isolation.

Notes from Kuba Wojciechowski <nullbytepl@gmail.com> in 86bb20a832:
As per qualcomm - "SM8150/SM8250/SM8350/SM7250/SM7150/SM6150 - KPTI Not required".
It can also help increase performance by a lot in some scenarios.

Change-Id: Idd36c359d4955701e9ee3ee27a58177a8d622c86
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2021-04-23 07:15:21 +00:00
Sonal Singh
0f26ea0137 miatoll: Guard tree with soong namespace
* prevent module conflicts with other device trees
2021-04-23 07:15:21 +00:00
Adithya R
35cd7fa0ea miatoll: Disable COMPRESS_VOIP in boardconfig
To make VOIP work properly the following has to be set:

AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false in BoardConfig.mk
vendor.audio.feature.compr_voip.enable=true in vendor.prop

I have no idea why this is but setting either one of them differently results in the mic not working as it should.

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
SonalSingh18
dd4e444355 Revert "sm6250-common: remove unused audio configs"
This reverts commit d332175021c8fe3db4b434ea22414bfa90d385f8.
2021-04-23 07:15:21 +00:00
SonalSingh18
e3bd3aec6f Revert "sm6250-common: audio: update configs from curtana RKQ1.200826.002"
This reverts commit 18b8ed51a0305b695ff29725d3afcb2206995852.
2021-04-23 07:15:21 +00:00
Michael Bestas
78d2d0c2e2 miatoll: Switch to standalone extract utils 2021-04-23 07:15:21 +00:00
Indranil Chakraborty
4f83b493f6 miatoll: Pack libwfdaac_vendor for WFD
Change-Id: I828918c42e1eb2963829d62a9dbeee83e2f0e600
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
SonalSingh18
0cc06d0db3 miatoll: build soundtrigger from source
Signed-off-by: SonalSingh18 <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00