Commit Graph

94 Commits

Author SHA1 Message Date
Georg Veichtlbauer
016949aaa4 sm6150-common: Remove max ZRAM compression streams setting
Kernels >4.7 will create a comp stream for each online CPU
and ignore /sys/block/max_compression_streams. This has been
backported to many 4.4 kernels as well.

Any device running a kernel with the upstream commit can safely remove
the parameter.

Upstream commit: 43209ea2d1

Change-Id: Ibb29b54a31f0fb5bd941d7709d15d571dd77ebf5
2023-06-05 11:38:04 +02:00
Alexander Koskovich
587bd40505 sm6150-common: init: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2023-06-05 11:38:04 +02:00
Noonlord
b670e7124d sm6150-common: rootdir: Setup file permissions for fpc
* These are used by courbet/surya/sweet

Change-Id: I605f305ab30fdbc3dd0a3afc6375cd039e5e8117
2023-01-17 07:01:07 +00:00
Mohammed Mirza Mandayappurath Manzoor
6586917049 sm6150-common: rootdir: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2022-06-28 00:41:07 +02:00
Varun Arora
6c79c4001d sm6150-common: rootdir: Set system graphics to power control node
Add ueventd entry to change UID and GUID when node is created

Change-Id: I721b30678a4d763d66cc5068aaea97e08ac13f7b
2022-06-28 00:41:07 +02:00
Hoss Zhou
3a3b9ce92a sm6150-common: rootdir: Add edgnss socket directory
Change-Id: Ia8d89cb1e03c31fdb8fb7564441386f56c9563e1
CRs-Fixed: 2881831
2022-06-28 00:41:07 +02:00
Rajeshwar Kurapaty
f87adf6a79 sm6150-common: rootdir: Set Netflix 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: Ieccd17128f1b73c819a3f33816eb8c402cfa17e2
2022-06-28 00:41:07 +02:00
Ashish Bhimanpalliwar
9e0dad8886 sm6150-common: rootdir: Increase the console log level
Increase the log level to '4', which would only log KERN_ERR
and lower, onto the console.Earlier it was incorrectly reduced
to 3 which would only log KERN_CRIT and lower.

Fixes: 06b604b6bef40abdb4b507fc13debb2146a922e1("Decrease the console log level")
Change-Id: Ic87d037450dd49138c3208e1b9f844469550364b
2022-06-28 00:41:07 +02:00
Raghavendra Rao Ananta
9aa8c4c9c5 sm6150-common: rootdir: Decrease the console log level
Decrease the log level to '3', which would only log KERN_ERR
and lower, onto the console. This is to avoid false-positives
in the test cases that may emit excessive logs, ultimately
leading to a watchdog bark.

Change-Id: I7967272de8e425e93035cd937982bfb3aee19597
2022-06-28 00:41:07 +02:00
Arvind Kumar
57d5f1f1d4 sm6150-common: Set soc properties
Set soc model and manufacturer properties

Change-Id: Ieee34b7bfab87b241abc5ed3318b46a5c6f93456
2022-06-28 00:41:07 +02:00
Bruno Martins
cc3ba5c9c2 sm6150-common: Move to common fingerprint HIDL
Change-Id: I7cb0a45c865d9dbfd800b1d633f8d5ae613bb1b9
2022-06-28 00:41:07 +02:00
Felix
a13246a7fc sm6150-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
2022-03-27 13:38:12 +02:00
YH_Lin
997e8f03cd
sm6150-common: fstab: Correct zram parameter names
[libfs_mgr]Warning: unknown flag: zram_loopback_path=/data/per_boot/zram_swap
[libfs_mgr]Warning: unknown flag: zram_loopback_size=512M

We don't use zram_loopback_path any longer so remove it.
We also changed zram_loopback_size with zram_backingdev_size so correct it.

Bug: 145330273
Bug: 145116439
Test: confirmed there is no warning and zram backing device was configured

Change-Id: I51be34c59203813a2f493eee6ab442c9940b75d7
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: YH_Lin <yhli@google.com>
2021-08-06 19:27:29 +02:00
YH_Lin
30494c543a
sm6150-common: fstab: Switch zram swap to /data/per_boot
Put zram writeback backing store into /data/per_boot

Bug: 144354600
Bug: 140882488

Change-Id: I405bc12d4b90b9f236deba23c7c8973311ad7bf4
Signed-off-by: YH_Lin <yhli@google.com>
2021-08-06 19:26:28 +02:00
Jenhao Chen
9010fc737d
sm6150-common: Enable zram writeback
Bug: 128889899
Test: Boot to home

