183 Commits

Author SHA1 Message Date
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
Sunil Ravi
fbfdd34544
sm6250-common: wifi: Disable TDLS offchannel.
TDLS off-channel feature is needed only for
certification. Disable the feature in production
builds.

Bug: 161320896
Test: Basic wifi sanity test.
Change-Id: I6d7a3e6bf58402c3c398bb8570cdc5ab1f7ca05d
2021-09-09 18:46:33 +02:00
Yaroslav Furman
6b34f7820a
sm6250-common: wifi: Disable logging
Change-Id: Ib9d2e325dc64d068a08412f12c792ec0e5a0c1be
2021-09-09 18:46:33 +02:00
LuK1337
43facd7f9c
sm6250-common: wifi: Enable DFS channel scanning in P2P search
- Fixes P2P when connected to 5GHz access point.

Change-Id: Ie94aa06e9b6be9345688a1e10caa9a62b180eb30
2021-09-09 18:46:33 +02:00
Alex Naidis
2ee0ca84b8
sm6250-common: 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-09-09 18:46:32 +02:00
Ramii Ahmed
1db4accfb5
sm6250-common: wifi: Enable Channel Bonding for 2.4GHz
Change-Id: Ic7922dbf6f1d64f90290b91d71c15c8acf30b0b6
2021-09-09 18:46:32 +02:00
Ramii Ahmed
43646c5316
sm6250-common: wifi: Enable SAE support
Change-Id: I33c516f413befd82ef7c78da38b441297db987d0
2021-09-09 18:46:32 +02:00
Jimmy Chen
18066f4ebc
sm6250-common: wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: Icea6361942873b5177c5fa59f9628c3b383b4509
2021-09-09 18:46:32 +02:00
Alexander Winkowski
daf99d589e
sm6250-common: Import WiFi configs
* From curtana-user 11 RKQ1.200826.002 V12.0.5.0.RJWINXM release-keys

Change-Id: I8d6a32645274c3c17db08d2e20f8f4083233e95b
2021-09-09 18:46:31 +02:00
Sebastiano Barezzi
bad4e02fbf
sm6250-common: Build Wi-Fi stack
Change-Id: I2e99bb95cbcdb2fdb652e20bb1e9e55b53cab2eb
2021-09-09 18:46:31 +02:00
Alexander Winkowski
bd6d8f6542
sm6250-common: Import excluded-input-devices.xml
* From curtana-user 11 RKQ1.200826.002 V12.0.5.0.RJWINXM release-keys

Change-Id: Iacecd13232e064e95e6bb3470763d12d10f4a0a3
2021-09-09 18:46:31 +02:00
Bharat Pawar
6095f69aaf
sm6250-common: Enable LED based vibrator
Enable LED based vibrator for talos, moorea and
atoll targets.

Change-Id: I079eefaefff77fe19304acc8749773febf91a7fc
2021-09-09 18:46:31 +02:00
Sebastiano Barezzi
cf73e010cc
sm6250-common: Be sure to build vndservicemanager
* We need it for our blobs

Change-Id: Ib757b97ee2c7d43fe606225366d729854ab987fc
2021-09-09 18:46:30 +02:00
Sebastiano Barezzi
252b9680bf
sm6250-common: Use QTI USB init configs from USB HAL repo
Change-Id: Ic9dc848773e996c60de0e9f273a7e9eaec178b3b
2021-09-09 18:46:30 +02:00
Volodymyr Zhdanov
068695c76f
sm6250-common: Build USB HAL from source
Change-Id: Ia6b43a0af36680164d7807e6deb67da408784a6b
2021-09-09 18:46:30 +02:00
Sebastiano Barezzi
4eeb2c749f
sm6250-common: Build default Trust HIDL
Change-Id: I35fa81259290f7f3adfa7f0db3d03203fdf17c38
2021-09-09 18:46:30 +02:00
Alexander Winkowski
cefd104891
sm6250-common: thermal: Rebrand to Xiaomi SM6250
Change-Id: Iafa72da14648a2652df9b64a02dd6e5b9fa8bd9b
2021-09-09 18:46:29 +02:00
Nick C
46df85c08a
sm6250-common: Changes for Pixel thermal HAL
Change-Id: Id5e4ec3e15f047a6ffd84af34dd9943fa70f7554
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2021-09-09 18:46:29 +02:00
Alexander Winkowski
c03d9330bc
sm6250-common: Import Pixel thermal HAL
* From hardware/google/pixel at 728fb99bbb910be05711421310efa6827aaaa4fa.

