Commit graph

402 commits

Author SHA1 Message Date
Abhiprayah Tiwari
6db25b0325 sdm660-common: rootdir: remove mounting of debugfs
Mounting debugfs is no longer allowed in android S from rc scripts.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
UtsavBalar1231
56960ecd78 sdm660-common: rootdir: Add vendor prefix to rmt_storage
* As per the init.qcom.rc service defination has vendor prefix
* This Fixes:
I init    : Command 'start rmt_storage' action=boot (/vendor/etc/init/hw/init.target.rc:161) took 0ms and failed: service rmt_storage not found

Change-Id: I271adb887b9420d631e67eb4e7f436f0cd931f32
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
152ad7e525 sdm660-common: rootdir: Enable fbe encryption
This reverts commit b9cba38ee24b543990ed18e00734ba3145d3e4c8.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Suren Baghdasaryan
96b67cba6d sdm660-common: Replace writepid with task_profiles command for cgroup migration
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
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: If0a64b9f335ad13f65522361b125cab951002a2c
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
ZeeLog
8b84e6839b sdm660-common: init: Remove bogus paths/perms
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Gaurav Kohli
918be7c3f7 sdm660-common: rootdir: change ipa trigger level to early-boot.
On fs/post-fs trigger there are chances of vendor partition mounting,
which may block ipa loading. To prevent the same change the
trigger level.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Michael W
ede9ca9946 sdm660-common: Give proper permissions for /dev/diag
* This gives proper permission to /dev/diag node so that diag driver
  can load successfully

* Logs spam with error '-13' which basically translates to access denied/invalid permission.

* Fix this by giving system read and write access.

Change-Id: I87fe322e7c0d91a494d29213e6f657ed8a7032a6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:11 +01:00
pix106
445da676e7 sdm660-common: rootdir: fix blkio background path
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
pix106
f394ee9312 sdm660-common: rootdir: set fingerprint permissions for fpc1020
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Wei Wang
d4dfc9b401 sdm660-common: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: clarencelol <clarencekuiek@icloud.com>

[clarencelol]: I'm not sure why it got removed before, it is not deprecated yet as Google still using it
Reference: https://android.googlesource.com/device/google/redbull/+/refs/tags/android-s-beta-4/fstab.hardware

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Ratoriku
e9c9caeaa3 sdm660-common: Update fstab flags from CAF
* Fixed screen lock issue when using fbe

Co-authored-by: Edwin Moquete <edwinmmoquete@gmail.com>
Signed-off-by: Ratoriku <a1063021545@gmail.com>
Signed-off-by: raiyanbinmohsin <raiyanbinmohsinshishir@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
ghostrider-reborn
79c64bc007 sdm660-common: Introduce kernelspace battery saver
* Needs Kernel side support
 * This activates kernelspace battery saver via powerhal whenever
   battery saver is enabled in userspace, thereby lowering power
   consumption at kernel-level by disabling boosts and such

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Change-Id: I2623503db27d7518de519bcaa3f5af6ab83879d0
2021-11-13 11:31:49 +01:00
OdSazib
a81f0b99a0
sdm660-common: DeviceSettings: Update notification LED path for K4.19
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I063a776c16dffadf73d7f12f97995f6fad85d57c
2021-07-22 13:21:25 +06:00
OdSazib
b8c814713d
sdm660-common: DeviceSettings: Add earpiece gain
- Requires kernel support

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: If28b4dff421cbba5f17cd2ccfab02f2aa616a9f8
2021-07-22 13:21:03 +06:00
Alex Naidis
564ddb664d
sdm660-common: Override readahead to 128KiB after post-boot
* Qualcomm decided to increase the read-ahead value to 512KiB [1].

 * This value resulted in frequent cases where read-ahead
   would be waiting for new I/O requests and thus ending
   up being synchronous rather than asynchronous.

 * As result, the main goal of Qualcomm's patch [1] which
   is to increase throughput ends up in a regression where
   read throughput is significantly lower than it ever
   would be with the recommended [2] read-ahead value.

 * This patch uses our existing loop in ramdisk to set
   the read-ahead value to 128KiB.

