From 4ecd8f8eebaab37b00df09793b6f383334500cc2 Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Sun, 29 Nov 2020 13:53:56 -0700 Subject: [PATCH] common: init: Update from LA.UM.9.12.r1-09300-SMxx50.0. Change-Id: Ic33e7ec410bf9344202032fff045873b9b367950 --- init/init.qcom.early_boot.sh | 19 ++----------------- init/init.qcom.post_boot.sh | 3 +++ init/init.qcom.rc | 4 ++-- init/init.qcom.sh | 4 ++-- init/ueventd.qcom.rc | 1 + 5 files changed, 10 insertions(+), 21 deletions(-) diff --git a/init/init.qcom.early_boot.sh b/init/init.qcom.early_boot.sh index 351b5981..8a1d2bbb 100644 --- a/init/init.qcom.early_boot.sh +++ b/init/init.qcom.early_boot.sh @@ -262,10 +262,11 @@ case "$target" in log -t BOOT -p i "SDM429 early_boot prop set for: HwID '$soc_hwid'" fi ;; - 303|307|308|309|320) + 303|307|308|309|320|386|436) # Vulkan is not supported for 8917 variants setprop vendor.opengles.version 196608 setprop persist.graphics.vulkan.disable true + setprop vendor.gralloc.disable_ahardware_buffer 1 ;; *) setprop vendor.opengles.version 196608 @@ -397,22 +398,6 @@ case "$target" in ;; esac ;; - "lahaina") - case "$soc_hwid" in - 450) - setprop vendor.media.target_variant "_shima_v3" - sku_ver=`cat /sys/devices/platform/soc/aa00000.qcom,vidc/sku_version` 2> /dev/null - if [ $sku_ver -eq 1 ]; then - setprop vendor.media.target_variant "_shima_v1" - elif [ $sku_ver -eq 2 ]; then - setprop vendor.media.target_variant "_shima_v2" - fi - ;; - *) - setprop vendor.media.target_variant "_lahaina" - ;; - esac - ;; "holi") setprop vendor.media.target_variant "_holi" ;; diff --git a/init/init.qcom.post_boot.sh b/init/init.qcom.post_boot.sh index c5be8d3c..a4d64a9e 100644 --- a/init/init.qcom.post_boot.sh +++ b/init/init.qcom.post_boot.sh @@ -2823,6 +2823,9 @@ case "$target" in ;; esac + # Disable cdsprpcd daemon for sdm630 + setprop vendor.fastrpc.disable.cdsprpcd.daemon 1 + # Setting b.L scheduler parameters echo 85 > /proc/sys/kernel/sched_upmigrate echo 85 > /proc/sys/kernel/sched_downmigrate diff --git a/init/init.qcom.rc b/init/init.qcom.rc index 5e9bb5c0..6b4d6c14 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -176,9 +176,9 @@ on boot # an ack packet comes out of order write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 - # Set the console loglevel to < KERN_INFO + # Set the console loglevel to < KERN_WARN # Set the default message loglevel to KERN_INFO - write /proc/sys/kernel/printk "6 6 1 7" + write /proc/sys/kernel/printk "3 6 1 7" # Allow access for CCID command/response timeout configuration chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout diff --git a/init/init.qcom.sh b/init/init.qcom.sh index 02c03945..e5a4ae9b 100644 --- a/init/init.qcom.sh +++ b/init/init.qcom.sh @@ -456,10 +456,10 @@ buildvariant=`getprop ro.build.type` case "$buildvariant" in "userdebug" | "eng") #set default loglevel to KERN_INFO - echo "6 6 1 7" > /proc/sys/kernel/printk + echo "3 6 1 7" > /proc/sys/kernel/printk ;; *) #set default loglevel to KERN_WARNING - echo "4 4 1 4" > /proc/sys/kernel/printk + echo "3 4 1 4" > /proc/sys/kernel/printk ;; esac diff --git a/init/ueventd.qcom.rc b/init/ueventd.qcom.rc index 78fce700..ef425ce3 100644 --- a/init/ueventd.qcom.rc +++ b/init/ueventd.qcom.rc @@ -235,6 +235,7 @@ firmware_directories /vendor/firmware_mnt/image/ /dev/i2c-5 0660 media media /dev/avtimer 0660 system audio /dev/spidev2.0 0660 system audio +/dev/spidev22.0 0660 system audio # DVB devices /dev/dvb/adapter0/demux* 0440 media media