Commit graph

463 commits

Author SHA1 Message Date
pix106
03087d82fc Revert "sdm660-common: Use garbage collector"
This reverts commit c3a7a64be5.
2024-01-14 17:18:17 +01:00
Alcatraz323
0726c25be8 sdm660-common: correct fs inlinecrypt & label metadata context
* As https://source.android.com/docs/security/features/encryption/file-based said emmc_optimized is a inlinecrypt flavor and can only be applied on emmc 5.2 device which has not been released yet
* Apparently Xiaomi 660 is launched with emmc 5.1 5 years ago and never met the 5.2 spec
* Now really enables inlinecrypt hardware by adding it in mnt_flags
* Use AOSP recommended inlinecrypt_optimized
* Use lazytime for reducing meaningless io
* Label metadata partition

(pix106) i use logdump partition for metadata, not cust

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
7011aa62a9 sdm660-common: fstab: add formattable flag for userdata f2fs entry
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Edwin Moquete
5c094cad89 sdm660-common: Switch to FBEv2 emmc optimised encryption
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
8132ae3f7c Revert "sdm660-common: Disable zram writeback"
This reverts commit f13ea08789.
2024-01-14 17:18:17 +01:00
YumeMichi
152cafd63b sdm660-common: Remove redundant CHRE daemon
* We don't have the chre binary and MIUI also disabled it.

Change-Id: I57a95643c366f8b1ce1a8af5ff2ebbf9b29e316d
Signed-off-by: YumeMichi <do4suki@gmail.com>
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Alcatraz323
cd42dff553 sdm660-common: rootdir: remove redundant swapon_all command
* this won't cause zram not to work, but will cause dmesg spit a
"denied" warning
* removing swapon in "fs" scope following aosp instruction
* ref -> https://source.android.com/docs/core/perf/boot-times

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Volodymyr Zhdanov
49b6570b78 sdm660-common: rootdir: Don't configure zram in init.qcom.post_boot.sh
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Alcatraz323
9995d34211 sdm660-common: rootdir: tune background cgroup uclamp values
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-09-15 20:52:46 +02:00
Tashfin Shakeer Rhythm
0e79a7bd21 sdm660-common: rootdir: Do not load non-existent wlan module
Wlan driver is compiled from kernel. Not only the module is non-existent
but also it's unnecessary and causes insmod failure. So, don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
d41f3d2a88 sdm660-common: rootdir: Do not exec init.qti.can.sh
init.qti.can.sh doesn't exist. So, executing the non-existent bash
scripts only results in failure. Don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
0a5ca4c00c sdm660-common: rootdir: Do not try to remove shmbus
shmbus doesn't exist for us. Removing a non-existent file/folder only
causes the command to fail and spam the dmesg.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
609d3d6c14 sdm660-common: rootdir: Trim and fix some blkio node paths
"bg" seems to be "background" after examining the path using a root
explorer. "blkio.weight" is non-existent. So, remove it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
e80c22e5dd sdm660-common: rootdir: Enable RT priority inheritance for audio HAL
Test: instrumented
Bug: 181148259
Bug: 260918856
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
emilchung
e5d0f0c0bd sdm660-common: rootdir: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
dc669fe301 sdm660-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread. - done in hardware/interface/audio
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Georg Veichtlbauer
f102767534 sdm660-common: Fix PowerOffAlarm
* Adjust /persist/alarm/data permissions accordingly

Change-Id: Ie24ccb3749d1dda2deb670cdb531e35d153034ed
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
pix106
176ed77e92 sdm660-common: rootdir: rollback time options for cache and persist partitions
This partially reverts commit 6f9fe01554.

From 43128a7896
2023-08-22 08:44:53 +02:00
Michael Bestas
54c2ca5cce sdm660-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
5e4faf510c sdm660-common: proprietary: update CNE, DPM, IMS, QMI, RIL blobs
* LA.QSSI.13.0.r1-09700-qssi.0
* Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys
* sync Hidl manifest version with Hon660 and S62 Pro
* build hostapd_cli(though Android GUI interface does not need this to manage the ap client, we may want to control them from the shell, maybe)
* remove rmt_storage, tftp_server from rootdir script, they are self contained now
* the vendor.qti.tftp.rc is patched with 782ab1966f
* fix cnd denial

Co-authored-by: 1582130940 <1582130940@qq.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Melody Olvera
6a417ef057 sdm660-common: rootdir: init: Remove debugfs
Signed-off-by: HeroBuxx <me@herobuxx.me>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-25 09:45:54 +02:00
minaripenguin
31be07de4e sdm660-common: rootdir: Pin msm_irqbalance to system-background
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:40:47 +02:00
Tashfin Shakeer Rhythm
2de583c358 sdm660-common: rootdir: Do not set permissions for unused block paths
Our device only uses c0c4000.sdhci.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
f21f68411b sdm660-common: Enforce read-ahead to be 128 KB after boot
Google has mentioned that 512 KB performs worse under heavy memory pressure.
Therefore, hardcode 128 KB read-ahead for all which is optimal.
Also, remove the unused block paths.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
c81cf71b38 sdm660-common: rootdir: Do not pointlessly configure cpu boost
CAF's CPU boost has been disabled in kernel. So, this is useless.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
1ae8e9ac22 sdm660-common: rootdir: Do not pointlessly configure rtg boost and pl
rtg boost and pl have been removed from schedutil in kernel. So, this is useless.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Immanuel Raj
c3a7a64be5 sdm660-common: Use garbage collector
Good with F2FS