[1] https://source.codeaurora.org/quic/la/kernel/msm-4.19/commit/include/linux/mm.h?h=LA.UM.9.12.r1-09000-SMxx50.0&id=25d04e4ceb7c067907901842c223d62973d73a75
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/mm.h?h=v4.19.160#n2397

Change-Id: I1980d904568fe4f1ce7b676452bcc44e4689f02f
Co-authored-by: clarencelol <clarencekuiek@icloud.com>
2021-06-27 22:21:00 +06:00
Ratoriku
c6c3996974
sdm660-common: Stop creating IOP deamon dirs
* Since we don't use IOP hals anymore

Signed-off-by: Ratoriku <a1063021545@gmail.com>
Signed-off-by: Anush02198 <Anush.4376@gmail.com>
2021-06-27 22:21:00 +06:00
pix106
c2603d6ca4
sdm660-common: Force FDE encryption for A-target/lavender
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-06-15 17:32:47 +06:00
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
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
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
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
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
OdSazib
e9bec8a155
sdm660-common: rootdir: Clean up init stuffs 2021-05-18 05:04:03 +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
dianlujitao
3f8f243eda
sdm660-common: Decommonize touch HAL node permissions
Change-Id: Ic8caabd4a5cf458dfc2c91971247168de28a27ce
2021-04-11 09:29:14 +06:00
OdSazib
b42fb05f29
rootdir: Disable fbe encryption except A-target/lavender 2021-04-03 18:18:38 +06:00
OdSazib
0047cdbf79
sdm660-common: Update common tree and adapt changes
* Adjust with wayne-common
* Switch to standalone extract utils from pa
* Update FCM level to 3
* Move IR Blaster to device specific repo

Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-03-21 23:27:59 +06:00
clarencelol
cb2bb349c8
sdm660-common: rootdir: Add missing max_comp_streams in init
- To align with https://github.com/OdSazib/device_xiaomi_sdm660-common/blob/11/rootdir/etc/fstab.qcom#L14

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-03-18 07:32:54 +06:00
Vishalcj17
9922a089dd
sdm660-common: rootdir: Set up/down_rate_limit_us as 1000
- In my testing, i faced some CPU Stalls with the old setup. (caused some spikes in jitter and non-consistent hackbench).

- 1000 was perfect in my testing and did not hit over power usage.

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-03-17 01:31:59 +06:00
OdSazib
0007918f73
Revert "sdm660-common: rootdir: drop wlan driver loading"
This needed for some custom kernels to load the module
This reverts commit b617d231e0.
2021-03-17 01:24:28 +06:00
ElXreno
b617d231e0
sdm660-common: rootdir: drop wlan driver loading
I hope it already present in kernel, so let's drop it.

Signed-off-by: ElXreno <elxreno@gmail.com>
2021-03-07 01:51:46 +06:00
Prerna Kalla
a012e566eb
sdm660-common: rootdir: add permission for /dev/sp_keymaster_ssr
Needed for keymasterd to register spcom server to catch ssr.

