Commit graph

422 commits

Author SHA1 Message Date
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
Stylogey
5dd7ed0bc3
sdm660-common: rootdir: lower backround cpuset
Change-Id: Ice155da81b9cd63e5bd28c16b11b858f37d87dfa
2020-08-12 02:02:40 +06:00
Stylogey
ae3c954326
sdm660-common: rootdir: use lower screen-off cpus
Change-Id: I5eae018ec4e80b00e37dc9ff8cd356bc2cbb9280
2020-08-12 02:02:40 +06:00
Stylogey
177f2057df
sdm660-common: rootdir: import unmodified init.qcom.post_boot.sh
* from LA.UM.8.2.r1-06500-sdm660.0

Change-Id: Ibc72899b0ceeabb07a2828102b37b874ae3a3c80
2020-08-12 02:02:40 +06:00
Max Weffers
325d20178b
sdm660: fstab: Switch back to FDE for AB Targets
Change-Id: I2571ef2337b8c6a0acacc8cae7ba6e25bca52f3d
2020-08-12 02:02:40 +06:00
Max Weffers
ffcf3b7f22
sdm660-common: init: remove double definied services
*they are moved to vendor blob rc files

Change-Id: If213f6ba26f9f6d4e6ac3799a1d70ab4e2f3713f
2020-08-12 02:02:40 +06:00
Stylogey
c3ac2b42e2
sdm660-common: move A/B stuff to common
Change-Id: I8770ea03a27f96e04daedaf021906842c0bcebce
2020-08-12 02:02:39 +06:00
Stylogey
60d1a018b4
sdm660-common: rootdir: remove unused init.mdm.sh
Change-Id: I6d6aac2872ad80b64f753d8f96a6e2c7731d5d0b
2020-08-12 02:02:39 +06:00
Stylogey
23b70a785a
sdm660-common: rootdir: update init.class_main
* from LA.UM.8.2.r1-06500-sdm660.0

Change-Id: I38e98ec836e41e8cd405cccd597fd10d3f8f11d2
2020-08-12 02:02:39 +06:00
Stylogey
1bcf447ec0
sdm660-common: rootdir: separate xiaomiparts related initialization
Change-Id: I7b2b3a9c7b22de550e502a9b98e31683e3b961b6
2020-08-12 02:02:39 +06:00
Stylogey
f2fcbe2d73
sdm660-common: format fstabs
Change-Id: I867c2eb7d3f752c70bb9bb05da53048657c43da0
2020-08-12 02:02:39 +06:00
Viraja Kommaraju
077cb22836
common: remove KPI marker at ADSP start
Move the ADSP start KPI marker within the adsp-loader code instead
of adding the same in .rc file.

Change-Id: Ib67f5775dfb9fdca47e62a189de9994b7a6624e8
2020-08-12 02:02:38 +06:00
Dušan Uverić
fee506cf0b
sdm660-common: fstab: setup 1GB ZRAM
Change-Id: Ia137f4a7e7819f507e2fc004231dea2c985f2404
2020-08-12 02:02:38 +06:00
Dušan Uverić
604c8b8600
sdm660-common: always do printk logging at KERN_WARNING level
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: Ia027713e15692f120628c376b7bbd99ae4c450f4
2020-08-12 02:02:38 +06:00
Soul Trace
9b5bf8c210
ipacm: Fix WLAN tethering offload
Fix reboot after 120 seconds on WLAN tethering enable.
Fix "target device is connected but no internet" issue.

Move ipacm-related sections from rootdir/etc/init.qcom.rc to data-ipa-cfg-mgr/ipacm/src/ipacm.rc
Make ipacm.rc look like vendor/qcom/opensource/data-ipa-cfg-mgr/ipacm/src/ipacm.rc but add
writepid /dev/cpuset/system-background/tasks to the service definition.
This let ipacm start after data decryption (it got killed on data decrypt and not respawned,
because was disabled).
This fixes following errors:
04-01 14:35:57.525   591 17586 W libc    : Unable to set property "ctl.interface_start" to "android.hardware.tetheroffload.config@1.0::IOffloadConfig/default": error code: 0x20
04-01 14:35:57.526  2665  3190 I ServiceManagement: getService: Trying again for android.hardware.tetheroffload.config@1.0::IOffloadConfig/default...
04-01 14:35:57.526   591 17586 E hwservicemanager: Failed to set property for starting android.hardware.tetheroffload.config@1.0::IOffloadConfig/default

