Commit Graph

73 Commits

Author SHA1 Message Date
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
506cf92d7a
sm6150-common: rootdir: Support more soc-id's
Change-Id: I80e2ccf5a3e5b15d9a527f9a7c4e3ee06b997ab6
2021-06-18 18:21:34 +02:00
Arian
a54ae83f4c
sm6150-common: rootdir: Prepare for different soc_id's
Change-Id: I08bd87247ae937fe465b8cfd1d7d8e24950d9c4b
2021-06-18 18:21:34 +02:00
Arian
0af4075687
Revert "davinci: rootdir: Remove sleep_disabled switch during boot"
This reverts commit 5129977612.

Change-Id: Ib2c6b666191cec45992996465b2d355df5ba1c10
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
Sandeep Neerudu
cab75e2db6
davinci: rootdir: sensors : remove sensors specific boot up commands from init.qcom.rc
move sensors specific boot up commands from global init.qcom.rc to component

specific rc files , which are part of individual component projects.

Change-Id: Ib0410cd0af8d77573bd320063982b504b1b1d1d5
2020-12-30 02:02:57 +01:00
Subbaraman Narayanamurthy
8ebb78dac5
davinci: rootdir: init.qcom.rc: add CAP_SYS_BOOT for charger
Add CAP_SYS_BOOT capability for charger service so that it can
shutdown/reboot the system.

Change-Id: I17ccba74d5a3c38bd751c55bcf42fb3689d730a7
2020-12-30 02:02:57 +01:00
Jun-Hyung Kwon
f064c2991c
davinci: rootdir: init.qcom.rc: add wakelock and BLOCK_SUSPEND to vendor.sensors
add wakelock group and BLOCK_SuSPEND capabilities to vendor.sensors
to acess wake-lock sysfs nodes

Change-Id: I193836d097f15f5bfbe1645909ae70f3f870f972
2020-12-30 02:02:57 +01:00
Subbaraman Narayanamurthy
a9303bcee9
davinci: rootdir: init.qcom.rc: Change user/group permission for for charger
Make charger binary run as system instead of root. Since it
needs to handle input key events, add input as a supplemental
group in addition to system and graphics.

Change-Id: Id1dc46f335087147b7d8cf674664c26f0b511de1
2020-12-30 02:02:57 +01:00
Prerna Kalla
ed256498c6
davinci: rootdir: Support ufs and emmc variant fstab files
Two fstabs are needed to support different data unit
number (dun) size for ufs and emmc hardwares. This
needs different encryption flag in fstab to address
the difference in dun size.

Change-Id: Ifb0e9132fc91e3281401ac49ad70c695a22c9df5
2020-12-30 02:02:57 +01:00
Jimmy Chen
8341c18fac
davinci: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-30 01:47:46 +01:00
Arian
9c8177ebfa
davinci: rootdir: Enable qcrild and data services instead of starting them
* Enabling the services allows them to start at their proper stage (class main)
* Enable them on boot to ensure they are enabled before class main starts

Change-Id: I71c3fcb72b38d247d304fda2fa6b2cc76baa0db2
2020-12-17 23:47:56 +01:00
Arian
8ab6135938
davinci: Start data services
* These modules are disabled by default and started by
  init.class_main.sh which we do not ship. Start them from init.qcom.rc
  on post-fs-data instead, just like qcrild.

Change-Id: Ifa907b5e33d8d3d08e64baaabfb8e3e450925e96
2020-12-17 23:31:16 +01:00
daniml3
4a06e932be
davinci: Disable NFC service for indian devices
Change-Id: I08e7955bf70adb15cbe5f8f8c3f226c05b135b27
2020-12-17 23:31:09 +01:00
Volodymyr Zhdanov
b41622fbac
davinci: rootdir: Don't configure zram in init.qcom.post_boot.sh
* let it use the size which is set in fstab

Change-Id: Ie84d0674a643e637d5ef894399d76ede25d00eeb
2020-11-28 18:12:03 +01:00
SVB
b40d5db28f
davinci: rootdir: Allow all filesystems for USB-OTG
Change-Id: Ie9cef57485c337c39bae559a71582b4c66127d85
2020-11-28 18:12:03 +01:00
Ethan Chen
450d2ccbf7
davinci: rootdir: Move services to system-background cgroup
Change-Id: Id80f6369f943fc5fc1145cc6f13bddb2fe2b76e8
2020-11-28 18:12:02 +01:00
Tim Murray
4a9fbc3467
davinci: rootdir: Add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2020-11-28 18:12:02 +01:00
Arian
f5bcf08199
davinci: rootdir: Use stock cpusets from init.davinci.rc
Change-Id: I91d4e504635445a2dea6f7f3835d80f46cbc942a
2020-11-28 18:12:02 +01:00
Arian
f18e17322f
davinci: rootdir: Drop powerkey input boost
Change-Id: I2675b72051bdb71d6faba17d59ad8f0281ec2e89
2020-11-28 18:12:02 +01:00
Arian
fc27e74506
davinci: rootdir: Move simple writes from post_boot script to init.target.rc
Change-Id: I512689bbdd77b9a998e7a5d6a2ee91cede599f44
2020-11-28 18:12:02 +01:00
Arian
bbe34cefca
Revert "davinci: rootdir: Import coral fs tuning"
This reverts commit 867af09b6b.

* The boot_completed settings are the default settings already
  and switching the settings while booting does not bring a
  noticeable improvement.

Change-Id: I7a61e2fa8558b074d5c3d7b19c548b4fde00d918
2020-11-28 18:12:02 +01:00
Arian
80bafc10ee
davinci: rootdir: Stop overriding audio hal 2.0 service
* Xiaomi adds the audio_hw_socket here, but it needs
  their changes in the audio HAL, hence it's useless
  for us.

Change-Id: Idf38468ad709623b60b694f458e71d0565ce6fb6
2020-11-28 18:12:02 +01:00
Arian
0a6db81b36
davinci: rootdir: Drop ssr_setup service
* missed in commit:
  66573bbfea
  davinci: Drop SSR blobs and set SSR restart_level in init.qcom.rc
  Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4

Change-Id: I5078d9579e894c0b1a7b30a2984b1ba096843e0e
2020-11-28 18:12:02 +01:00
Arian
fafcd0b549
davinci: rootdir: Don't setup runtime cpusets for silver only first
Change-Id: I7f9fa116971bd437bfe2722882282a08fe59c006
2020-11-28 18:12:02 +01:00
Arian
688407d50e
davinci: rootdir: Drop led permissions from ueventd
* Set the permissions we need from lights HAL

Change-Id: I93bc6cc0aab1d55f32b53a01df662fe5327c0199
2020-11-28 18:12:02 +01:00
Erfan Abdi
6e3b2395f6
davinci: Disable NFC for indian devices
* Setup davinci sku when device is global or chinese.
* Move the nfc manifest entry to davinci hardware sku
  variant.

Change-Id: I76ac75cd80f85efa6dfa68753602d934a11000a3
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-28 18:10:27 +01:00
Wei Wang
2a8a880cdb
davinci: 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
2020-11-23 20:44:37 +01:00
Arian
7ff9df129e
davinci: rootdir: Update zram size from V12.0.1.0.QFJMIXM and tweak swappiness and allocstall threshold
Change-Id: I70a19d48918ad0fc0d7ae7e5919779636fdaa0d4
2020-11-23 20:43:15 +01:00