Commit graph

3733 commits

Author SHA1 Message Date
OdSazib
6ef994bba9
sdm660-common: rootdir: Set permission to powerhint nodes for k4.19
- Needed for power-libperfmgr to work properly
- Adjust TA boost value from powerhint
2021-06-15 17:32:47 +06:00
OdSazib
bf4b6408b0
sdm660-common: power-libperfmgr: Update powerhint with available values
- Reduce launch duration to 4s
- Add missing nodes for available hints
2021-06-15 17:32:47 +06:00
Wilson Chan
2880603f27
sdm660-common: power-libperfmgr: Add Flipendo powerhint
- Add sepolicy for dex2oat powerhal props to vendor_power_prop

Test: boot and check powerhint parse logs
Test: enabled extreme battery saver and check scaling_max_freq

[clarencelol]: Adapt to sdm660 freq
2021-06-15 17:32:47 +06:00
Kyle Lin
46c13a45ee
sdm660-common: power-libperfmgr: Limit dex2oat thread and cpuset under thermal stress
NORMAL:			6 threads, cpu-set 0~7
LIGHT:			4 threads, cpu-set 0~5
MODERATE:		2 threads, cpu-set 0~3
SEVERE and above:	1 thread,  cpu-set 2~3

Test: boot, run CPU Throttling Test, and check logcat
Test: `getprop dalvik.vm.dex2oat-cpu-set` and
      `getprop dalvik.vm.dex2oat-threads` when "ThrottlingStatus: MODERATE"

ref:
334667e9a8

[clarencelol: SDM845 and SDM660 have the same cpusets]

Co-authored-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: clarencekuiek <clarencelol@icloud.com>
2021-06-15 17:32:47 +06:00
Kyle Lin
b5e77ddd6c
sdm660-common: power-libperfmgr: let perfmgr change dex2oat priorities
Because perfmgr is a vendor process, it cannot adjust system priority
directly.

Bug: 162791243

Test: build and using emul temp/running burn8 to verify it
Change-Id: I55e49cb7d0b2d4c0e42dff8398b5d42c6546cafa
(cherry picked from commit 1d87413881c5ef74c234d4a7cf4a8707ff0dccfe)
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-06-15 17:32:47 +06:00
clarencelol
5ae45246d0
sdm660-common: power-libperfmgr: Add back audio hints
* It works as intended

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-06-15 17:32:47 +06:00
Subhajeet Muhuri
8b7fde5fdb
sdm660-common: rootdir: Enable EAS after boot
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-15 17:32:46 +06:00
Subhajeet Muhuri
c3cba4b899
sdm660-common: rootdir: Disable EAS on early-init
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-15 17:32:46 +06:00
OdSazib
8dc1cfec3e
sdm660-common: Set target FCM level to 4 for 4.19 2021-06-15 17:32:46 +06:00
Subhajeet Muhuri
0ce77b528a
sdm660-common: Checkout CarrierConfig to LA.UM.9.1.r1-07300-SMxxx0.0 2021-06-11 08:34:07 +06:00
OdSazib
d002971ef8
sdm660-common: Update RIL from curtana V12.0.1.7.RJWMIXM
- Update android.hardware.secure_element to 1.2
- Update android.hardware.radio to 1.5
- Update vendor.qti.hardware.radio.uim_remote_client to 1.2
- Downgrade vendor.qti.hardware.radio.lpa to 1.0
- Add seccomp_policy for imsrtp
- Remove duplicate vendor.qti.hardware.radio.qtiradio entry
- Remove libshim for libdpmframework
- Adjust props with new RIL blobs

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-06-11 08:33:27 +06:00
OdSazib
0e056962bf
sdm660-common: Update blobs from LA.UM.8.2.1.r1-05600-sdm660 2021-06-07 09:22:17 +06:00
Bruno Martins
d426a25b10
sdm660-common: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-06-07 09:22:17 +06:00
Chenyang Zhong
7d7454d95f
sdm660-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>
2021-06-07 09:22:17 +06:00
Lucchetto
09dfad32be
sdm660-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

Signed-off-by: Lucchetto <lucchetto.tie@live.com>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-06-07 09:22:17 +06:00
EcrosoftXiao
bcee3d7841
sdm660-common: Switch to QTI Thermal HAL 2021-06-07 09:22:17 +06:00
LuK1337
d03e299b1d
sdm660-common: Drop thermal and thermal controller 2021-06-07 09:22:17 +06:00
pkm774
8f1fbab141
sdm660-common: Build graphics.allocator@3.0 and @4.0
565 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.allocator@4.0::IAllocator/default in either framework or device manifest.
  4126 W Gralloc4: allocator 3.x is not supported
   565 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.allocator@3.0::IAllocator/default in either framework or device manifest.
  4126 W Gralloc3: allocator 3.x is not supported
  4126 I Gralloc2: Adding additional valid usage bits: 0x0

Signed-off-by: pkm774 <mprabhat774@gmail.com>
2021-06-07 09:22:17 +06:00
OdSazib
8ae20c8315
sdm660-common: Required HALs for 4.19
- Update all dependencies to my git as well
2021-06-07 09:22:17 +06:00
Kuba Wojciechowski
68f90e68cf
sdm660-common: Disable KPTI feature
It can also help increase performance by a lot in some scenarios.

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
2021-06-07 09:21:11 +06:00
clarencelol
7b3df1cb47
sdm660-common: sepolicy: Label wakeup nodes for 4.19
- also resolve arbitrary sysfs paths for system_suspend
2021-06-07 09:21:11 +06:00
Quallenauge
f9d71135ea
sdm660-common: sepolicy: Add swapper to kill
Fixes:
W swapper/6: type=1400 audit(0.0:63): avc: denied { kill } for capability=5 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=capability permissive=0

Change-Id: Ib3b5c2a173528cb9f63a4dd750634968c060f471
2021-06-07 09:21:11 +06:00
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