Set wifi.active.interface context to exported_wifi_prop and allow hal_wifi_default to set it.
I don't know why context definition was not embedded to the contexts file, but now it is.
This fixes following errors:
[163263.846522] selinux: avc:  denied  { set } for property=wifi.active.interface pid=2733 uid=1010 gid=1010 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0

Change-Id: I735e7d8d8d07b9545ef16a6baa35a13aba3cd116
2020-08-12 02:02:37 +06:00
Thomas Shum
d9c301d286
sdm660-common: Restore better load balancing on boot
As it turned out, allowing background, system-background, restricted,
foreground and top-app to use all 8 cores results in severe jitter and lag
whenever background tasks are running, whether it be on boot, or during waking up
from sleep.

This commit readds pinning background to cores 0-1, system-background and
restricted to cores 0-3, foreground to cores 0-6 and top-app to cores 0-7.

Change-Id: Idb76879e75e05b437600f0b689c260c674eb7eea
2020-08-12 02:02:37 +06:00
Wang Han
7508218b60
sdm660-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2020-08-12 02:02:37 +06:00
Matthew Leung
0ca316c45c
post_boot: Update htbp for Chitwan CDP
Change-Id: I3d20b83e3df9a8f47d34955e9024c12b58fbba26
2020-08-12 02:02:37 +06:00
anirudhr
8d58eb9228
gave system permissions to kgsl-3d0 nodes
gave system permission to kgsl-3d0 nodes for qvrservice
to read and write into the nodes

Change-Id: I207eb9f4915cf538c0b47ce45acb182a7ce95789
2020-08-12 02:02:37 +06:00
Santosh Mardi
25736871b4
post_boot: update L3 nodes for lagoon target
Update L3 dcvs node paths used for configurations
in lagoon target.

Change-Id: Ifcdcf3343f63aaee10269893dfea90e71199d0f6
2020-08-12 02:02:37 +06:00
Varun Garg
a675cfe4f7
sdm660: post_boot: Update memlat polling to 8 ms on Saipan
Update the polling_interval to 8 ms for all memlat
devices to inline with 4ms tick

Change-Id: I10182bae1771d6f3d75e92a63a8b63025f46bd2c
2020-08-12 02:02:37 +06:00
Sanjeev Jakkilinki
33ce327e4b
sdm660: init.qcom.post_boot: initialize the tuning settings for lagoon
perf/power tuning settings related sched and dcvs,lpm disabled

Change-Id: I2ba17b63e5294ec8c1a373a0e47df89589ea0965
2020-08-12 02:02:36 +06:00
Shashi Shekar Shankar
a3f6a8bf78
sdm660: post_boot: Update post_boot for sdm660 K4.14 upgrade
Post_boot changes for sdm660 K4.14 upgrade.

Change-Id: Ib891f1ca606cb686d38bba5f7fe101d395d8b6c3
CRs-Fixed: 2611111
2020-08-12 02:02:36 +06:00
Ravikanth Tuniki
7146cde30b
sdm660: post_boot: update hbtp platform for sm8150+sdxprairie V3
Add support to launch hbtp on subtype 3 / sm8150+sdxprairie V3.

Change-Id: Iead67c4d77538a97cfee086b00f9a55ec4ecee81
2020-08-12 02:02:36 +06:00
Pratham Pratap
1f24d3a000
sdm660: init.target.rc: Prevent enumeration in ADB only composition
During bootup the device first enumerates in ADB only composition
and then falls back to the persist.sys.usb.config.
Prevent this enumeration in ADB only composition during bootup
by setting the sys.usb.configfs from init.qcom.usb.rc