Based on 6a82382659

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Mohamed Moussa
342d3ebe97 sdm660-common: rootdir: Move init.recovery.qcom.rc out of root
The file init.recovery.qcom.rc flagged as offending file in root/,
because it violates the pathing req. (system/ & root/). Place the file
in $(TARGET_RECOVERY_ROOT_OUT)

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Arian
fe308799a1 sdm660-common: rootdir: Remove printk loglevel setup from init.qcom.sh
Change-Id: I3bba49505efd42e2276116c5cdd31a921acf30a8
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
ZeeLog
3f261b11a0 sdm660-common: rootdir: Append vendor prefix to irsc_util
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
UtsavBalar1231
a76505d70a sdm660-common: rootdir: Remove obsolete rfs_access service
init: Command 'start rfs_access' action=boot
(/vendor/etc/init/hw/init.target.rc:88) took 0ms and failed: service
rfs_access not found

Change-Id: I1549a36f0663bfe8de381ccb493b757cd5375cbc
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Arian
8c7b7a78c2 sdm660-common: rootdir: Don't install test apps
Change-Id: I642691c52afa777eeed50a280574dcfba0eae155
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
pix106
6f9fe01554 sdm660-common: rootdir: clean fstab time options
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
ManshuTyagi
796762d620 sdm660-common: init: Fix trace error * E cutils-trace: Error opening trace file: No such file or directory
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Alcatraz323
796f450b3a sdm660-common: rootdir: time_daemon: self contained module
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Pavankumar Kondeti
9c4a02b3e7 sdm660-common: rootdir: post_boot: set the default IRQ affinity for SDM660/SDM630/SDM845
Set the default IRQ affinity to the primary cluster for SDM660,
SDM630 and SDM845. When a CPU is isolated/hotplugged, the IRQ
affinity is adjusted to one of the CPUs from the default IRQ
affinity mask.

Change-Id: I1f33fdf2a06e1cb086904dabaaa0414aafcf07c5
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Alcatraz323
901ff5c8a1 sdm660-common: rootdir: set task_profiles for common background tasks
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Co-authored-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Suren Baghdasaryan
0348e50c0a sdm660-common: rootdir: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
Merged-In: Ide373c283359cf4b73af4cb0813d8c0306942595
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Randall Huang
5c11cadd03 sdm660-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
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Alcatraz323
0e8661dea0 sdm660-common: Partially revert "Nuke msm_irqbalance"
* replace with 660 stock irq conf(miui/s62pro are same)
* remove not needed service define in init.qcom.rc

This reverts commit fe0aeb3704.

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 09:48:58 +02:00
Stylogey
5182be1445 sdm660-common: DeviceSettings: Add USB fastcharge toggle
Co-authored-by: ronaxdevil <pratabidya.007@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-23 19:32:12 +01:00
pix106
bc4950e9be sdm660-common: rootdir: drop schedtune 2023-03-20 07:18:06 +01:00
Alcatraz323
2c7ab4d8e3 sdm660-common: rootdir: correct missing echo to usb configuration
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alcatraz323
7379fa4f67 sdm660-common: rootdir: fix usb mtp/ptp/accessory/audio_source/midi unrecognized by windows
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alcatraz323
2d4da6b804 sdm660-common: rootdir: correct xiaomi usb vendor/product id
* before Bus 001 Device 010: ID 18d1:4ee2 Google Inc. Nexus/Pixel Device (MTP + debug)
* after Bus 001 Device 015: ID 2717:ff48 Xiaomi Inc. Mi/Redmi series (MTP + ADB)

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Vladimir Mikhailov
6eaa16c9e8 sdm660-common: rootdir: Restore CAF cpuset settings
Change-Id: I80b4ead18bf4f485e9183c55fb2030a7f3b381d4
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Quallenauge
ef773f16c7 sdm660-common: rootdir: Limit cpufreq rate via down-/up_rate_limit_us knobs.
This prevents to change the frequency in a very short
manner which seems to fast for the hardware and
causes performance drops.

Change-Id: I678d6dc3dc81d756ba1b2031cd369d95d9298ac0
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alex T
5175cbf5a9 sdm660-common: rootdir: Put tftp in a group
Fixes following spamfest:

09-09 06:49:00.304   823   823 I tftp_server: pid=823 tid=823
tftp-server : INF :[tftp_server.c, 667] rcvd >
09-09 06:49:00.304   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server_utils.c, 11>
09-09 06:49:00.304   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 1222] OA>
09-09 06:49:00.304   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_os_la.c, 191] unli>
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 893] Usi>
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_os_la.c, 63] open >
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_os_la.c, 70] open >
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 927] ope>
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_server.c, 1718] op>
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_protocol.c, 1229] >

Change-Id: I60fcc9530a69326bb3fc92beed1cdb4221d6ddd9
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
boedhack99
6c5b6a61e3 sdm660-common: rootdir: Remove useless nqnfcinfo service
- non-existing

- init: Could not start service 'nqnfcinfo' as part of class
'late_start': Cannot find '/system/vendor/bin/nqnfcinfo': No such file
or directory

Change-Id: I2ded3327ba721f629b7f5ea31d6861fed0e7c6c4
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Ethan Chen
8a6b121b1b sdm660-common: rootdir: Remove unnecessary QTI logkit directories
* We do not use logkit

Change-Id: I7719bbcebbd053addd16684926eff30d46b945d8
Signed-off-by: ImSpiDy <spidy2713@gmail.com>
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00