Martijn Coenen
6580fdc5be
sdm660-common: Disable dm-verity hash prefetching.
...
Prefetching appears to have a slightly negative effect on boot time, and
actually makes boot time much worse when the available dm-bufio cache
shrinks. Since we anticipate the dm-bufio cache will shrink (because of
an increasing number of APEX dm-verity targets), disable prefetching
completely.
Boot time w/o this change: 12.085
Boot time with this change: 11.958
Boot time w/o this change with 128kB dm-bufio cache: 22.82
Boot time with this change with 128kB dm-bufio cache: 12.007
Test: atest google/perf/boottime/boottime-test
Bug: 136247322
Change-Id: I12e342c5692fa89855d9c217f2e94287ff5642a6
2020-12-30 22:06:56 +06:00
Sami Tolvanen
841ea5390b
sdm660-common: verity: call verity_update_state
...
Needed to set up partition.%s.verified properties.
Bug: 29277442
Change-Id: I295668c454e7e16018e1e4c3bafce5e317616069
2020-12-30 22:06:56 +06:00
pix106
4396258ea5
sdm660-common: add /misc to fstab_A.qcom
...
Fixes "failed to find /misc partition" when trying to reboot to recovery on lavender
2020-12-30 22:06:56 +06:00
Sap1k
3f8347eb45
sdm660-common: Temporary ignore Neverallows
...
Change-Id: Ie17c06f031d4e474fb7463eb3a6f37c5d4e752c5
2020-12-30 22:06:56 +06:00
OdSazib
97ba5db521
sdm660-common: Enable RRO overlays for lineage-sdk and Snap
2020-12-30 22:06:56 +06:00
Danny Baumann
1c4a536afa
sdm660-common: overlay-lineage: Enable call recording
...
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2020-12-30 22:06:56 +06:00
Nick
e20c7de20e
sdm660-common: Drop telephony injection for now
...
* Recent telephony changes has dropped this
Dropping injection fixes RIL for now
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
OdSazib
e44cb6d696
sdm660-common: Refactor apex
...
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I8373415681ebf71732657cf86067be5cc4c14625
2020-12-30 22:06:56 +06:00
erfanoabdi
a6f2b3478b
sdm660-common: Refactor BoardConfigQcom to ProductConfigQcom
...
* Required if rom switched to ProductConfigQcom to build hals
Change-Id: Iddbc6ae3e21cebab3f55b4907abc08527523b81a
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
OdSazib
635c08ae00
sdm660-common: Awaken-ify
...
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
OdSazib
f2fa84055e
sdm660-common: sepolicy: Address more denials
2020-12-30 22:06:56 +06:00
Danny Trunk
2e38a35b69
sdm660-common: bluetooth: Use default value for HID profile
...
Do not explicitly set HID profile to false for SDM660 SoC based Xiaomi devices
Change-Id: I38dc9b68cad05624a6a22051af2079cfd4a9e698
2020-12-30 22:06:56 +06:00
Ryan Mitchell
1e203fcfbe
sdm660-common: Use component-override to configure Bluetooth
...
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.
This change uses component-override to enable the service by default.
Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.
Bug: 135048762
Test: adb shell pm query-services \
com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
adb shell pm query-services \
com.android.bluetooth/.hid.HidDeviceService
adb shell pm query-services \
com.android.bluetooth/.sap.SapService
Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2020-12-30 22:06:56 +06:00
OdSazib
256c2fbfed
Revert "sdm660-common: Switch to QTI bt stack and enable a2dp offload"
...
This reverts commit a85c69a8b5
.
2020-12-30 22:04:27 +06:00
OdSazib
f6cb7bb46a
sdm660-common: Nuke lineage livedisplay
...
* Better version is already exist in device settings
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
d40220f154
sdm660-common: Enable block-based 2GB zRAM for EAS
...
* Guard the post boot script for HMP only
Partially reverts commit fd809eba57
.
Signed-off-by: OdSazib <odsazib@gmail.com>.
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
729fdc8f6c
sdm660-common: Update perfd from taimen RP1A.201005.004
...
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
a7fd6033cc
sdm660-common: Add powerhint for sdm660 and sdm636
...
* Add EAS_POWERHINT_VARIANT := sdm636 for whyred in device.mk
Co-authored-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I3591038a29326b15ce00de0051208219d9f3830d
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
f8945482b8
sdm660-common: Remove TARGET_USES_INTERACTION_BOOST flag
...
* Doesn't exist in power-libperfmgr
Change-Id: Ie4d60caf8b69757ef1dea109a5c146d6953faa74
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
9e9d75e6cd
sdm660-common: rootdir: Add proper permissions for dt2w nodes
...
* Fixes DT2W with power-libperfmgr
Change-Id: Ie5a66319213c6f8f2f9258deafa0229864acca66
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
653193fee0
sdm660-common: rootdir: Set permissions for nodes used by power HAL
...
* Reference:
LineageOS/android_device_essential_mata@958fc78
Change-Id: I35ef4b2fcd83efaf10931f670801c6fc32339ea1
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
06dfda6946
sdm660-common: Add sepolicy rules for power-libperfmgr
...
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
e647430c7f
sdm660-common: Enable power-libperfmgr
...
Change-Id: Ia5f8fb4a2afc7a453eb09d2092a7872fd8442bc9
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
2a18634782
sdm660-common: power-libperfmgr: Add back powerstats
...
Change-Id: I4343db7974eee74b6987e86e101cdfe6daff21a7
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
207ce8c7fd
sdm660-common: power-libperfmgr: Remove ATRACE instances
...
Change-Id: I50eaf5fd6c3763ab005ec965c3dfa173808313e3
2020-12-22 20:57:05 +06:00
LuK1337
dd610eb720
sdm660-common: power-libperfmgr: Follow symlinks when writing to dt2w toggle path
...
* Some devices tend to symlink touchpanel related toggles
to common path due to having to deal with different panels.
Change-Id: I429e4c5acfbcd3ff26a019f919fbe880692160bd
2020-12-22 20:57:04 +06:00
Steve Kondik
1bb29d8296
sdm660-common: power-libperfmgr: Add support for tap-to-wake feature control
...
Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
Change-Id: Ideb02c659d64cdde4ee2f46c2631f7b42d003b05
2020-12-22 20:57:04 +06:00
Subhajeet Muhuri
b5e7add355
sdm660-common: power-libperfmgr: Remove dumpstate support
...
Change-Id: I28416d1b09c1157119ea3ac0de3d015b71896c02
2020-12-22 20:57:04 +06:00
Subhajeet Muhuri
b44a490cf4
sdm660-common: power-libperfmgr: completely remove camera hints handling
...
Change-Id: I1749eb76b0a3aa4afd68fc532b98f1022c4e773a
2020-12-22 20:57:04 +06:00
Demon Singur
e97910bdff
sdm660-common: power-libperfmgr: remove VR hints handling
...
Change-Id: I4da9b175c3df713f5befd9364ff75b5c1b41a48d
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-22 20:57:04 +06:00
Jesse Chan
94b25521ed
sdm660-common: power-libperfmgr: remove Google-specific camera and audio hints
...
Change-Id: I65285ca8c7248bd1e55d3800862e96c00f00effd
2020-12-22 20:57:04 +06:00
Jesse Chan
fca3c97945
sdm660-common: power-libperfmgr: remove Google-specific display LPM control
...
Change-Id: If58f38b99bf6fbd73f6b6ab2144293c63e18b600
Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-22 20:57:04 +06:00
Jesse Chan
1b170e92f1
sdm660-common: power-libperfmgr: simply wait if idle state node is not present
...
Change-Id: I93dd97e5437761d2d969f93a5af0cae864fd0a65
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-12-22 20:57:04 +06:00
Subhajeet Muhuri
2d3b5e315a
sdm660-common: power-libperfmgr: Adapt and rebrand for xiaomi_sdm660
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-22 20:57:04 +06:00
Subhajeet Muhuri
d1ab8cd588
sdm660-common: Import Pixel libperfmgr Power HAL
...
hardware/google/pixel/power-libperfmgr from android11-release
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-22 20:57:04 +06:00
joshuous
fd869a1e7f
sdm660-common: rootdir: performance: Update power tweaks for EAS
...
Change-Id: I4133201f0735777a86f3bd59b007774cd7552304
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
OdSazib
928c7ac4f5
sdm660-common: Remove qti IOP stack
...
* Useless in EAS
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
OdSazib
8ec32edb26
sdm660-common: Update libqti-perfd blob from Taimen QQ3A.200705.002
...
* Required for EAS
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
Demon Singur
d16263c5aa
sdm660-common: remove qti perf stack
...
Change-Id: I4ddac4cd7a9300a0f57c11c805e14d398b446213
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
OdSazib
9492d1fa58
sdm660-common: Use stock poweroff charging animation
...
* It's best animation out there with battery level
This reverts commit 9271fec5a4
.
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-21 09:19:25 +06:00
Michael Bestas
40f4b8134b
sdm660-common: Do not build textclassifier
...
* Target no longer exists
Change-Id: I2079d7dbbeb59bbe9cd925a56f6bcc84c8a38d7f
2020-12-21 09:19:25 +06:00
Michael Bestas
c3100491c3
sdm660-common: Remove deprecated liboverlay target
...
* This was removed from display HAL in 2015
Change-Id: I25f675260e8ab166001dd2e2601dc13021bcc15a
2020-12-21 09:19:25 +06:00
Michael Bestas
7f63174bbe
sdm660-common: Switch to patchelf from tools-lineage
...
Change-Id: If1a7328804fb9bc39ccec70690f1090f2d0509b3
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-21 09:19:25 +06:00
Wang Han
01e20206e2
sdm660-common: Remove custom vsync offsets
...
* The values are kanged from hammerhead and may introduce
latency as it is not selected for any of our panels
and stock does not set these values in the first place.
Change-Id: Iee854ea77d1e8216c8f01aee2f71a178ffcfaf5c
2020-12-21 09:19:25 +06:00
Han Wang
a32adb1d10
Revert "sdm660: Enable GL comp backpressure"
...
* This is no-op when debug.sf.disable_backpressure=1
is set. Plus, it lags when it's set alone.
Just follow CAF here and remove this ricing.
This reverts commit ede4f5c879
.
Change-Id: I74c5e4ba830ef23448e4f16822687d7a22746a3b
2020-12-21 09:19:25 +06:00
Danny Lin
c8bce5944f
sdm660-common: Use EXPENSIVE_RENDERING power hint for blurs
...
We need to boost the GPU for smooth high-radius blurs as blurring is an
expensive rendering job.
Change-Id: Ia3968313601d2b04ce50c01ee61dc9944ee26187
2020-12-21 09:19:25 +06:00
Danny Lin
e36c0630a8
sdm660-common: Enable compositor background blurring
...
This allows us to create a "glass blur" look throughout the system for
improved visuals.
Change-Id: I77bb13a5711b05b43acf25e12abd9a2f5cd2502d
2020-12-21 09:19:25 +06:00
Han Wang
bb3cb75d39
Revert "Force enable mobile network settings v2"
...
* This prop is not honored anymore on 11.
This reverts commit c4d7f31a89
.
2020-12-21 09:19:25 +06:00
Luca Stefani
7c910f5de2
sdm660-common: Set linker to LLD
...
Change-Id: Ia165daa55ff707725b0619af12bf3a2e6e79c981
2020-12-21 09:19:25 +06:00
OdSazib
d49eada337
sdm660-common: Update exfat driver
...
* New kernel replaced sdfat with exfat
signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-21 09:19:25 +06:00