Change-Id: I4d9aa8454202b8118ff76dfda7f44c6413c42020
2020-08-12 02:02:36 +06:00
idabgsram
7e0da6d532
sdm660-common: Switch to Filebased-metadata encryption
Change-Id: I0fd387c6be606e9658fa4badeaf9ac75f7987af0
2020-08-12 02:02:36 +06:00
Felix
ac571ee966
sdm660-common: Force restorecon for /mnt/vendor/persist
The restorecon_recursive directive in init is only applied if the
file_contexts file changed between builds, but not necessarily if any
file or folder inside /mnt/vendor/persist/ has changed.

The restorecon code checks whether an xattr named
"security.sehash" contains a string that matches the current
combined hashes of the SELinux context files and skips restoring labels
if there is a match, see
https://android.googlesource.com/platform/external/selinux/+/refs/tags/android-9.0.0_r35/libselinux/src/android/android_platform.c#1546

Force wiping that xattr so that restorecon always runs since it's not
very expensive (there are currently only about 50 files on /persist).

The restorecon is needed to fix issues such as wrong stock labels on
/mnt/vendor/persist/sensors/:
sensors_persist_file -> persist_sensors_file

Change-Id: Ic0cd848836ee550499d9236f56ed6e939e35f01e
2020-03-10 09:39:45 +01:00
Thierry Strudel
e713c18a84
sdm660-common: init: Adjust charger state CPUs
Bug: 74771887
Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Zainudin Shamilov <renascape@beatwo.men>
2020-02-27 17:01:42 +01:00
Wei Wang
bb85a5d86c
sdm660-common: init: powersave in charger mode
Bug: 72445880
Test: boot to charger
Change-Id: I154304deabf219a0428d68d0c59cb64c143b7de6
2020-02-27 17:01:42 +01:00
Anant Goel
5eeebf4209
init.qcom.usb.sh: Set ADB as default composition for GVM targets
Set ADB as the default composition for GVM targets, as DIAG
over USB conflicts with the DIAG over IP used by the PVM.

Change-Id: I09389564db284b16ccb34243eaf34bb17860b30f
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2020-02-27 17:01:41 +01:00
Sidipotu Ashok
eedaefc0f2
init: Define SYS_NICE caps for android.hardware.audio@2.0-service.
- Grant SYS_NICE capabilities to audio HAL processes as sound trigger
HAL threads need to run at real time priority as well as use the
CPU affinity, for far field voice.

CRs-Fixed: 2359951
Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31
2020-02-27 17:01:41 +01:00
Subhadra Jagadeesan
fac52b4226
init.qcom.post_boot: exclude CPUs 0-3 from isolation
- SnapdragonVoiceActivation feature for Far Field Voice version
affines its threads to 0-3 CPUs and so prevent them from isolation
for qcs605 target

Change-Id: I09ef5cc97ee245133315edc0821f3a2afc54e99b
2020-02-27 17:01:41 +01:00
Patrick Daly
20bc13de0e
post_boot: Ensure SLAB_STORE_USER is disabled for zram kmem_caches
ZRAM compression uses the linux slub allocator its internal data
structures. If these internal data structure consume a lot of memory,
ZRAM compression may increase memory usage, rather than decrease it
as expected. Decrease the chance of this occuring by ensuring the
SLAB_STORE_USER debug option is disabled.

Change-Id: I4684feda94b7bebacb6218b7f979c95771b0ee10
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-02-27 17:01:41 +01:00
Divyanand Rangu
a293622e25
post_boot: Update nodes of read_ahead_kb configs
check populated dm-* nodes and Update read_ahead_kb
values to them. This is needed because on targets
with verity disabled dm-0 to dm-6 are populated,
while on enabled targets dm-3 to dm-6 are populated.

Change-Id: Ia4e262d7487120695db53b562b5764598fd40a87
2020-02-27 17:01:40 +01:00
Venkata Rao Kakani
26f2e84b81
post_boot: change ddr freq from fixed to capped level.
Change-Id: I2e6b2112c54e019e72271bf34e22edb1a36488ea
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2020-02-27 17:01:40 +01:00
zljing
b0de734ae5
post_boot: update zram setting avoid 32 bit overflow.
Change-Id: I790b5ef9fcf091e4af3ebaaac3341b8d4050c47e
2020-02-27 17:01:40 +01:00
Liron Daniel
75bef1e561
sdm660: ueventd.qcom.rc: Add permission to /dev/spu_hal_ssr
Needed for spu HAL service to register on spcom channel for ssr
notifications

