227 Commits

Author SHA1 Message Date
Alexander Winkowski
56f8b9824c
sm6250-common: libinit: Override odm_dlkm and vendor_dlkm props
Change-Id: If601ae82e6bcaeec756f868575b2ae465f21156c
2022-05-26 13:14:29 +00:00
Alexander Winkowski
00ff2dbb1a
sm6250-common: Update blobs from V12.5.5.0.RJWINXM
Change-Id: Id7856c2376aaa7090625a8c93f641c339441cb50
2022-05-11 19:40:19 +00:00
Sebastiano Barezzi
a0b832caff
sm6250-common: libinit: Get build description from build fingerprint
Change-Id: I3661981c7ba78670dcacd814598284274cb2eb9d
2022-05-11 19:37:47 +00:00
Alexander Winkowski
e5f929281e
sm6250-common: rootdir: Fix typos
Change-Id: I5f4f1a6dd8c4ac4d7a2096d7416846eb66ff9fca
2022-05-11 19:36:35 +00:00
Randall Huang
55f6b97ce5
sm6250-common: 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-05-11 19:35:25 +00:00
Alexander Winkowski
a99a1b2aff
Revert "Revert "sm6250-common: rootdir: Enable s2idle""
This reverts commit 5b8f192e961961fac27cdc0eacf6103579ffcef6.

Fixed:
https://review.lineageos.org/q/Idbb2e825c489e174d5701e0c315b51a3149bfe49

Change-Id: I73b3eb3dc9bba90aa4579b31d5122e1cfce52491
2022-05-11 19:35:08 +00:00
Alexander Winkowski
d21e3ace1d
Revert "sm6250-common: Import QTI Codec2 HAL and switch to Codec2 by default"
This reverts commit c45471638ae1101cff57e7d8ad7070783771c87f.

* Breaks media playback when uptime is considerably high.

Change-Id: I81b137d832daa034036240adc9a30531eb703893
2022-05-11 18:09:53 +00:00
Sebastiano Barezzi
7103dabc1c
sm6250-common: Go away Megvii
* Nuke Megvii proprietary files and build stub ones from hardware/xiaomi

Change-Id: I53f8f0897b25517741a06c5962c02fe8fda61072
2022-05-11 17:59:38 +00:00
Alexander Winkowski
86e456daa2
sm6250-common: Re-enable fluence
Fluence was disabled in commit 7f4d5137 ("sm6250-common: Align audio properties with CAF") as
it affects audio quality. But without it speaker paths have microphone broken so re-enable it
until this will be figured out.

Change-Id: Ie5092eacff794359db94a9f8655df7c7901ac365
2022-04-07 19:49:16 +01:00
Alexander Winkowski
5b8f192e96
Revert "sm6250-common: rootdir: Enable s2idle"
This reverts commit b037c145f5ae958a7471edf95de5590f4a5f2575.

s2idle happens to cause RCU stalls. Disable it until a solution is found.

Change-Id: If0a6c817f415f6ddbdc202423492a7d2ebf1d0fb
2022-03-10 16:55:24 +00:00
Alexander Winkowski
befaea8f80
sm6250-common: Remove non-existent properties
grep hasn't found them neither in source code nor in blobs.

Change-Id: I4a4d2fc88815fc5f3b61ee3972534ed30f7ed131
2022-03-08 08:37:46 +00:00
Siddharth Kapoor
654f633113
sm6250-common: Turn on GPU protected contents.
BUG: 130028057
Test: ExoPlayer, Play Movies
Change-Id: I33acf9467227da08c3b98aca3bac69aca8db4b43
2022-03-08 08:18:54 +00:00
Midas Chien
c1e5bace18
sm6250-common: don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
2022-03-08 08:18:39 +00:00
Alexander Winkowski
7f4d513779
sm6250-common: Align audio properties with CAF
* From https://github.com/LineageOS/android_hardware_qcom_audio/blob/b7ba7613/configs/atoll/atoll.mk

* Keep changes introduced in previous commits

Change-Id: I2eed378247be51feb217c2867ec6904bacfdf492
2022-03-08 08:15:21 +00:00
LuK1337
01ca9ce4bd
sm6250-common: Build libssrec from source
Change-Id: Ib5b1d99a0b6980a76d4c83063c7a84a0c090b361
2022-03-08 08:08:26 +00:00
Alexander Winkowski
f3c0adaf0c
sm6250-common: Add missing Bluetooth prop
* Used for FM radio.

Change-Id: I0e74379c80b2a6ea854d5cd0aad3a833f8862de9
2021-12-30 17:25:06 +00:00
Alexander Winkowski
c72f1f81fd
sm6250-common: Update blobs from V12.5.1.0.RJWMIXM
Change-Id: I38a50bdefebe3074266f02e8fb3ab30043a72dc7
2021-12-27 11:54:36 +00:00
Alexander Winkowski
dd533c3221
sm6250-common: Drop unused sound FX libs
This has been identified by looking through audio_effects.xml

