Commit Graph

58 Commits

Author SHA1 Message Date
mikairyuu
7ef489b51a Revert "sm7250-common: enable idle timer with kernel support"
This is useless on our 60hz screen anyway
2022-09-07 09:07:54 +03:00
Sebastiano Barezzi
1b19711be7 sm7250-common: Switch to prebuilt secure_element stack 2022-09-04 18:20:57 +03:00
mikairyuu
677a467b72 sm7250-common: rootdir: Fix thermal HAL denials 2022-08-22 23:09:20 +03:00
mikairyuu
a914903ade sm7250-common: Switch Health HAL to AIDL 2022-08-22 15:06:45 +03:00
Akash Srivastava
f202cb1387 sm7250-common: Switch to AIDL WIFI HAL 2022-08-21 20:28:21 +03:00
Randall Huang
aed5f2d0ee sm7250-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-08-15 16:06:44 +03:00
mikairyuu
e3b00395fc Revert "sm7250-common: rootdir: provide fstab.qcom"
This reverts commit ef1eb99e5c.
2022-08-03 20:38:20 +03:00
Martin Liu
82a7028f8d sm7250-common: set readahead_size_kb=128 to vendor, product , system_ext, system and userdata
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-07-23 18:27:53 +03:00
naveenjohnsonv
cae07f6dd3 sm7250-common: overlay: add config and nodes for Smart charging 2022-07-23 18:27:51 +03:00
xSylla
ef1eb99e5c sm7250-common: rootdir: provide fstab.qcom
* Move from fstab.default to fstab.qcom for better compatibility
* Xiaomi hardcode androidboot.fstab_suffix=default in bootloader so let's force load qcom
* Also remove fstab.emmc and recovery.fstab as they're not used
* Inline fstab with sm8250
* Move qcom recovery init script to Android.bp
2022-07-23 18:25:02 +03:00
mikairyuu
b509a4a749 sm7250-common: rootdir: sync memlat values with redbull 2022-07-15 15:01:25 +03:00
mikairyuu
258b117bf3 sm7250-common: rootdir: update to LA.UM.9.12.1.r1-01900-SMxx50.QSSI12.0
*also nuke cpuset from post_boot since we do that in init.qcom.power.rc and kang cpusets from redfin
2022-07-09 19:34:28 +10:00
mikairyuu
79c08363ac sm7250-common: rootdir: update to LA.UM.9.12.r1-13700-SMxx50 2022-06-17 18:49:41 +10:00
CloudedQuartz
f9287b76d6 sm7250-common: switch to bw_hwmon governor for devfreq on init 2022-06-17 18:09:45 +10:00
penglezos
8d64219aa8 sm7250-common: rootdir: Set default thermal profile to '0'
Since we dropped dynamic thermal profile implementation, set the default thermal profile to 0 (Disabled) and let mi_thermald driver does it's magic.

Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:09:45 +10:00
EmanuelCN
2284ac6ad5 sm7250-common: Swich to EROFS
*Requires kernel support.
2022-06-16 12:55:22 +10:00
SebaUbuntu
a6624039b5 sm7250-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-06-05 14:29:13 +02:00
xSylla
76225f1e92 sm7250-common: Update blobs from MIUI V13.0.2.0.SJIMIXM
Change-Id: Ie65bb522086e1ee099423ca6d4d9cd9f2ebbefe7
2022-06-05 14:28:33 +02:00
stic-server-open
9124117927 sm7250-common: rootdir: Delete the non-existing cnss_diag service
* cnss_diag doesn't exist in proprietary-files.txt,
  and it doesn't make sense to leave residual services in init.target.rc.

Co-authored-by: MB <mb150996@gmail.com>
Co-authored-by: Aquarius223 <2777968262@qq.com>
Change-Id: I0f9cef6beb8bd2c593a628a057b97cc4d82842d2
2022-06-05 14:26:39 +02:00
Sebastiano Barezzi
cedd2fecf6 sm7250-common: Move to AOSP NXP NFC HAL
* NXP added snxxx support in AOSP, \o/