Change-Id: I30e4daac9b8b1d15c87e01929072b4d4804b6342
2021-03-07 01:51:46 +06:00
nullbytepl
1e82d9734b
sdm660-common: rootdir: start themed_bootanimation before bootanim 2021-03-02 23:43:22 +06:00
PIPIPIG233666
206f51bad0
sm660-common: Create socket for /dev/socket/audio_hw_socket
Change-Id: If4c5b944efb8dde3093ccb7b8f1dca746a02e043
2021-03-02 23:43:22 +06:00
OdSazib
ac194c785a
sdm660-common: rootdir: sysfs node permission for smart-charging 2021-02-20 11:55:48 +06:00
haran
73dd74a16f
sdm660-common: rootdir: Set permission for spidev7.1 IR node 2021-02-20 11:55:48 +06:00
Subhajeet Muhuri
c2aa44b49b
sdm660-common: Add more pixel powerhal nodes 2021-02-20 11:55:48 +06:00
OdSazib
1edf16f04c
sdm660-common: apex: Symlink metadata to existing sessions
* Better we do this instead of creating extra dir
2021-02-16 18:50:35 +06:00
pix106
dbebd8057c
sdm660-common: add external sdcard to fstab.qcom 2021-02-16 17:08:16 +06:00
OdSazib
9fd4659d67
sdm660-common: Add back zRam block in fstab 2021-02-16 17:08:16 +06:00
Mohammad Asaad Akram
48a8e97d3e
sdm660-common: ueventd: Allow system permission for RPS sysfs node
Allow system permission for RPS sysfs nodes, so that cnss-daemon,
user space daemon can enable RPS(Receive packet steering) feature.

Change-Id: Iccebc347d959fc8ca35f28cb64e7bcf6b05f341a
CRs-Fixed: 2768237
2021-02-10 09:05:29 +06:00
Isaac J. Manjarres
07798a5cc5
sdm660-common: ueventd.qcom.rc: Add permissions to /dev/membuf
The Trusted UI HAL will need to access /dev/membuf, so allow
system access to /dev/membuf.

Change-Id: I906b856e153f44b11a8b8aa8456080e803495fec
2021-02-10 09:05:29 +06:00
Chris Lew
e34fffe157
sdm660-common: ueventd.qcom.rc: Add mhi diag pipe device rules
Add rule to set permissions for the mhi_*_pipe_4 pipe that sends and
receives diag traffic to external chipsets. These nodes should have rw
access for the system group so the diag-router appplication can access
it.

Change-Id: Ia83ea035d248482790f70cbce7d42b86238ebd11
2021-02-10 09:05:29 +06:00
Chenyang Zhong
851d88070e
sdm660-common: create and symlink a dummy /metadata/apex
Google moved apex sessions directory from /data/apex/sessions to
/metadata/apex/sessions after commit:

"Move apex sessions directory to /metadata"
36cf4bbac6

Devices with a mounted metadata partition will have the needed
directories set up by system/core/rootdir/init.rc. Xiaomi devices
on sm6125 do not have a metadata partition out of the box, so things
like "Google Play system update" will fail to install the update.

Therefore, create a dummy directory under /data/vendor/metadata_apex
and symlink it to /metadata/apex.

The reason why the old /data/apex/sessions directory is not used
for the symlink is that apexd will call migrateSessionsDirIfNeeded()
to recursively copy things from the old directory to the new one.
Creating the symlink from /data/apex/sessions may result in
unintended behaviors.

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-09 20:53:35 +06:00
OdSazib
bdd0d21f13
sdm660-common: Checkout rootdir and init stuffs from caf
* adapt with eas and cleanup unnecessary stuffs
* Fixed offline charging and usb functions

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-08 14:06:33 +06:00
OdSazib
2135c18643
sdm660-common: DeviceSettings: Drop userspace hall switcher
* The sensor works as it is, hence not needed anymore
2021-02-03 23:05:50 +06:00
OdSazib
d08d2d3b8e
sdm660-common: Format fstab with FBE encryption 2021-01-27 21:11:22 +06:00
Ethan Chen
beb0438736
sdm660-common: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2021-01-21 03:26:33 +06:00
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
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
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
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
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
Ramakant Singh
11b714d506
sdm660-common: init: Add vendor prefix for shell
qti_init_shell renamed to vendor_qti_init_shell in order
to avoid SELinux denials

Change-Id: I4cfe1d8e15892a4948ece52aa799b2a60826d5f9
2020-12-13 18:37:01 +06:00
Manish Sarkar
827e1a8e00
sdm660-common: init: remove lct diag
We dont need you at all