Change-Id: Ida68dd695c45e372a8d28d9e9283aa0d62053efc
2021-12-25 09:25:34 +00:00
Alexander Winkowski
85e03c705b
sm6250-common: Drop unused 64-bit audio stack
Change-Id: I0c2576805b372f22d60ecc625d595b7fdc6c5fdf
2021-12-25 09:25:28 +00:00
Sebastiano Barezzi
c55cf7744e
sm6250-common: Drop 64-bit ADSP modules
Change-Id: I5f0eb89aeb38270a9ffac01a5d8f9f33553eaa17
2021-12-25 09:25:23 +00:00
Alexander Winkowski
fedc87f892
sm6250-common: audio: Use stock audio_policy_volumes.xml
* Stock changes are actually needed here.

 * This reverts commit aff1d9eb0b07e044584118066e4ded34921f0a02 also reverting commit e74d1037860cf175a52826de9b92f13a965f5cd6.

Change-Id: Ib6a70ac78d3041ebb7a14406a945a6a24dcd8b0b
2021-11-26 02:52:11 +00:00
George Zacharia
349996d545
fixup! sm6250-common: Define partition rules
We need to account for overhead size
Currently set to 4MB as per docs[1]

[1] https://source.android.com/devices/tech/ota/dynamic_partitions/implement#board-configuration-changes

Change-Id: I4c5b696a07ec18b7d717aea0caba08b0dc646c0d
2021-11-24 15:02:00 +00:00
Kyle Lin
b037c145f5
sm6250-common: rootdir: Enable s2idle
Test: build and check the suspend_resume trace
Bug: 142553453
Change-Id: I176c0e1adbe3c6a90b9da90dd10ad664024bf164
2021-10-14 19:22:19 +02:00
Alexander Winkowski
aff1d9eb0b
sm6250-common: audio: Use audio_policy_volumes.xml from AOSP
Change-Id: I50fdea6316dedce109cd78ca63102073d4011681
2021-10-14 19:22:18 +02:00
Dobsgw
95081e601a
sm6250-common: audio: fixup audio io policy voip_rx flags
Flags for VOIP were mixed up as we move to CAF policy configuration. Amend the flags to get things working again.

Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Change-Id: I2a2b202e2a58db9a26f571c091b1fa0b8f2949f6
2021-10-07 21:30:01 +02:00
Alexander Winkowski
6291e7aa67
Revert "sm6250-common: audio: do not use direct flag for voip rx output"
* Causes crackling sound for notifications.

This reverts commit 198163984bb6e2f2301d85e35e627f43db95c832.

Change-Id: Ic0440713f1bd938cd97f127248227ec677c7dbe6
2021-10-07 21:29:58 +02:00
Sebastiano Barezzi
f7b5a79d5c
Revert "sm6250-common: Update camera provider service to 2.5."
* Reason for revert: camera HAL doesn't implement notifyDeviceStateChange.

This reverts commit 2ac59b869bed37bfaa480411ff98eed8991285f3.

Change-Id: I7919e0c0160a4108c9d066e914211cb4daa9c24b
2021-09-23 19:02:58 +02:00
Sebastiano Barezzi
75fface281
sm6250-common: Drop 32bit sensor stack
* Unused

Change-Id: I3d53d38190f8de097d3aee0384935b0bc0e6d65c
2021-09-23 18:42:58 +02:00
Alexander Winkowski
759befef55
sm6250-common: Update sensors service to 2.1
Change-Id: Ie417407c36929cf34ecbdd28feb1cab996fe1f30
2021-09-23 18:42:58 +02:00
Alexander Koskovich
2ac59b869b
sm6250-common: Update camera provider service to 2.5.
Change-Id: Id13db7bbd2d0ee1bd544e1670990c3caf46768ab
2021-09-23 18:42:58 +02:00
Sebastiano Barezzi
4b391001ab
sm6250-common: Remove 32bit camera libraries
* Unused

Change-Id: I62bb4c1042e15366c61399520984d30dd9421bb8
2021-09-23 18:42:58 +02:00
Alexander Winkowski
3f6eaf2696
sm6250-common: Drop prebuilt camera provider
Change-Id: Ibc9fcb5acfcbfa3432f0f0f7a9589a20217fa1ed
2021-09-23 18:42:58 +02:00
Alexander Koskovich
34dcc11300
sm6250-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
2021-09-23 18:42:57 +02:00
Alexander Koskovich
54830186e5
sm6250-common: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2021-09-23 18:42:57 +02:00
Alexander Winkowski
6a60791b24
sm6250-common: audio: Drop Xiaomi ACDB ID changes
Change-Id: I3cbd6f345d8800585885a41cd760cae71607f75a
2021-09-23 18:42:57 +02:00
Alexander Winkowski
4cdaecf58a
sm6250-common: audio: Correct maximum microphone count
* miatoll devices have 2 microphones only

Change-Id: Ib8a71f4b3a3ada7850d8089df5c87b0869ebb1e1
2021-09-23 18:42:57 +02:00
Eric Laurent
198163984b
sm6250-common: audio: do not use direct flag for voip rx output
Dedicated output profile for VoIP should not be a direct output as
it prevents from playing two audio tracks simultaneously which breaks
call signalling played on top of Rx call audio.