Change-Id: Id1b9cdbe1f29d1ff61af8182ae2f8370e5210426
2022-06-05 14:24:12 +02:00
Sebastiano Barezzi
945f0e2b6d sm7250-common: rootdir: Move remaining modules to Android.bp
Change-Id: Id2f440af5abaab38d01f2804822279c8c7e821b2
2022-06-05 14:23:39 +02:00
LuK1337
a3142c6513 sm7250-common: Drop SSR props & references and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2021-12-21 01:29:41 +01:00
Dobsgw
7a381f3ff1 sm7250-common: rootdir: Fix PowerHAL nodes
Fix for:
W/libperfmgr(  670): Failed to write to node: /dev/stune/top-app/schedtune.boost with value: 10, fd: -1
W libperfmgr: Failed to write to node: /dev/cpu_dma_latency with value: 61, fd: -1

Change-Id: Ieb385110f236ab12549aea198639708068fb6156
2021-12-01 16:43:28 +01:00
blankaf
9915f84c99 sm7250-common: rootdir: Adapt for libperfmgr
Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Co-authored-by: SebaUbuntu <barezzisebastiano@gmail.com>
Change-Id: Ia5f59d183056728dc2966b99ff74dbb4fcc83c7b
2021-12-01 16:43:28 +01:00
SebaUbuntu
fc9c1a4a91 sm7250-common: rootdir: Move to Android.bp
Change-Id: I2175d44c28452e9c9138f5143229e7b7cac6d072
2021-12-01 16:43:28 +01:00
Albert I
b7cd634ffa sm7250-common: Cleanup rootdir scripts
* Some of these scripts are unused on lito, so remove them
* Also remove factory scripts, meant for eng

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I19cb6c84a4767cdc790f3ad42c256ca20ecde629
2021-12-01 16:43:28 +01:00
John Galt
a7d7730409 sm7250-common: rootdir: Move vendor.sensors from early-boot to boot
- Fixes broken sensors due to race condition

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I477512d2737d6d4f58eb06732d11c4bf53142a4b
2021-12-01 16:43:28 +01:00
dhacker29
d1de1e190f sm7250-common: rootdir: Allow telephony access to proc/cmdline
`D/TelephonyManager: No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)`

Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Midas Chien
09c1629d5e sm7250-common: enable idle timer with kernel support
Enable display kernel driver idle timer, which allows dropping to lower
refresh rate earlier and without additional overhead.

Bug: 160682800
Test: track idle timer through systrace
Test: zone test, scrolling
Change-Id: I6e82b58026d7b31cf0cabc0db7bb6277f6731d12
2021-12-01 16:43:28 +01:00
Albert I
779828ff23 sm7250-common: Set Bluetooth MAC address using persist property
The idea is to allow us to not depend on stock QTI Bluetooth HAL, as MAC
addresses fetched from NVRAM by nv_mac script will be saved as hex-encoded
files. We can decode back saved files to then the Bluetooth one be set using
persist property so it can be read by Bluetooth HAL.

This is loosely based on similar techniques used on Mi 9 and ZenFone Max Pro M2.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I74d07c3c3125a04962c37fe8bfcc8385d1fd3398
2021-12-01 13:02:03 +01:00
dianlujitao
09bb619041 sm7250-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]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
2021-12-01 13:02:03 +01:00
Albert I
a909d7b427 sm7250-common: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2021-12-01 13:02:03 +01:00
Albert I
d7cdf4b75a sm7250-common: fstab: A-only userdata: nodiscard -> discard
Why it has to be different by itself?

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Iab39004489695da6bde7729f7eb0a65645067b0f
2021-12-01 13:02:03 +01:00
Albert I
f99724e748 sm7250-common: Import NVRAM blobs
Required to retrieve MAC addresses and save them somewhere in /data/vendor
so stock QTI Bluetooth HAL can read and set correct one, otherwise the HAL
will set a randomized one that always starts with ff:dd.