05-28 19:19:49.428     0     0 I init    : Command 'rm /data/vendor/lct_diag/client_*' action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:371) took 0ms and failed: unlink() failed: No such file or directory

Signed-off-by: Manish4586 <manish.n.manish45@gmail.com>
Change-Id: I1d25b638e9385494f7ce883bab71ddab480559e0
2020-12-13 18:37:01 +06:00
OdSazib
0127312090
sdm660-common: fix: unable to decode UID for 'sensors': getpwnam failed
No such file or directory, Yet!

Change-Id: Ibbf773b1b238c1172ea639e47ffe59db2a1112ed
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-13 18:37:01 +06:00
Dhananjay Kumar
d857ac4ea0
sdm660-common: rootdir: update audio hal service override as per latest base service definition
Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
2020-12-13 18:37:01 +06:00
Demon000
ecae69c66c
sdm660-common: init: remove deprecated load_system_props calls
Change-Id: Iefefd50e20e3e54202b6c177891d440113993444
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-13 18:27:09 +06:00
Jimmy Chen
a38fe7fd69
sdm660-common: wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-13 18:15:48 +06:00
Davide Garberi
86cc5f4fc7
sdm660-common: Remove energy awareness daemon
All this does is to disable msm_core and set the
polling_interval to 0, which makes the driver useless.
We can achieve the same result by disabling the driver.

Change-Id: Ic19c505ed74811a3d1b76703255af3aa5cb37bf9
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-13 18:15:48 +06:00
Shrikara B
5350c9d183
sdm660-common: rootdir: Set Netflix and media property based on target
Add support to set "ro.netflix.bsp_rev" property at run time
depending on the target. This is needed when 2 or targets are
binary compatible, but have different Netflix proprty for
device whitelisting.

Change-Id: I9484f2886a8b7d986c762fa9031c0e541f15c7e1
2020-10-26 04:25:14 +06:00
Ashish Jain
94677f5db6
sdm660-common: init: Update ueventd rules and init rc for new audio drivers
Update uventd rules to move new audio drivers to audio group.
Update init rc to move audio sysfs node to audio group.

Change-Id: I8e5230e04090b3555e32c0404401dddacea1cd15
2020-10-26 04:25:14 +06:00
Thomas (Wonyoung) Yun
a1008929de
sdm660-common: rootdir: Grant rw permission to hgsl node
qcom: User app needs to open /dev/hgsl node for doorbell enablement.

Change-Id: I9a83e76a441f4001f40ec805bd8081355aa1c79d
2020-10-26 04:25:14 +06:00
OdSazib
9bd430ff9b
sdm660-common: XiaomiParts: Add Headphone & Mic Gain
* This is manually ported by me from Lavender tree on Corvus-Devices
* Thanks @StyloGey for reviewing the java code and giving me a better solution
* Original repo: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

To get it working, you need these two commits in your kernel:
> c04d6d6e61
> 8e25ac3318

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I1bb48ced1f23728daa2e5170647ce08a04347110
2020-10-19 11:36:06 +06:00
OdSazib
7580f5f636
sdm660-common: XiamiParts: Add FPS Info Overlay
* Ported from: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-10-19 11:36:06 +06:00
melia
3648c48235
qcom : device : Update static iuicc names in device
Update static iuicc names in device to handle dynamic iuicc names

Change-Id: I60f1de9ce14b79714762939dd9ee48c17a9ed123
2020-10-19 11:36:06 +06:00
Himanshu Agrawal
315e115009
init.qcom.usb.sh: Set USB default composition to 9091
Set USB default composition to 0x9091 having diag,serial_cdev,
rmnet,adb for 8909 with kernel 4.9.

Change-Id: I3066799d801bc9d8451b0d5a0bcd6d4055d1f735
2020-10-19 11:36:06 +06:00
LuK1337
56e1c00575
sdm660-common: Don't set ro.alarm_boot
* We don't support alarm_boot anyway, also
  it's not getting set because of SELinux denial:
