sm8150-common: Drop SSR blobs and set SSR restart_level in init.qcom.rc

Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
This commit is contained in:
LuK1337 2019-07-11 15:32:52 +02:00
parent 9dbf024f6f
commit a8f1b12048
5 changed files with 24 additions and 7 deletions

View File

@ -1531,10 +1531,6 @@ vendor/etc/init/vendor.qti.hardware.soter@1.0-service.rc
vendor/lib64/hw/vendor.qti.hardware.soter@1.0-impl.so
vendor/lib64/vendor.qti.hardware.soter@1.0.so
# SSR
vendor/bin/ssr_setup
vendor/bin/subsystem_ramdump
# Thermal
vendor/bin/thermal-engine
vendor/etc/thermal-engine.conf

View File

@ -49,7 +49,6 @@ on property:persist.vendor.oem.dump=1
write /sys/kernel/dload/dload_mode full
write /sys/kernel/dload/emmc_dload 0
write /proc/otrace_on 7978
write /proc/restart_level_all 1
write /proc/sys/kernel/printk "4 6 1 7"
on property:persist.vendor.oem.dump=0
@ -57,7 +56,6 @@ on property:persist.vendor.oem.dump=0
write /sys/kernel/dload/dload_mode mini
write /sys/kernel/dload/emmc_dload 1
write /proc/otrace_on 0
write /proc/restart_level_all 0
write /proc/sys/kernel/printk "1 6 1 7"
on property:sys.oem.aging_test=1

View File

@ -80,6 +80,17 @@ on early-boot
write /sys/kernel/boot_slpi/boot 1
exec u:r:qti_init_shell:s0 -- /vendor/bin/init.qcom.early_boot.sh
# SSR Setup
write /sys/bus/msm_subsys/devices/subsys0/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys1/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys2/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys3/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys4/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys5/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys6/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys7/restart_level RELATED
write /sys/bus/msm_subsys/devices/subsys8/restart_level RELATED
# for backward compatibility
chown system system /persist/sensors
chown system system /persist/sensors/registry

View File

@ -1,12 +1,21 @@
genfscon proc /sensor u:object_r:proc_sensor:s0
genfscon proc /touchpanel u:object_r:proc_touchpanel:s0
genfscon proc /ultrasound u:object_r:proc_ultrasound:s0
genfscon sysfs /devices/platform/soc/17300000.qcom,lpass/subsys1/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/188101c.qcom,spss/subsys3/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/4080000.qcom,mss/subsys0/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/5c00000.qcom,ssc/subsys2/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/8300000.qcom,turing/subsys5/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/89c000.i2c/i2c-2/2-005a/leds/vibrator u:object_r:sysfs_vibrator:s0
genfscon sysfs /devices/platform/soc/9800000.qcom,npu/subsys4/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/aae0000.qcom,venus/subsys6/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/aod u:object_r:sysfs_aod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/aod_disable u:object_r:sysfs_aod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/dim_alpha u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/op_friginer_print_hbm u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_aod u:object_r:sysfs_aod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_dim u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_fppress u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/op_friginer_print_hbm u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm8150@0:qcom,pm8150_rtc/rtc u:object_r:sysfs_rtc:s0
genfscon sysfs /devices/platform/soc/soc:qcom,ipa_fws/subsys7/restart_level u:object_r:sysfs_ssr_toggle:s0
genfscon sysfs /devices/platform/soc/soc:qcom,kgsl-hyp/subsys8/restart_level u:object_r:sysfs_ssr_toggle:s0

View File

@ -4,6 +4,9 @@ allow vendor_init ion_device:chr_file rw_file_perms;
# Allow vendor_init to read and write to tee_device
allow vendor_init tee_device:chr_file rw_file_perms;
# Allow vendor_init to write to sysfs_ssr_toggl
allow vendor_init sysfs_ssr_toggle:file w_file_perms;
# Allow init to create tmpfs
allow vendor_init tmpfs:dir create_dir_perms;