cnss-daemon isn't affected since nv_mac will write directly to
/mnt/vendor/persist/wlan_mac.bin to be read by WLAN driver.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I2d95de397c3bab9e3c55171bf0ff833346bef32e
2021-12-01 13:02:03 +01:00
Albert I
a91e60f541 sm7250-common: Re-order and update blobs list
* Add missing blobs
* Remove unused blobs

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I653413267d90f6ae737bb982c2d647b2ce2c5749
2021-12-01 13:02:03 +01:00
Elliott Hughes
6218cdf9f4 sm7250-common: ueventd: Fix EntropyMixer.
/dev/hw_random should be readable by system_server for EntropyMixer to
be able to use it.

Bug: http://b/179086242
Test: adb shell logcat | grep Entropy
Test: android.permission.cts.FileSystemPermissionTest#testDevHwRandomLockedDown
Change-Id: I7dd7faf300f5ce3cab8d02c69be7915238cf61da
2021-12-01 13:02:03 +01:00
Bruno Martins
eb9b493f49 sm7250-common: Drop I/O prefetcher
This depends on the already removed QTI perf stack.

Change-Id: I06b9a57f868e77bbcbb77c3970aec723404689f4
2021-12-01 13:02:03 +01:00
Wei Wang
8654b374e5 sm7250-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-12-01 13:02:03 +01:00
Ramisky
8537acbf6c sm7250-common: Add offline charging LED indicator
* Write to node to turn on LED in offline charging mode

Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
6d8d5d7b6b sm7250-common: Update rootdir from CAF - LA.UM.9.12.r1-11500-SMxx50.0
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
9f6c9618c8 sm7250-common: Our lito devices are based on UFS|eMMC
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
35aa84537f sm8250 > sm7250 2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
03f69f21a8
sm8250-common: Chown DT2W node
Change-Id: Idb121cba92d38dac5bd27575d349cf054bb7ef50
2021-06-08 16:31:55 +02:00
Sebastiano Barezzi
545fe5c78e sm8250-common: Drop power AIDL extension
Change-Id: Ied144ee0f7840ab43499d43f3d0c64dfd414d99f
2021-06-03 00:27:20 +02:00
Sebastiano Barezzi
7b386e476d
sm8250-common: Update rootdir from CAF
* From LA.UM.9.12.r1-11000-SMxx50.0
* Remove Xiaomi's crap while at it

Change-Id: I05b9ca07f4ec9be475388a225b909c675a2b9959
2021-04-22 15:17:28 +02:00
Sebastiano Barezzi
ea0975ee4a
sm8250-common: Use QTI USB init configs from USB HAL repo
Change-Id: I966d251a2756c9d9e91f621cbc5872448d022de4
2021-04-22 00:48:55 +02:00
Sebastiano Barezzi
82d6a9c205
sm8250-common: Remove unneeded rootdir files
Change-Id: I6d65371667b7b375f9e536bcae2cf62973f60bca
2021-04-22 00:48:54 +02:00
Sebastiano Barezzi
252cb57bb8
sm8250-common: Move SSC sensor script to proprietary-files.txt
Change-Id: Iaf0a7c653b0e8655eddaca9aa869731744006c3f
2021-04-22 00:48:54 +02:00
Sebastiano Barezzi
794b5cc797
sm8250-common: Import recovery init files
* From lmi-user 11 RKQ1.200826.002 V12.2.4.0.RJKMIXM release-keys
2021-03-29 09:29:20 +02:00
Sebastiano Barezzi
5055f65485
sm8250-common: Update rootdir from lmi V12.2.5.0.RJKMIXM
* From lmi-user 11 RKQ1.200826.002 V12.2.5.0.RJKMIXM release-keys

Change-Id: Ia42b7def56f44d8688b3d56b7573ebcef15f188f
2021-03-25 00:34:10 +01:00