[    7.243347] selinux: avc:  denied  { set } for property=ro.alarm_boot pid=556 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0\x0a
[    7.243470] init: Unable to set property 'ro.alarm_boot' to 'false' from uid:0 gid:0 pid:556: SELinux permission check failed

Change-Id: Ia188bac2d2aa466c23dabd9dc50ee1f58e6ab7ee
2020-10-19 11:36:06 +06:00
Vol Zhdanov
6c2913c9b8
sdm660-common: add qcom early boot script
* to control power off alarm feature

Change-Id: I0d2f5b96f8604d459130aec5f20f87cc75c7bad0
2020-10-19 11:36:06 +06:00
Dušan Uverić
3c2614ac95
sdm660-common: rootdir: always use lz4 for compression
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: I955323fdc7ac3230bcf3c7a3af1ab54ad4e841e6
2020-10-19 11:36:06 +06:00
Dušan Uverić
fa33bc54b6
sdm660-common: rootdir: migrate tunables from post-boot to init.performance.sdm660
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: I00cd6a57a8e7401160aa9eefb96b73ce13a20b3c
2020-10-19 11:36:06 +06:00
Dušan Uverić
aa46d9b409
sdm660-common: rootdir: cleanup init.qcom
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: Ie7a2d7337b95e2d1a48e1c506d68d775aaafda8c
2020-10-19 11:36:06 +06:00
Nicholas Lim
302d73e8c6
sdm660-common: Drop CAF Adaptive LMK script
* In favor of Low Memory Killer Daemon (lmkd).
* Adaptive LMK was also dropped quite sometime ago
  making it useless to keep this script around.

Change-Id: Ie221d6f669d261bb871a77fed712b0df3f5ba248
2020-10-19 11:36:06 +06:00
Artem Borisov
2ab6731d33
sdm660-common: Disable PPR on all targets
* No matter how hard QC tried to improve these features, they still suffer
  from stability issues, mainly due to the unpredictable nature of vmpressure
  they rely on.

Change-Id: Icd14c79298a3c268abffa06ed17a79dececf423a
2020-10-19 11:36:05 +06:00
Max Weffers
d713c78f27
sdm660-common: init: Remove unexistent sensor service
Change-Id: I5128d119a914827aa394d0782c035e0ca35296e0
2020-08-12 02:11:34 +06:00
Saurabh
3501d248b5
sdm660: rootdir: Enable sys.use_fifo_ui prop if EAS is present
* When sys.use_fifo_ui is enabled, ActivityManager tracks the UI thread and RenderThread (the two most UI-critical threads) of the top application and makes those threads SCHED_FIFO instead of SCHED_OTHER. This effectively eliminates jitter from UI and RenderThreads; the traces that've gathered with this option enabled show runnable times on the order of microseconds instead of milliseconds.
* However, it should be enabled only when we have EAS i.e a capacity-aware RT scheduler because if RT load balancer is not capacity-aware, then there would be a 30% reduction in application startup performance.

Reference: https://source.android.com/devices/tech/debug/jank_jitter

Signed-off-by: Saurabh Charde <saurabhchardereal@gmail.com>
Signed-off-by: Aston-Martinn <advaithbhat9@gmail.com>
Change-Id: I8b55ad1899be985fc7357abaf06d68d6a130fb75
2020-08-12 02:11:32 +06:00
Mohammad Asaad Akram
8fac1ec84b
sepolicy: remove deprecated code for avc denial error cleanup
This patch will remove deprecated code for wpa_supplicant
which is creating symlink with system directory.

Change-Id: I95d1c61ab59addc04c1e7d462529bb9400bbfe92
CRs-Fixed: 2644788
2020-08-12 02:11:32 +06:00
Amit Kushwaha
04162ebc76
init.qcom.rc: Removing unused setprop persist.camera.gyro.disable
Addressing error :
 avc:  denied  { set } for property=persist.camera.gyro.disable pid=377 uid=0 gid=0
 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0
 tclass=property_service permissive=0\x0a

