Commit graph

3761 commits

Author SHA1 Message Date
Ayishwarya Narasimhan
8d115e0b2b
sdm660-common: config.fs: Add mapping for imsdaemon
Change-Id: I62629d99e0ace3e5cfa0bdef925e919ddd2ebe12
2021-06-07 09:21:11 +06:00
shivatejapeddi
2ed31f0bc1
sdm660-common: Set BPF support level
This allows a device launched with Android O but now running
a 4.9-P+ kernel to declare itself as eBPF capable.

Fixes data usage on 4.9/4.14/4.19 kernels.

Change-Id: Ib44586f519ef0c5202ab841b8a1a8890e6ec74c7
2021-06-07 09:21:11 +06:00
Rajshekar Eashwarappa
6042373a5f
sdm660-common: Set swiotlb to default size
swiotlb size set to 64MB default value.

Change-Id: Ib256f5d2a1642ba2e635e632e7d1486aa2dd8f13
2021-06-07 09:21:11 +06:00
Chris Fries
b99317d79e
sdm660-common: Set printk.devkmsg=on on kernel cmdline to avoid ratelimit
init and friends are getting ratelimted on /dev/kmsg.  Let's keep
the logs by setting printk.devkmsg=on.

Bug: 62952768
Test: Check for init logs in kernel during boot
Change-Id: I103e3cc1d73880af1d9a0cdc4dae05223eb4c427
2021-06-07 09:21:11 +06:00
Subhajeet Muhuri
1da7c15388
sdm660-common: /sys/devices/soc -> /sys/devices/platform/soc
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-07 09:21:11 +06:00
Subhajeet Muhuri
913e29df35
sdm660-common: Set TARGET_KERNEL_VERSION to 4.19
* Needed by HALs

Change-Id: I62e73aa1a39597b54945eafed3dfaf1fc96536b6
2021-06-07 09:21:11 +06:00
Kyle Lin
7a0e578ef1
sdm660-common: power-libperfmgr: let power hal start early
Bug: 162791243
Bug: 72471476
Test: build and using emul temp/running burn8 to verify it
Change-Id: I5ca475be8b73b940e4858634595a7918ae92f6ef
(cherry picked from commit 35e110fe669a7d2996ce503d7e31204554f972e3)

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-06-07 09:21:11 +06:00
OdSazib
95081704f1
sdm660-common: power-libperfmgr: Adapt sdm660 powerhint to k4.19
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-06-07 09:21:11 +06:00
Edwin Moquete
40763b62dc
sdm660-common: Update thermal config & sensor names for 4.19 2021-06-07 09:21:10 +06:00
erfanoabdi
d9f012a6f4
sdm660-common: light: Adapt light HAL for k4.19 2021-06-07 09:21:10 +06:00
Edwin Moquete
1268269fab
sdm660-common: Update fstab for k4.14/k4.19
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-06-07 09:20:53 +06:00
Shashi Shekar Shankar
55380ea688
sdm660-common: Update post_boot for sdm660 k4.14/k4.19 upgrade
Post_boot changes for sdm660 k4.14/k4.19 upgrade.

Change-Id: Ib891f1ca606cb686d38bba5f7fe101d395d8b6c3
CRs-Fixed: 2611111

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-07 09:20:14 +06:00
Bharat Pawar
abda0a0e6a
sdm660-common: Initial bring up changes for k4.14/k4.19
Initial changes to enable:
  - USB config

Change-Id: I696c3622477c689bb31fb2d12183729ece59d54b
2021-06-07 09:19:50 +06:00
OdSazib
d1dff54c3f
sdm660-common: Fix smart-charging 2021-05-28 20:30:28 +06:00
OdSazib
213b55c528
sdm660-common: props: Simplify apex prop
This prop is enabled by default when we inherit https://github.com/OdSazib/device_xiaomi_sdm660-common/blob/11/sdm660.mk#L38
2021-05-18 05:04:04 +06:00
OdSazib
6f3b8beef8
sdm660-common: Drop incompatible soundtrigger hal for android 11
* Breaks voice match for Google Assistant
2021-05-18 05:04:04 +06:00
clarencelol
dd0af2ca06
sdm660-common: Update BT (aptX) from phoenix_sprout-11-RKQ1.201123.002
* Moved libaptX_encoder blobs to system_ext while at it
2021-05-18 05:04:04 +06:00
Omar Hamad
c455b70f97
sdm660-common: DeviceSettings: Nuke thermal settings
* Looks like there is too much thermal throttling even after selecting
   pefromance profile. Nuking it increases Geekbench score as well.