Change-Id: I48ae06e54a66a7d6965afbe8db3d2f157cf8a1f4
2021-08-06 19:25:07 +02:00
Tim Murray
560aefb174
sm6150-common: Increase ZRAM to 2GB
Test: boots, works
bug 119988524

Change-Id: I09272e7c753569d16f2be0771835bfdbdc0bf270
2021-07-23 22:59:07 +02:00
Wei Wang
73becf7452
sm6150-common: Tune zram performance
-Switch to LZ4 for better overall performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.
-Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2021-07-23 22:54:56 +02:00
Adithya R
b2d8bf6c26
sm6150-common: Configure zram from separate fstab
Change-Id: I3d093f06b08ad1cc049325d0136b60cab70c29d0
2021-07-23 22:53:14 +02:00
Arian
a73e27936f
sm6150-common: Set permissions on /dev/xiaomi-touch
Change-Id: I94f9b64f983098b6497ffcdee9817c72d471528f
2021-07-13 22:13:56 +02:00
Arian
10f101e143
sm6150-common: parts: Enable doze_status on screen off
* This allows to enter the doze state faster when unlocking from lockscreen

Change-Id: I1900436c974a605555275ef67b283ead2cf720b5
2021-07-03 21:23:39 +02:00
Arian
727405d31d
sm6150-common: parts: Implement doze modes and auto brightness
Change-Id: I03888d1997b09cb539952dfed935a7ace5e3444c
2021-07-03 21:23:14 +02:00
Arian
87351664e4
Revert "sm6150-common: rootdir: Override power HAL service and add input group"
This reverts commit 585f60615e881235e35ad042d6fe73c854f26ffd.

Change-Id: Ib97effba6f25e0adb787d903d5c55229a64b4862
2021-06-18 18:37:35 +02:00
Wei Wang
fe82d2824b
sm6150-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-06-18 18:37:26 +02:00
Dhananjay Kumar
a25e0e9265
sm6150-common: rootdir: Update audio hal service override as per latest base service definition
Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
2021-06-18 18:32:31 +02:00
Arian
a75fe3e862
Revert "davinci: rootdir: Stop overriding audio hal 2.0 service"
This reverts commit 80bafc10ee.

Change-Id: I0d5d967d2a4a57c762abbcd34cda50efb686a0c3
2021-06-18 18:32:31 +02:00
raghavt20
6d7d3b5096
sm6150-common: Remove hard-code for ro.boot.bootdevice 2021-06-18 18:32:31 +02:00
Adithya R
2bd715b223
sm6150-common: rootdir: Add IR nodes to ueventd
Change-Id: I96b52f810a5e8e8ab7ec5e1335923e6622f2294d
2021-06-18 18:32:31 +02:00
raghavt20
876d672a65
sm6150-common: Add FRP permissions for violet
Change-Id: I1a6813962c5b08a39843d669333040beae57ec69
2021-06-18 18:32:30 +02:00
Arian
69b52a2a9a
Revert "Revert "davinci: rootdir: Import coral fs tuning""
This reverts commit bbe34cefca.

Change-Id: If98a6d1d2db3457555ac0908fe1d048ab84c830e
2021-06-18 18:21:34 +02:00
Arian
70a7144540
sm6150-common: rootdir: Update init.qcom.post_boot.sh from V12.1.4.0.RFNMIXM
Change-Id: Ibe75929017a2c19a2bdbde24477fb9f35b88f45d
2021-06-18 18:21:34 +02:00
raghavt20
8f7a271791
Revert "davinci: rootdir: Move simple writes from post_boot script to init.target.rc"
This reverts commit fc27e74506.
2021-06-18 18:21:34 +02:00
Arian
4438bf7184
sm6150-common: rootdir: Setup file permissions on IR spi node
Change-Id: Ie727041f464bcb11c7032cdc50a2b18b38367d93
2021-06-18 18:21:16 +02:00
Arian
1b9073260d
sm6150-common: rootdir: Setup file permissions on mius iio devices
Change-Id: Id5301d3c001f2e656da3c462a6576d2d24737a18
2021-06-18 18:19:30 +02:00
Arian
8d466d7b88
sm6150-common: rootdir: Override power HAL service and add input group
* This allows to access /dev/input/event* which is required for DT2W.

Change-Id: Idbab93138ba3221338413283552004d92e8ef333
2021-04-25 15:23:51 +02:00
Arian
bb69958805
sm6150-common: rootdir: Setup all permissions for left, right and white LEDs
Change-Id: Id49a80bb2d55186ed908962d90e0be3d90e1acdf
2021-04-25 15:23:51 +02:00
Arian
264c3a5ca8
Revert "davinci: rootdir: Drop led permissions from ueventd"
This reverts commit 688407d50e.