Change-Id: I43f070bf9948d4330f9ae05f9d631f2681f75164
2020-02-27 17:01:37 +01:00
Amir Vajid
babc7f8aae
sdm660: post_boot: update memlat polling to 8 ms on kona
Update the polling_interval to 8 ms for all memlat
devices on kona.

Change-Id: Ia097e6e0a6aa3b761978e5df60c868a7f1d19401
2020-02-27 17:01:37 +01:00
Amir Samuelov
568313007c
sdm660: allow system to access UFS sysfs
Allow system to read/write UFS device attributes on sysfs.

Change-Id: I7ea0a8f289b29ebcff2b894237efbe90b76f1a80
2020-02-27 17:01:36 +01:00
Dyneteve
e970cc2df6
sdm660-common: Start the bootanimation on late-fs
Change-Id: I990ee05623b98a5faa5fea9085de27737ba2cb5b
2020-02-27 17:01:36 +01:00
Dyneteve
1a7c7d5840
sdm660-common: rootdir: Use auto for sdcard/usbotg
* Just so other file systems work

Change-Id: Ic7aa2b98ee4af1309b6155bdc5b77dc46f130503
2020-02-27 17:01:34 +01:00
Dyneteve
162633ad42
sdm660-common: rootdir: Import tunables/cpusets from coral
* Also start bootanim a little earlier

Change-Id: I1b43ead7d122a7042b8fd5e6b5fe41afa9e9fd1b
2020-02-27 17:01:34 +01:00
Wei Wang
0cc188a5c5
sdm660-common: Import SchedTune tuning from b4s4
Change-Id: Ia805b346b2b24fcc24f80af8dc4ffcba3f0c3fbc
2020-02-27 17:01:34 +01:00
Dyneteve
6917d046fa
sdm660-common: rootdir: Stop configuring read ahead from post_boot
Change-Id: I7ce2665c5cb78d8beb9e20cd296d32a520f6bbf4
2020-02-27 17:01:34 +01:00
Bharat Pawar
70b2ca98a0
sdm660_64: init: USB config update
Change-Id: I696c3622477c689bb31fb2d12183729ece59d54b
2020-02-10 14:22:01 +01:00
Aryan Gupta
5666e48876
sdm660: Switch to file based encryption for AB Targets
Ã*following stock

Change-Id: Ifcf9c07c4e00fa0b8362d4ae7505bb108e57cca6
2020-01-31 16:47:27 +01:00
Max Weffers
7e226bf4b8
sdm660: fstabAB: Use symlink only for persist partition 2020-01-31 16:28:35 +01:00
Rama Aparna Mallavarapu
ccfe87ba96
sdm660: post_boot: Update hi-speed freq for rev 2.1
Update kona rev 2.1 hi speed frequencies for dcvs.

Change-Id: I00ed9c7894600c20e7025f2c7ad2a197fb7d669d
2020-01-28 16:59:18 +01:00
Venkata Rao Kakani
1daf8c63a5
sdm660: post_boot: update frequencies based on sku feature id.
Change-Id: Iec2ceb2afc26498daeec45722f6bd76f13e66553
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2020-01-28 16:59:18 +01:00
Libo Jin
b25e24b6a7
sdm660: Perf:increase touch boost duration
CRs-Fixed: 2586942
Change-Id: If984001dad652b82807553c08a6a54b6ce095e9a
2020-01-28 16:59:18 +01:00
Shailendra Gupta
ae0aeaa6f8
sdm660: common: Bring-Up changes for newer upgrade.
Change-Id: I027266c31b83dc7f45dc10dbfe2fc2a5856defba
2020-01-28 16:59:18 +01:00
Vijayakumar Badiger
c910661f7d
sdm660. update sku frequency for SA8155P
Change-Id: I9b36fc87fa9f04c810a6eadea0367a380c9cbf24
2020-01-28 16:59:18 +01:00
Lingutla Chandrasekhar
e14c92df55
sdm660: init.qcom.post_boot: Update scheduler settings for lito
Update scheduler settings for lito.

