Commit Graph

526 Commits

Author SHA1 Message Date
mikairyuu
1aa1652a9e sm7250-common: props: enable charger suspend 2022-08-05 00:28:32 +03:00
mikairyuu
c9e5e004c3 sm7250-common: props: enable mag filter 2022-08-05 00:14:03 +03:00
mikairyuu
30b72a4a84 sm7250-common: powerhint: return all the nodes
This will allow users to use any kernel they want
2022-08-04 08:48:50 +03:00
ghostrider-reborn
84ead77830 sm7250-common: props: Disable QTI perf lock usage in camera HAL
we're not using perf
2022-08-03 20:38:24 +03:00
mikairyuu
e3b00395fc Revert "sm7250-common: rootdir: provide fstab.qcom"
This reverts commit ef1eb99e5c.
2022-08-03 20:38:20 +03:00
johnmart19
f3644843d1 sm7250-common: Wi-Fi overlays: Update from Gourami 2022-07-24 10:42:16 +03:00
Adithya R
7a1045ff2c sm7250-common: Switch to dot product CPU variant
* monet:/ $ cat /proc/cpuinfo | grep -m 1 Features
   Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
   atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp

 * From this, it's evident that our CPU (Snapdragon 765G)
   supports all the features of ARMv8.2-DotProd [1].
   Moreover AOSP sets this arch variant in their generic
   cortex-a55 ART target as well [2]. This should unlock
   some optimizations in different code paths.

[1]: https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
[2]: https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23

Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-07-24 10:11:00 +03:00
Martin Liu
82a7028f8d sm7250-common: set readahead_size_kb=128 to vendor, product , system_ext, system and userdata
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-07-23 18:27:53 +03:00
mikairyuu
7ec4b192a6 sm7250-common: revert all Vulkan 2022-07-23 18:27:53 +03:00
naveenjohnsonv
cae07f6dd3 sm7250-common: overlay: add config and nodes for Smart charging 2022-07-23 18:27:51 +03:00
xSylla
ef1eb99e5c sm7250-common: rootdir: provide fstab.qcom
* Move from fstab.default to fstab.qcom for better compatibility
* Xiaomi hardcode androidboot.fstab_suffix=default in bootloader so let's force load qcom
* Also remove fstab.emmc and recovery.fstab as they're not used
* Inline fstab with sm8250
* Move qcom recovery init script to Android.bp
2022-07-23 18:25:02 +03:00
mikairyuu
35caf38ca0 sm7250-common: manifest: bump vendor.qti.hardware.radio.lpa to 1.2 2022-07-23 18:20:36 +03:00
mikairyuu
03afbcc706 sm7250-common: tweak wcnss config a bit 2022-07-23 18:20:29 +03:00
Alexander Koskovich
082c79a151 sm7250-common: props: Disable QCOM system daemon
* For factory use only and has real performance costs.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Change-Id: I2d25c28c2ba146fa4464cb49f02ead6a6d787b48
2022-07-17 11:54:56 +03:00
mikairyuu
0e1341faeb sm7250-common: clean parts remains 2022-07-17 11:20:02 +03:00
aswin7469
f11ba4a817 sm7250-common: Enable all codec2 components with their normal ranks
* remove OMX components also while at it

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2022-07-17 10:46:38 +03:00
mikairyuu
efe8bad79f sm7250-common: props: add ART props from redbull 2022-07-17 10:40:27 +03:00
mikairyuu
0d121ce7b6 sm7250-common: props: set LMKD ram prop 2022-07-16 19:52:23 +03:00
Albert I
e4e88dd0a3 sm7250-common: Import QTI Codec2 HAL
* Enable Codec2 input surface
* Move QTI Codec2 media_codecs to where they actually belong
* Provides hardware-accelerated Codec2 decoding for most codecs

Signed-off-by: Albert I <kras@raphielgang.org>
2022-07-16 19:48:56 +03:00
mikairyuu
88b6c0ec4c sm7250-common: props: add media props 2022-07-15 15:10:17 +03:00
mikairyuu
b509a4a749 sm7250-common: rootdir: sync memlat values with redbull 2022-07-15 15:01:25 +03:00
Jabiyeff
3559a4be45 sm7250-common: prop: Force disable iorapd
* Its eating more RAM and slow down device
* Thanks for CAFEBABE find this
* Being removed for A13
2022-07-11 10:42:36 +03:00
mikairyuu
d390732e14 sm7250-common: sync some properties with stock 2022-07-10 17:27:50 +03:00
mikairyuu
576212d4ca sm7250-common: nuke dt2w node 2022-07-09 19:34:28 +10:00
mikairyuu
258b117bf3 sm7250-common: rootdir: update to LA.UM.9.12.1.r1-01900-SMxx50.QSSI12.0
*also nuke cpuset from post_boot since we do that in init.qcom.power.rc and kang cpusets from redfin
2022-07-09 19:34:28 +10:00
mikairyuu
2be1c7f5f6 sm7250-common: Kang netmgrd and rmnet props from redbull 2022-07-09 19:34:28 +10:00
mikairyuu
b8dbd2e1e8 sm7250-common: Bump FCM com.qualcomm.qti.uceservice to 2.3 2022-06-29 18:06:34 +10:00
mikairyuu
fad1fdd33a Revert "sm7250-common: Nuke FM radio"
Turns out people still use it
2022-06-24 00:33:24 +10:00
Alexander Koskovich
b70f5f45af sm7250-common: Enable LLVM integrated assembler
* Disabled by default even with LLVM=1, but this is
   another GCC dependency we can remove. Google has
   been doing this for a while now.

   https://android.googlesource.com/kernel/msm/+/b009f0a1a

