sm7250-common: rootdir: Update scripts from LA.UM.9.12.r1-14200-SMxx50.QSSI13.0
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com> Signed-off-by: aswin7469 <aswinas@pixysos.com>
This commit is contained in:
committed by
Sandeep P S
parent
ea3a9386c9
commit
60b91c0696
@@ -1,6 +1,6 @@
|
|||||||
#! /vendor/bin/sh
|
#! /vendor/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2012-2013,2016,2018-2020 The Linux Foundation. All rights reserved.
|
# Copyright (c) 2012-2013,2016,2018-2021 The Linux Foundation. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions are met:
|
# modification, are permitted provided that the following conditions are met:
|
||||||
@@ -370,9 +370,7 @@ case "$target" in
|
|||||||
setprop vendor.display.enhance_idle_time 1
|
setprop vendor.display.enhance_idle_time 1
|
||||||
setprop vendor.netflix.bsp_rev ""
|
setprop vendor.netflix.bsp_rev ""
|
||||||
;;
|
;;
|
||||||
*)
|
518)
|
||||||
# default case is for bengal
|
|
||||||
setprop vendor.netflix.bsp_rev "Q6115-31409-1"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -1101,6 +1101,36 @@ case "$target" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# For Kodiak target for which cdsp is defective, we read remote cdsp status from fastrpc node
|
||||||
|
# and if its value is false we disable cdsp daemon by setting the cdsp disable propety to true
|
||||||
|
case "$target" in
|
||||||
|
"lahaina")
|
||||||
|
if [ -f /sys/devices/soc0/chip_family ]; then
|
||||||
|
chip_family_id=`cat /sys/devices/soc0/chip_family`
|
||||||
|
else
|
||||||
|
chip_family_id=-1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "adsprpc : chip_family_id : $chip_faily_id" > /dev/kmsg
|
||||||
|
|
||||||
|
case "$chip_family_id" in
|
||||||
|
"0x76")
|
||||||
|
if [ -f /sys/devices/platform/soc/soc:qcom,msm_fastrpc/remote_cdsp_status ]; then
|
||||||
|
remote_cdsp_status=`cat /sys/devices/platform/soc/soc:qcom,msm_fastrpc/remote_cdsp_status`
|
||||||
|
else
|
||||||
|
remote_cdsp_status=-1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "adsprpc : remote_cdsp_status : $remote_cdsp_status" > /dev/kmsg
|
||||||
|
|
||||||
|
if [ $remote_cdsp_status -eq 0 ]; then
|
||||||
|
setprop vendor.fastrpc.disable.cdsprpcd.daemon 1
|
||||||
|
echo "adsprpc : Disabled cdsp daemon" > /dev/kmsg
|
||||||
|
fi
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$target" in
|
case "$target" in
|
||||||
"msm7201a_ffa" | "msm7201a_surf")
|
"msm7201a_ffa" | "msm7201a_surf")
|
||||||
echo 500000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
echo 500000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
||||||
@@ -4256,7 +4286,7 @@ case "$target" in
|
|||||||
|
|
||||||
#power/perf tunings for khaje
|
#power/perf tunings for khaje
|
||||||
case "$soc_id" in
|
case "$soc_id" in
|
||||||
"518" )
|
"518" | "561")
|
||||||
|
|
||||||
# Core control parameters on big
|
# Core control parameters on big
|
||||||
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
|
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
|
||||||
@@ -4347,6 +4377,10 @@ case "$target" in
|
|||||||
# Turn off scheduler boost at the end
|
# Turn off scheduler boost at the end
|
||||||
echo 0 > /proc/sys/kernel/sched_boost
|
echo 0 > /proc/sys/kernel/sched_boost
|
||||||
|
|
||||||
|
echo N > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/idle_enabled
|
||||||
|
echo N > /sys/module/lpm_levels/system/perf/perf-l2-gdhs/idle_enabled
|
||||||
|
echo N > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/suspend_enabled
|
||||||
|
echo N > /sys/module/lpm_levels/system/perf/perf-l2-gdhs/suspend_enabled
|
||||||
# Turn on sleep modes
|
# Turn on sleep modes
|
||||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||||
|
|
||||||
@@ -5224,6 +5258,29 @@ esac
|
|||||||
|
|
||||||
case "$target" in
|
case "$target" in
|
||||||
"msmnile")
|
"msmnile")
|
||||||
|
# cpuset parameters
|
||||||
|
target_varient=`getprop ro.build.product`
|
||||||
|
if [ "$target_varient" == "msmnile_gvmq" ]; then
|
||||||
|
echo 4-7 > /dev/cpuset/background/cpus
|
||||||
|
echo 4-7 > /dev/cpuset/system-background/cpus
|
||||||
|
|
||||||
|
# Enable oom_reaper
|
||||||
|
if [ -f /sys/module/lowmemorykiller/parameters/oom_reaper ]; then
|
||||||
|
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
|
||||||
|
else
|
||||||
|
echo 1 > /proc/sys/vm/reap_mem_on_sigkill
|
||||||
|
fi
|
||||||
|
# Disable wsf, beacause we are using efk.
|
||||||
|
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||||
|
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||||
|
|
||||||
|
# Disable wsf, beacause we are using efk.
|
||||||
|
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||||
|
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||||
|
# Enable oom_reaper
|
||||||
|
echo 1 > /proc/sys/vm/reap_mem_on_sigkill
|
||||||
|
|
||||||
|
else
|
||||||
# Core control parameters for gold
|
# Core control parameters for gold
|
||||||
echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
|
echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
|
||||||
echo 60 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres
|
echo 60 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres
|
||||||
@@ -5255,14 +5312,11 @@ case "$target" in
|
|||||||
echo 85 85 > /proc/sys/kernel/sched_downmigrate
|
echo 85 85 > /proc/sys/kernel/sched_downmigrate
|
||||||
echo 100 > /proc/sys/kernel/sched_group_upmigrate
|
echo 100 > /proc/sys/kernel/sched_group_upmigrate
|
||||||
echo 10 > /proc/sys/kernel/sched_group_downmigrate
|
echo 10 > /proc/sys/kernel/sched_group_downmigrate
|
||||||
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
|
|
||||||
|
|
||||||
# cpuset parameters
|
|
||||||
echo 0-3 > /dev/cpuset/background/cpus
|
echo 0-3 > /dev/cpuset/background/cpus
|
||||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
echo 0-3 > /dev/cpuset/system-background/cpus
|
||||||
|
|
||||||
# Turn off scheduler boost at the end
|
|
||||||
echo 0 > /proc/sys/kernel/sched_boost
|
|
||||||
|
|
||||||
# configure governor settings for silver cluster
|
# configure governor settings for silver cluster
|
||||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
|
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
|
||||||
@@ -5294,9 +5348,6 @@ case "$target" in
|
|||||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||||
echo 1 > /proc/sys/vm/watermark_scale_factor
|
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||||
|
|
||||||
echo 0-3 > /dev/cpuset/background/cpus
|
|
||||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
|
||||||
|
|
||||||
# Enable oom_reaper
|
# Enable oom_reaper
|
||||||
if [ -f /sys/module/lowmemorykiller/parameters/oom_reaper ]; then
|
if [ -f /sys/module/lowmemorykiller/parameters/oom_reaper ]; then
|
||||||
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
|
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
|
||||||
@@ -5356,6 +5407,10 @@ case "$target" in
|
|||||||
echo 0 > /sys/devices/virtual/npu/msm_npu/pwr
|
echo 0 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
# Turn off scheduler boost at the end
|
||||||
|
echo 0 > /proc/sys/kernel/sched_boost
|
||||||
|
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
|
||||||
|
|
||||||
# memlat specific settings are moved to seperate file under
|
# memlat specific settings are moved to seperate file under
|
||||||
# device/target specific folder
|
# device/target specific folder
|
||||||
@@ -5403,7 +5458,6 @@ case "$target" in
|
|||||||
configure_automotive_sku_parameters
|
configure_automotive_sku_parameters
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||||||
/dev/smd2 0660 bluetooth bluetooth
|
/dev/smd2 0660 bluetooth bluetooth
|
||||||
/dev/smd3 0660 bluetooth bluetooth
|
/dev/smd3 0660 bluetooth bluetooth
|
||||||
/dev/btpower 0660 bluetooth system
|
/dev/btpower 0660 bluetooth system
|
||||||
|
/dev/btfmslim 0660 bluetooth system
|
||||||
|
|
||||||
#permissions for pta
|
#permissions for pta
|
||||||
/dev/pta 0660 system system
|
/dev/pta 0660 system system
|
||||||
@@ -182,31 +183,8 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||||||
#qvr
|
#qvr
|
||||||
/dev/qvr_external_sensor_ioctl 0660 system system
|
/dev/qvr_external_sensor_ioctl 0660 system system
|
||||||
/sys/kernel/qvr_external_sensor/fd 0660 system system
|
/sys/kernel/qvr_external_sensor/fd 0660 system system
|
||||||
/dev/bus/usb/001/002 0660 system system
|
/dev/bus/usb/* 0660 root usb
|
||||||
/dev/bus/usb/001/003 0660 system system
|
/dev/hidraw* 0660 root usb
|
||||||
/dev/bus/usb/001/004 0660 system system
|
|
||||||
/dev/bus/usb/001/005 0660 system system
|
|
||||||
/dev/bus/usb/002/002 0660 system system
|
|
||||||
/dev/bus/usb/002/003 0660 system system
|
|
||||||
/dev/bus/usb/002/004 0660 system system
|
|
||||||
/dev/bus/usb/002/005 0660 system system
|
|
||||||
/dev/bus/usb/003/002 0660 system system
|
|
||||||
/dev/bus/usb/003/003 0660 system system
|
|
||||||
/dev/bus/usb/003/004 0660 system system
|
|
||||||
/dev/bus/usb/003/005 0660 system system
|
|
||||||
/dev/hidraw0 0660 system system
|
|
||||||
/dev/hidraw1 0660 system system
|
|
||||||
/dev/hidraw2 0660 system system
|
|
||||||
/dev/hidraw3 0660 system system
|
|
||||||
/dev/hidraw4 0660 system system
|
|
||||||
/dev/hidraw5 0660 system system
|
|
||||||
/dev/hidraw6 0660 system system
|
|
||||||
/dev/hidraw7 0660 system system
|
|
||||||
/dev/hidraw8 0660 system system
|
|
||||||
/dev/hidraw9 0660 system system
|
|
||||||
|
|
||||||
# bug 550748,zhanghaibin1@wt,20200509,Add hardware_info
|
|
||||||
/dev/hardwareinfo 0660 root system
|
|
||||||
|
|
||||||
# wlan
|
# wlan
|
||||||
/dev/wcnss_wlan 0660 system system
|
/dev/wcnss_wlan 0660 system system
|
||||||
@@ -445,7 +423,6 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||||||
/sys/class/graphics/fb0 modes 0664 system graphics
|
/sys/class/graphics/fb0 modes 0664 system graphics
|
||||||
/sys/class/graphics/fb0 mode 0664 system graphics
|
/sys/class/graphics/fb0 mode 0664 system graphics
|
||||||
/sys/class/graphics/fb0 msm_cmd_autorefresh_en 0664 system graphics
|
/sys/class/graphics/fb0 msm_cmd_autorefresh_en 0664 system graphics
|
||||||
*/
|
|
||||||
|
|
||||||
/sys/devices/platform/soc/ae00000.qcom,mdss_mdp power/control 0664 system graphics
|
/sys/devices/platform/soc/ae00000.qcom,mdss_mdp power/control 0664 system graphics
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user