Change-Id: I30ee38523f5ab05e8ca6101522062fdd99e91280
2021-04-25 15:23:51 +02:00
raghavt20
0aa378102c
sm6150-common: Transform davinci into common tree
* The following things are left in devices, because they're device specific
  - voip compress properties
  - HVDCP properties
  - audio configs
  - power profile
  - rounded corner configuration
  - partition configuration
  - FOD
  - camera motor
  - NFC
  - board-info
  - fstab
  - ipa and graphics firmware
  - shipping and manifest target level

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I8bef29041f8f239361b999fc8ab1a43cc2ebb86b
2021-04-25 15:18:14 +02:00
Saurabh Shah
18b33141f9
davinci: rootdir: init.qcom.rc: Add owners for brightness nodes
Add owners for new lcd brightness and max_brightness node
/sys/class/backlight/panel0-backlight/brightness
/sys/class/backlight/panel0-backlight/max_brightness

Change-Id: I939ed22dc880a3536d95b397dbc7bed9288bc5df
2021-04-25 14:49:59 +02:00
Arian
8f53f7de33
davinci: Switch to AOSP NFC stack
Change-Id: I537729ac9262edd3b741380bba74e46e8a588eaf
2021-04-25 14:49:59 +02:00
Alistair Delva
5002ab418f
davinci: rootdir: Enable inline encryption
Bug: 137270441
Change-Id: I8fb8822a5f19f3908b662181495550e60d80a3f3
2021-04-25 14:49:59 +02:00
Arian
b14ec9ced2
davinci: rootdir: Check persist
Change-Id: Ifc66f4ff386ef3fd01eb10ebe7d105ff9f18127b
2021-04-25 14:49:59 +02:00
Arian
571735465a
davinci: rootdir: Update init.qcom.usb.rc from 20.10.22
Change-Id: I56697dc48c431bd9c6a13a8d0ff1bf16395cd354
2020-12-30 02:02:58 +01:00
Arian
e6ae9c1b27
davinci: rootdir: Update init.qcom.post_boot.sh from 20.10.22
Change-Id: I1e1405fc24d8670b096c860178f714fbbe906de1
2020-12-30 02:02:58 +01:00
Arian
b80df2fd39
davinci: Build nxp nfc 2.0 service
Change-Id: I75af5a56973c5024ab8c748b4fb27023de0ba632
2020-12-30 02:02:58 +01:00
Can Guo
5b03779a63
davinci: rootdir: Change ownership of UFS RPMB bsg node
Change ownership of UFS RPMB bsg node so that TZ RPMB service
can open this node without root permissions.

Change-Id: I285e2ae26094677d91ad8486457af86e7aaabbb9
2020-12-30 02:02:57 +01:00
Gopal Iyer
7f24df3762
davinci: rootdir: init.qcom.rc: Tuning UFS clock scaling during boot time
Disabling UFS clock scaling during boot time helps in reducing
IO delays, which helps in reducing the total boot time.
This change will disable UFS clock scaling during early-init and
enable it back after boot completion.

Change-Id: Ib3490a8155610aea399ac2f63aa4a71bee299c6e
2020-12-30 02:02:57 +01:00
Varun Arora
105ff74f42
davinci: rootdir: init: Change sysfs control node to system:graphics
Change to system graphics from root

Change-Id: Ida479fc4fd2b442efd7f7fae79e7462a349fee17
2020-12-30 02:02:57 +01:00
Prateek Sood
cecea925c5
davinci: rootdir: init.qcom.rc: Add support for tracefs when !CONFIG_DEBUG_FS
Mount of tracefs in /sys/kernel/debug/tracing will fail when DEBUG_FS
is disabled. So, mount tracefs in /sys/kernel/tracing to still use all the
tracing abilities when CONFIG_DEBUG_FS is disabled

Change-Id: Ib37332c3f1108d7c4798717f0f009c891db72850
2020-12-30 02:02:57 +01:00
Sayali Lokhande
030be3a5f8
davinci: rootdir: init.qcom.rc: limit discard size to 128MB
This change limits discard size for UFS(sda)
to 128MB in order to avoid long IO latency.

Change-Id: Iccf6f7561abaac13bc8c35b03f696cdf56c184ee
2020-12-30 02:02:57 +01:00
Sayali Lokhande
c97c7e6a6f
davinci: rootdir: init.qcom.rc: Remove tftp and rmt_storage service definitions
This changes removes tftp and rmt storage service definitions
from main .rc file as these services are defined in respective
local .rc files.

Change-Id: Ibbd1fda31b7fd950590d6a15b7aca3bb08d84f4b
2020-12-30 02:02:57 +01:00