Change-Id: If7e2b9a3c6e0b930d6438b92ef3f3d10e9c4de5f
2020-01-28 16:59:18 +01:00
Raghavendra Kakarla
5626ca5359
sdm660: init.qcom.post_boot: enable LPMs for bengal
Enable low power modes and core_ctl for the bengal.

Change-Id: Ie6784fdacec66020c19fa67d1c3a095af9745f21
2020-01-28 16:59:17 +01:00
Max Weffers
12b0f38bd2
sdm660-common: Update Perf stack from Jasmine 10 Release
jasmine-user-10-QKQ1.190910.002-V11.0.4.0.QDIMIXM-release-keys


Change-Id: Ib646bbaf0678ec7597792afc63373c93e47be2e4
2020-01-14 18:18:15 +01:00
Max Weffers
42a78479fc
sdm660: ueventd: Update from from Mi A2 Android 10 release
jasmine-user-10-QKQ1.190910.002-V11.0.4.0.QDIMIXM-release-keys

Change-Id: I11280aa50fdbdd6451cc051d8d6d936f20ebccb3
2020-01-13 14:35:53 +01:00
Max Weffers
5d39827818
sdm660: parts: Rename hall prop to folio_daemon prop
*needed to prevent neverallow in user builds
2020-01-04 09:37:09 +01:00
ramandeep trehan
f7dd88877b
sdm660-common: Start qseecom daemon as early as possible for FBE
Qseecom needs to start at earlier stage for FBE to work properly.

* Wait for prop moved to device as we have still oreo qseecom devices with different prop name

Change-Id: Ie2408f652df291ad6a1b0dee1e4d559ff35c7c45
Signed-off-by: Ramandeep Trehan <rtrehan@codeaurora.org>
2020-01-02 11:46:29 +01:00
Author Nitesh Kataria
9f7368611b
post_boot : Syntax fix
Change-Id: I048fc014976ca16dfe94d1a972ecec7fca35e015
Signed-off-by: Nitesh Kataria <nkataria@codeaurora.org>
2019-12-16 18:31:38 +01:00
Rajashekar Adi
210e379088
Power: post boot: Enable conservative pl for atoll
Enable sched_conservative_pl for atoll

Change-Id: I8526c2703d50693041dca516fa0bd97d7b8a43f2
2019-12-16 18:31:25 +01:00
Sriharsha Allenki
36daa25b8b
init.qcom.usb.sh: Set USB default composition to 90DB
This change makes 90DB (interfaces: diag,dun,rmnet,dpl,qdss,adb)
as default usb composition on bengal.

Change-Id: If83a356219f802e8960c7d341296f3a7b3641e68
2019-12-16 18:30:01 +01:00
Viraja Kommaraju
c5b732e9a7
common: add KPI marker at start of ADSP
Add KPI marker to indicate the start of ADSP
mount.

Change-Id: Ifb2dfbb3717614bec542ab8545cdb0a6d8ae2b38
2019-12-16 18:29:21 +01:00
richagar
3ac15ebd13
Added bengal to init.qcom.post_boot.sh
Added bengal to post_boot to enable prop
vendor.post_boot.parsed

Change-Id: If1a2dcef4d7999a0b93574a24a212cd339cea76e
2019-12-16 18:29:06 +01:00
Vijayakumar Badiger
3882e725f8
add sdmshrike sku changes
Change-Id: I4b30e3600858eabc488ca13f80cff457d0e80b59
2019-12-16 18:25:11 +01:00
Maryia Maskaliova
8df20abf05
Modifying /sys/block nodes:
Setting dm-2 read_ahead_kb to 512 on boot completed

Change-Id: I7542a23e5f9197a5faa7ad20e4d18634780d13c9
2019-12-16 18:24:55 +01:00
Kishore Sri venkata Ganesh Bolisetty
484c827034
post_boot: update silver Fmin to 691M on kona
update silver Fmin to 691M on kona.