2021-05-18 05:04:04 +06:00
luk1337
fd31bb1a3c
sdm660-common: rootdir: Remove unsupported flags from fstab_A
* Fixes :
W [libfs_mgr]Warning: unknown flag: resize
W [libfs_mgr]Warning: unknown flag: crashcheck

Change-Id: I1ba5abb0850bed55ee4e1c496954272a1a7ccf14
2021-05-18 05:04:04 +06:00
Sunil Ravi
a299229253
sdm660-common: wifi: Disable TDLS offchannel
- TDLS off-channel feature is needed only for certification.
- Disable the feature in production builds.

Test: Basic wifi sanity test.
Change-Id: I4bef76edb8663835953e45274805c5e15dfea808
2021-05-18 05:04:04 +06:00
–Gareth Kitchen
7a54003bff
sdm660-common: gps: Localise NTP to improve GPS TTFF
Testing response times to time.android.com from around the globe reveals
in ms:-

Europe			 <30
Middle East		 <68
North America		<150
Johannesburg		 183
Buenos Aires		 220
Tokyo			 226
Sydney			 276
Hong Kong		 285
Brisbane		 295
Mumbai			 349
Beijing			4691
Shanghai		4906
Russia			 n/a

Whilst time.android.com is NOT used for GPS NTP, North American time servers
are, by specifying north-america.pool.ntp.org as default in the framework,
to align with pixel devices.  I am assuming similar response times to these
servers from around the world.

Great for North America and it appears Europe but it does not address the
global issue. Also, the pool.ntp.org project forbids both hardware and
software vendors from using these default zone names.
http://www.pool.ntp.org/en/vendors.html

It makes sense, therefore, to leverage the ntp.org's existing 'android' vendor
name to make the default ntp server for GPS purposes:
1.android.pool.ntp.org this will return a random but accurate NTP server in
close geopraphic proximity to the device.

Testing on my own build in the UK seems to improve hot and cold TTFF
considerably.

Change-Id: I144af45757efa35b32daf034eece6e046d2bde79
2021-05-18 05:04:04 +06:00
Omar Hamad
83706265c1
sdm660-common: props: Refactor all properties 2021-05-18 05:04:03 +06:00
Erfan Abdi
c90398c16f
sdm660-common: Don’t enforce RRO for all overlays
* Breaking /product/overlay
* Also this makes many platform specific overlays with current system API on vendor partition which breaks newer android version compatibilities (broken stuffs in gsis)

Change-Id: I45eb18b0754726fb4f779521a0245dfcb1259b17
2021-05-18 05:04:03 +06:00
OdSazib
996be98aad
sdm660-common: Use custom R hals for sdm660
* R hals and adapted for product config
 * If your rom uses boardconfig for hal and soc,
   place them to BoardConfig instead
2021-05-18 05:04:03 +06:00
OdSazib
4d2ff378d2
sdm660-common: gps: Remove duplicate build/copy rules 2021-05-18 05:04:03 +06:00
OdSazib
e9bec8a155
sdm660-common: rootdir: Clean up init stuffs 2021-05-18 05:04:03 +06:00
OdSazib
478a2b33b6
sdm660-common: sepolicy: Rework sepolicy (No more neverallow)
- Thanks to LineageOS and our sdm660 community

Change-Id: I54c7d76260041b7c383428449e149aa35d51de9b3c
2021-05-18 05:03:51 +06:00
OdSazib
53c3064ba1
sdm660-common: audio: Update audio configs and enable soundtrigger 2021-05-15 07:20:19 +06:00
OdSazib
5d50c6cf07
sdm660-common: Update some blobs from jasmine V11.0.23.0.QDIMIXM
- Dirac
 - DRM (Widevine)
 - Listen
2021-05-15 07:20:19 +06:00
dianlujitao
4cfd18a6ad
sdm660-common: Switch to Audio HAL v5
All devices use pre-R audio.bluetooth_qti.default.so and platina uses
pre-R audio hal, in which the new set_event_callback API is not
implemented and the audio service will crash due to mismatched struct.

Change-Id: Ia330ac05d84d3dfb3a639458d66a3dc29689e67c
2021-05-15 06:03:01 +06:00
Randall Huang
8a1ef1a3b9
sdm660-common: 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
2021-05-15 06:03:01 +06:00
Nick C
0d5cde00b2
sdm660-common: rootdir: zRAM tuning 2021-05-15 06:03:01 +06:00
Ivan Vecera
5d95e4db79
sdm660-common: rootdir: do not use absolute value for ZRAM size
Redmi Note 7 has variants with 3GB as well as for 4GB RAM.
So use 50% for ZRAM size instead of current 3GB for both.
Parameter 'max_comp_streams' is obsolete and should not be set.
Kernel currently uses always num of online CPUs.