CRs-Fixed: 2662429

Change-Id: Ibd0ed4646d52d67248ea33940c4463ecdbdefc36
2020-08-12 02:11:32 +06:00
Raghavendra Kakarla
856bb08440
init.qcom.post_boot: Enable APSS Low Power Modes
Enable APSS LPMs for scuba.

Change-Id: I554b92197455ef01cffacb8e69ac9c79cf75774f
2020-08-12 02:11:32 +06:00
Dyneteve
a97ec5da65
sdm660-common: rootdir: Stop configuring read ahead from post_boot
Change-Id: Ic6706ee9ef05e8d465ff0c535e6feb876eb35e6c
2020-08-12 02:11:32 +06:00
Dusan Uveric
98660408d3
sdm660-common: ramdisk: adjust cpubw bwmon values
Those values seem off. CAF maybe messed them up as those values look possibly wrong.
Those values are used as powerhint values on pixel 2 and 3.

Signed-off-by: Dusan Uveric <dusan.uveric9@gmail.com>
Change-Id: I1eebb1f57a7e91f26b9900cda65ec151b05ecbd7
2020-08-12 02:11:32 +06:00
Artem Borisov
3eaea533e1
sdm660-common: Disable ALMK on all targets
* No matter how hard QC tried to improve these features, they still suffer
  from stability issues, mainly due to the unpredictable nature of vmpressure
  they rely on.

Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
Change-Id: I8256abb91b7e3160670ec45a22fdceeecc2a928c
2020-08-12 02:11:32 +06:00
Max Weffers
10e587e287
sdm660-common: Start vendor.cdsprpcd only for sdm660
* disable it for sdm636 and sdm630
* fixes logspam on whyred with cdsprpcd not able to start

Change-Id: I4de5333709c2fb57f315b47842fbd12d4d80c36d
2020-08-12 02:11:32 +06:00
Max Weffers
fd809eba57
sdm660-common: setup ZRAM in post boot
This reverts commit 24e254a55f3ba32be838c7d1ab36bf65d4362fbe.

Change-Id: I90f690a4b833d94c235fccf56b8d679eb25591d2
2020-08-12 02:11:32 +06:00
richagar
176cb160f9
Added new revision id 2.0.2 for lito
New revision id 2.0.2 added for lito along with 2.0

Change-Id: I98b23d9c160a61afd9a12d12eeda8a91aede87eb
2020-08-12 02:11:32 +06:00
Chitti Babu Theegala
6aaca1af7e
scuba: Initial power/perf tunings
Scheduler, Governor, LPM settings for scuba

Change-Id: Ibb5c29ea5bd8e93fe4759ef18c81500666c2a29c
2020-08-12 02:11:32 +06:00
Divyanand Rangu
28e54cf755
post_boot: updating post_boot for <=2 GB devices
Removing the check of 1GB RAM while enabling
low_ram target specific configurations to enable them
for 2GB RAM targets as well.
Updating ZRAM size to 75% of RAM for <2GB devices

Change-Id: I8d5341a4397cd20f2c59e7396801fcbea7fe5b73
2020-08-12 02:11:32 +06:00
Libo Jin
7bacadf2fb
Perf:Add input boost
Change-Id: I006c49ff5ee5412abc72855229c34ea81f0db4d8
CRs-Fixed: 2607022
2020-08-12 02:11:32 +06:00
Stylogey
323a9a6357
sdm660-common: rootdir: add vendor.cdsprpcd
Change-Id: Ibf8a049cb9c0c4e013e0904282f23ec71dc43f0b
2020-08-12 02:02:40 +06:00
Stylogey
0d5c6a79f6
sdm660-common: remove improvetouch related stuff
* Not host based touch processing isn't supported by the touchscreen.

Change-Id: Ibc841d8c36eda56e58184286676e1d710ff18392
2020-08-12 02:02:40 +06:00