Change-Id: I763b4dbef65084cfee337065b2c5ab465f69bca8
2021-09-09 18:46:29 +02:00
Demon000
ea179f21b0
sm6250-common: Build telephony packages
Change-Id: I5fafc22fc696b04abc2f79100306f1625ac03fbc
2021-09-09 18:46:29 +02:00
Volodymyr Zhdanov
18d45b2c40
sm6250-common: Build servicetracker interfaces from source
Change-Id: I1fcd5f6dc3c50fe12d50431b005ca9b7d68e058b
2021-09-09 18:46:28 +02:00
Volodymyr Zhdanov
5d9f71d45f
sm6250-common: Build sensors HAL from source
Change-Id: I6e90d8c80458de8a950818226babc6e8677b0ffb
2021-09-09 18:46:28 +02:00
Sebastiano Barezzi
a5e8e1f9f2
sm6250-common: Build RIL libs
Change-Id: I449475abffebdf837e5645e77b571e0efd9988a1
2021-09-09 18:46:28 +02:00
Volodymyr Zhdanov
ff31615379
sm6250-common: Build RenderScript HAL from source
Change-Id: I3c2451d6d3ead4d4ef364523c0617bf1ce5af33f
2021-09-09 18:46:28 +02:00
Sultanxda
0e9e5aa9d8
sm6250-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
We're not using perfd so this is useless.

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Change-Id: I3b436f3f747c6955335513a133da81d27a6fbf60
2021-09-09 18:46:27 +02:00
Sebastiano Barezzi
499843e45e
sm6250-common: Build QTI Framework detect libs
Change-Id: Ic4db96f8bd5a19f4805bd9c40544ed51d0352c61
2021-09-09 18:46:27 +02:00
Sebastiano Barezzi
3487cc79d3
sm6250-common: libqti-perfd-client: Move to C
* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
2021-09-09 18:46:27 +02:00
Chenyang Zhong
314efa5a1f
sm6250-common: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
2021-09-09 18:46:27 +02:00
Bruno Martins
05d84b664f
sm6250-common: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
2021-09-09 18:46:26 +02:00
Lucchetto
ce994be274
sm6250-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2021-09-09 18:46:26 +02:00
Bruno Martins
82f432048b
sm6250-common: Drop I/O prefetcher
This depends on the already removed QTI perf stack.

Change-Id: I06b9a57f868e77bbcbb77c3970aec723404689f4
2021-09-09 18:46:26 +02:00
Wei Wang
bf49e93908
sm6250-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-09-09 18:46:26 +02:00
Bruno Martins
0e4b40db0a
sm6250-common: power: Scan input devices for eligible DT2W node
It is no longer a surprise for anyone to see Xiaomi shipping the same
device with different displays and different displays usually mean
different touchscreen drivers.

The current double tap handling in the power HAL only takes into
account one specific node, meant to be set in the device tree.
However, if the touchscreen was registered as a different input device
it would cause the feature to be broken. Address the issue by iterating
through the input devices in order to find one supported touchscreen
input to be used.

Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
2021-09-09 18:46:25 +02:00
Alexander Winkowski
b0d272f935
sm6250-common: powerhint: Avoid boosting to max freq
The maximum frequency isn't effective from power consumption terms on
both clusters [1]. Replace maximum frequencies with lower ones to save some power.

[1] https://github.com/kdrag0n/freqbench/tree/96d72eac/results/sm7125/main

Change-Id: I6336bfce0dae8f578704c0bd9644c2829389762f
2021-09-09 18:46:25 +02:00
Alexander Winkowski
38ab3fe971
sm6250-common: powerhint: Lower schedtune boost
Current value seems too aggressive. Reduce it by half.

Change-Id: I15104852ae49a4beb6e51d0d72bb61ea1af2c462
2021-09-09 18:46:25 +02:00
Alexander Winkowski
1fcfac2e39
sm6250-common: powerhint: Adapt for atoll
Change-Id: If9c6a7a93044ecfd535c1942f24447c019443edd
2021-09-09 18:46:25 +02:00
Alexander Winkowski
03c4e952a4
sm6250-common: powerhint: Remove EnergyAware node
* Google removed this node in redbull.

Change-Id: Iaba137fdb02dddfad7815b7cb3a0701962a06832
2021-09-09 18:46:25 +02:00
Alexander Winkowski
899c6d2994
sm6250-common: powerhint: Remove unused parts
Change-Id: I1448516636befbb7080067d3a2dbfc12874c3d6a
2021-09-09 18:46:24 +02:00
Jesse Chan
567b683d8d
sm6250-common: powerhint: Remove Google-specific camera hints
Change-Id: I999e9d4f342f2202a87e92a7289c1dae48c565d0
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2021-09-09 18:46:24 +02:00
Alexander Winkowski
0e84b1766f
sm6250-common: powerhint: Don't restrict CPU idle levels
The difference in wakeup latencies isn't so significant, let CPU cores enter
deeper idle states to save some power.

Change-Id: I9b24adc356bf35bbdc0bda6e0eee982b4daf1350
2021-09-09 18:46:24 +02:00
Alexander Winkowski
a41b14b1bd
sm6250-common: Import powerhint.json
* From sunfish-user 11 RQ3A.210705.001 7380771 release-keys

Change-Id: I09399706d007a0e3de89945bd9fe269bd7fa78e3
2021-09-09 18:46:24 +02:00
Alexander Winkowski
ab8029bdc2
sm6250-common: Build Xiaomi power AIDL HAL
Change-Id: I0e10f0b36598b8cbf25ee2dc08b8a4eced95c2ed
2021-09-09 18:46:23 +02:00
Sebastiano Barezzi
ee63dc6ded
sm6250-common: Copy AOSP permissions
Change-Id: Ifdacc41cd114e451fe2c98abce9be8f640a961a4
2021-09-09 18:46:23 +02:00
Sebastiano Barezzi
b992036dac
sm6250-common: Build OMX stack
Change-Id: Ib4ac3f9989e9e8c37d9a707cef3e2f5652843122
2021-09-09 18:46:23 +02:00
Albert I
d46af7f230
sm6250-common: Enable Codec2 input surface
* may improve performance with Codec2 decoding

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I222b1651daa0cfe51eb2d595897d2289f00dcf8c
2021-09-09 18:46:23 +02:00