Change-Id: Ibbe72b27ddb03001235ed67c2a4ce9d2d53da4a0
2019-12-16 18:24:16 +01:00
Sanjeev Jakkilinki
6d9aa9ce2c
init.qcom.post_boot: initialize the tuning settings for bengal
perf/power tuning settings related sched and dcvs.

Change-Id: Ife99c2a6e5e6160851a11c44f053aae445665faf
2019-12-16 18:23:47 +01:00
Tharun Kumar Merugu
4cfd0a8294
init.qcom.post_boot.sh: Enable cdspl3 governor for atoll
CDSP subsytem uses rpmsg to send CPU L3 clock requests via cdspl3
governor. Use cdspl3 as the governor for CDSP L3 devfreq node for
serving CDSP L3 clock requests.

Change-Id: I49ad421811affa82458abd34d0a0851e1f1fc423
2019-12-16 18:22:45 +01:00
Author Nitesh Kataria
af748b5a6f
post_boot : Add cases for sdmshrike
Adding cases for sdmshrike to enable clocks
for APPS Power collapse.

Change-Id: I089556c1098d60022bdb3de1ec2024858f0d3b30
Signed-off-by: Nitesh Kataria <nkataria@codeaurora.org>
2019-12-16 18:22:12 +01:00
Gidon Studinski
dd63456a82
common: init: expose /dev/wigig_sensing device node to user space
/dev/wigig_sensing is the entry point to an SPI kernel driver which is a
part of a remote sensing solution using 60GHz HW.

Change-Id: I1b538e0c58ae784997407f91a7647c2188ee7d58
2019-12-16 18:21:06 +01:00
Ajay Agarwal
9c7d9c20bb
init.msm.usb.configfs.rc: Add support for USB PID 0x9020
0x9020 composition includes DIAG + ADB + DUN + NMEA. Add support
for the same.

Change-Id: I364d4e87b63d7e5dfb394db6e92e650764b7cc96
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-12-16 18:19:42 +01:00
Xiaojun Sang
42583ca43e
sdm660: add aud_pasthru_adsp access for audio
Change-Id: If4cb96e00ccfaff60b08c42d92370cb46fbb9a0e
2019-12-16 18:19:13 +01:00
Vijay Dandiga
b68ab8e7a9
post_boot: Set zRam disk size to 50% of RAM size.
Set zRam disk size to 50% of RAM size for non-Go devices.

Change-Id: Ifd015f7827db8ed9388833ec09627898e20fd209
2019-12-16 18:18:06 +01:00
Arne Coucheron
aeaffc4a19
sdm660-common: Change charger seclabel from healthd to charger
Change-Id: I86515de0f8ac1ae4d8d83dae7638592a619a3e7c
2019-12-14 23:20:16 +01:00
Stylogey
25dadea83b
sdm660-common: XiaomiParts: Start folio_daemon only if a prop is set 2019-12-13 16:57:53 +01:00
Michael Bestas
540804fce2
sdm660-common: Resolve vendor_init SELinux denials 2019-12-07 18:49:55 +01:00
Michael Bestas
9dc9da4d21
sdm660-common: Cleanup init.qcom.sh
* Remove unused SoCs from the script
* Remove qemu.hw.mainkeys to avoid SELinux denials
2019-12-07 18:49:55 +01:00
Arian
4729f1a854
sdm660-common: rootdir: Move ims service declarations to their own rc files
Change-Id: I1546d673c3d7e19bef8ada817fa6d32671541400
2019-12-02 17:22:37 +01:00
EnesSastim
14897802e8
sdm660-common: Update TimeService from LA.UM.8.2.r1-04300-sdm660.0
Signed-off-by: EnesSastim <sastimenes@gmail.com>
2019-11-14 17:12:03 +01:00
Max Weffers
f1d116fc9d
sdm660-common: Update init.class_main.sh from LA.UM.8.2.r1-04800-sdm660 2019-11-12 18:12:21 +01:00
Pavan Kumar M
843c0ae901
sdm660-common: FR 53051: Self Contained Module
Desc: Remove cnd, dpmQmiMgr daemon

Change-Id: I741a951bf71f72db009ddde94991aa876705b99a
2019-11-12 18:12:20 +01:00