Change-Id: I1ca23607682299182da0a6e14594ba2e2de00a4a
2022-06-22 12:12:30 +10:00
etancohen
ae02241107 sm7250-common: Declare WiFi Aware support to WiFi HAL
* The Wi-Fi Aware feature added in Android 8.0 enables
   supporting devices to discover, connect, and range
   (added in Android 9) to one another directly using
   the Wi-Fi Aware protocol without internet or cellular
   network access.

 * This feature, built upon the Wi-Fi Alliance (WFA) Wi-Fi
   Aware specification (versions 2.0 and 3.0), allows easy
   sharing of high-throughput data among trusted devices
   and apps that are otherwise off-network.

   https://source.android.com/devices/tech/connect/wifi-aware

Change-Id: I18ff20e7466b8e8fd598381b730fb7db391e9ad4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-20 18:53:41 +10:00
mikairyuu
acca122455 sm7250-common: sepolicy: resolve some denials 2022-06-20 18:53:30 +10:00
KakatkarAkshay
8e014c476a sm7250-common: Update blobs from LA.UM.9.12.r1-14200.02-SMxx50.QSSI12.0
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2022-06-20 15:13:31 +10:00
Subbaraman Narayanamurthy
ccaf40fbc3 sm7250-common: Add QTI health implementation
Add QTI health implementation so that it waits for battery power
supply for a max timeout of 5 seconds. This is to ensure by the
time health HAL service starts, battery power supply device is
available. Without this, health HAL couldn't find battery power
supply sometimes because of the time taken for battery charger
driver to probe on platforms where it can happen only after the
remote subsytem is bought out of reset.
2022-06-20 15:01:41 +10:00
mikairyuu
43106bb971 sm7250-common: props: sync display prop with redbull 2022-06-17 22:32:09 +10:00
mikairyuu
dfb5a8e37f sm7250-common: remove non-existent los overlay folder 2022-06-17 22:27:09 +10:00
mikairyuu
b9118ce1b2 sm7250-common: Nuke FM radio 2022-06-17 18:49:41 +10:00
mikairyuu
7fcd20e52b sm7250-common: props: unset latch_unsignaled
Google thinks it's a bad prop for pixels, so it's a bad prop for us
2022-06-17 18:49:41 +10:00
Ady Abraham
7fc7d91529 sm7250-common: use phase offsets as duration.
adopt the new way of specifying phase offsets to SurfaceFlinger.
More info in ag/9856326

Bug: 145561086
Bug: 141329414
Test: jank tests
Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest
Change-Id: Ie50eb69009ac54345d0174f5429bc402573ec328
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
4296a8c344 sm7250-common: audio: Inline earpiece cfg with CAF 2022-06-17 18:49:41 +10:00
mikairyuu
65dade4d28 sm7250-common: props: Use dex2oat64
Might be useless, but it's set in redbull so better safe than sorry
2022-06-17 18:49:41 +10:00
mikairyuu
dd25b98a11 sm7250-common: sepolicy: Properly address multiple denials 2022-06-17 18:49:41 +10:00
iusmac
1ea059b2ea sm7250-common: sepolicy: Adress IORap usap_pool denial
W FinalizerDaemon: type=1400 audit(0.0:532): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:radio:s0 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0

Signed-off-by: iusmac <iusico.maxim@libero.it>
2022-06-17 18:49:41 +10:00
Adithya R
bb99f9e2a6 sm7250-common: Disable unspecialized app process pool
* doesnt work properly with zygote native fork loop:

11-16 13:12:39.971  2350  2350 E USAP    : Attempt to invoke virtual method 'int com.android.internal.os.ZygoteCommandBuffer.getCount()' on a null object reference
11-16 13:12:39.973  1952  2099 E ZygoteProcess: IO Exception while communicating with USAP pool - Connection reset by peer

Change-Id: I7dc09be8f047c29400c1df7874f5a0e1dae81723
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
b9ded2d959 sm7250-common: Import anti-logspam props 2022-06-17 18:49:41 +10:00
Danny Lin
c089bd7993 sm7250-common: Switch to Vulkan UI renderer
We tried doing this on Android 11 and later reverted it due to fd leaks
during prolonged video calls. However, the issue has been fixed on
Android 12, so let's enable it again for performance.

Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Change-Id: I1cd2ca6931aad60f9c48d40aa0212b69c68edef8
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
aa98dfe61c sm7250-common: Import kernel config 2022-06-17 18:49:41 +10:00
mikairyuu
0d4e6f43f7 sm7250-common: Fix wcnss denial 2022-06-17 18:49:41 +10:00
Aayush Gupta
17a8740165 sm7250-common: sepolicy: Allow hal_health_default required permissions
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:807): avc: denied { read } for name="type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:808): avc: denied { open } for path="/sys/devices/platform/1101b000.i2c8/i2c-8/8-001d/power_supply/parallel/type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:809): avc: denied { getattr } for path="/sys/devices/platform/1101b000.i2c8/i2c-8/8-001d/power_supply/parallel/type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I697f92611a9c30b34872c792beb1c24c298bb0b1
Signed-off-by: SparXFusion <s2234nadar@gmail.com>
Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
8e6c6a2f49 sm7250-common: Remove WFD jar 2022-06-17 18:49:41 +10:00
mikairyuu
9cd3d50e98 sm7250-common: Further decrease doze brightness
You do not need that bright of a screen most of the time
2022-06-17 18:49:41 +10:00