Bug: 64392515
Test: Fi call, Duo Calls
Change-Id: I4e62ba3be3da079ff32be9b92d5d5fa28e0f5e2b
[dereference23: Apply the change to audio_io_policy.conf as well]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2021-09-23 18:42:55 +02:00
Alexander Winkowski
a99d14b726
sm6250-common: Move LineageOS HALs to a separate compatibility matrix
Change-Id: If2f6d49cfc8609e15bc1ce5d725f54cdb91c5a4e
2021-09-09 18:46:36 +02:00
Mimi Wu
b744748f1d
sm6250-common: Modify sepolicy for toolbox to rm -rf /data/per_boot
type=1400 audit(1581489923.612:571): avc: denied { getattr } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:572): avc: denied { read } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:573): avc: denied { open } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:574): avc: denied { getattr } for comm="rm" path="/data/per_boot/ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.616:575): avc: denied { write } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:576): avc: denied { remove_name } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.619:577): avc: denied { unlink } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.656:578): avc: denied { rmdir } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I22706c63fb13ea2aae0cd9fe8b92edc578fd459e
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
2021-09-09 18:46:36 +02:00
Mimi Wu
316cdce3f5
sm6250-common: Add sepolicy for kernel to access /data/per_boot/zram_swap
type=1400 audit(0.0:4): avc: denied { read } for path="/data/per_boot/zram_swap" dev="dm-5" ino=29313 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I338040c9166ddd5eb2f06d7cba1aee85da988c53
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
2021-09-09 18:46:36 +02:00
Albert I
233e73dbc0
sm6250-common: sepolicy: Allow neural networks HAL to read ADSP properties
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3fa6f51b746703bab2faf3f5fd6334b221a8636c
2021-09-09 18:46:36 +02:00
Albert I
e42d1c571f
sm6250-common: sepolicy: Allow apps and camera HAL access to secure ADSP domain
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ibb1071299632ab53726638dbcc134d4bca59fc52
2021-09-09 18:46:35 +02:00
dianlujitao
92b6e36b71
sm6250-common: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing
 * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to
   same_process_hal_file like Pixels, but the partition is prebuilt thus
   we're unable to relabel it.
 * Copy the file to writable tmpfs, setup attributes and bind mount back
   to workaround the limitation.

[ghostrider-reborn]:
Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3

[kras edit:
 1. rename some contexts as per qva/kona
 2. extend to allow camera HAL and VPP service to access it as well]

[dereference23: Remove VPP policy because atoll doesn't use it]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
2021-09-09 18:46:35 +02:00
Alexander Winkowski
c653ce51be
sm6250-common: Pull SELinux policy from Xiaomi SM8250 tree
Change-Id: I83dce3c678f796034fd39947414c8067d338edf2
2021-09-09 18:46:35 +02:00
Alexander Winkowski
eef8a24f25
sm6250-common: Switch to fully prebuilt libdisplayconfig
* Fixes WiFi Display

Change-Id: Idd77de921651b33214c22676e4d9d5c250b2ef9c
2021-09-09 18:46:35 +02:00
Omkar Chandorkar
bd3229b85d
sm6250-common: Use prebuilt vendor libdisplayconfig.qti.so
There are several VMTs inside that library that are prone to change
on CAF merges.

So far, last LA.QSSI.11.0.r1-12300-qssi.0 merge already modified
ConfigInterface VMT in a way that's not backwards compatible thus
it'd be better if we provided a prebuilt library instead.

Change-Id: I25fe58e6721b8d0e67882f576cfaf288c9992fc9
2021-09-09 18:46:34 +02:00
Sebastiano Barezzi
ad4bcb28be
sm6250-common: Build WFD libs
Change-Id: I859cd3ff8e1729323f2c72df4feca55559262878
2021-09-09 18:46:34 +02:00
Sebastiano Barezzi
45be1c4d97
sm6250-common: Import WifiOverlay from CAF
* From LA.UM.9.1.r1-09100-SMxxx0.0

Change-Id: Icfd70a632425aec908b2189710ecf31ee21449cc
2021-09-09 18:46:34 +02:00
Arun Kumar Khandavalli
1b2ef8baa6
sm6250-common: wifi: Enable LPRX by default
LPRX was disabled previously on request because of some power issues.
Now that all the power issues is resolved enable the LPRX by default.

Change-Id: Ie3655bacfd06d47598b04e8c2c89233a000307ce
CRs-Fixed: 2459952
2021-09-09 18:46:34 +02:00
sheenam monga
e224a1ba6e
sm6250-common: wifi: Remove drop_bcn_on_chan_mismatch ini
Currently, with drop_bcn_on_chan_mismatch disable
default value of drop_bcn_on_chan_mismatch is overwritten
and abnormal rssi is observed for some beacons.
To avoid the issue remove drop_bcn_on_chan_mismatch
from ini, So that default value of drop_bcn_on_chan_mismatch
can be used.

Change-Id: I6e7ec9327a2e13d1fed73bec2fedf8b584989930
CRs-Fixed: 2588983
2021-09-09 18:46:33 +02:00