Change-Id: Ib0157c7b4ba686a9597fd33d268dace4e0171da7
2021-05-15 06:03:01 +06:00
Avinash Nalluri
6ef4460f7f
sdm660-common: Add Device Info hal vendor.qti.hardware.radio.deviceinfo@1.0
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-05-15 06:03:01 +06:00
Martin
ba969f035b
sdm660-common: overlay: Add proper support for 5GHz hotspot 2021-05-15 06:03:01 +06:00
OdSazib
a4f0adc11d
sdm660-common: Remove duplicate wowlan_triggers config 2021-05-15 06:03:01 +06:00
sbwml
8a59a8ca83
sdm660-common: Update Time services blobs from LA.UM.9.2.r1-01800-SDMxx0.0 2021-05-15 06:03:01 +06:00
sbwml
b79e69464f
sdm660-common: Update WFD blobs from LA.UM.9.2.r1-01800-SDMxx0.0 2021-05-15 06:03:01 +06:00
Jabiyeff
1607e1fe49
sdm660-common: Import AdaptLaunch and some other perf
* From LA.UM.8.6.2.r1-08600-89xx.0

Test: Better app launching time

Signed-off-by: Jabiyeff <cebiyevanar@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-18 21:59:36 +06:00
dianlujitao
3f8f243eda
sdm660-common: Decommonize touch HAL node permissions
Change-Id: Ic8caabd4a5cf458dfc2c91971247168de28a27ce
2021-04-11 09:29:14 +06:00
dianlujitao
40e44120d9
sdm660-common: Chown light nodes earlier
The hal class is essentially triggered from the boot class, so it's
possible that the HAL starts before the permissions are set, and manual
intervention was added to deal with the issue. However, we can simply
move chown to an earlier stage to avoid playing with the workflow.

Change-Id: I189b247576151f76efaf26b2d266564dc7768fba
2021-04-11 09:29:14 +06:00
Jesse Chan
f39019a41c
sdm660-common: overlay: Set fast charging indicator threshold to 10.8W
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
clarencelol
e2ef86d463
sdm660-common: power-libperfmgr: Add AUDIO_LAUNCH to powerhint
* Eliminate logs spamming "Hint type not present in action: AUDIO_LAUNCH"

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
klozz
18da3fed81
sdm660-common: Configure dext2oat for pre-optimization
As per Android 11 Dalvik configurations

    * dalvik.vm.boot-dex2oat-cpu-set: CPUs running dex2oat threads during boot time
      Use both Silver and GOLD cluster for that
    * dalvik.vm.image-dex2oat-cpu-set to build bootimage use only GOLD cluster
    * dalvik.vm.dex2oat-cpu-set CPUs running dex2oat threads after boot time,this needs to have the same threads as the  boot image compilation

Signed-off-by: klozz <klozz@vivaldi.net>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
Harshit Jain
b34509982f
sdm660-common: Update dex2oat config 2021-04-10 14:29:00 +06:00
Adarsh-MR
04dd705288
sdm660-common: configs: wifi: Update hostapd configs path
* softap now expects hostapd configs in /data/vendor/wifi/hostapd
  during hotspot turn on, qsap_sdk copies these configs to
  /data/vendor/wifi/hostapd/

Change-Id: I632a29483cb7b2f5e8d768680afb911fa5f4f357
Signed-off-by: Adarsh-MR <adarshmr1998@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
OdSazib
ef00e5f20b
sdm660-common: DeviceSettings: Import in-app Dirac
- Improve code with reference and split gain category

This reverts commits
- 471da74
- de7135d
- f6c011d

All credit goes to Stylog, this is just revert commits with few improvement

Co-authored-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 02:24:09 +06:00
Sebastiano Barezzi
973fa8d111
sdm660-common: Fix some camera denials
Change-Id: I172349433946883aa1035e91ab3ab703a96e7912
2021-04-04 12:35:05 +06:00
OdSazib
2c04fe6bde
sdm660-common: Decommmonize cnss-daemon (WiFi) 1/2 2021-04-04 12:35:05 +06:00
StyloGey
69d63ec16d
sdm660-common: Update blobs from LA.UM.8.2.r1-07500-sdm660.0
Change-Id: Ib4a8ce5c3de0fd608b49b138138a027f57009aa3
2021-04-04 12:34:54 +06:00