From dc06ed987e983afe84ede8912ef16f53a0886c4b Mon Sep 17 00:00:00 2001 From: Ravishankar Sarawadi Date: Tue, 2 Apr 2013 18:56:29 -0700 Subject: [PATCH] SSR: Add Android property to support SSR readable string Add new Android properties to support individual subsystem restart. Change-Id: I79edfd9b56fadd1a7bb10bb9700b304900ce44c7 --- rootdir/etc/init.qcom.rc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) mode change 100644 => 100755 rootdir/etc/init.qcom.rc diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc old mode 100644 new mode 100755 index b95e5cb2..fc18b40b --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -667,11 +667,23 @@ service ssr_diag /system/bin/ssr_diag user system group system -# Limit to SoC reset (1) and independent SSR (3) +# Disable SSR to SoC restart on property:persist.sys.ssr.restart_level=1 write /sys/module/subsystem_restart/parameters/restart_level 1 + write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 0 + write /sys/bus/msm_subsys/devices/subsys0/restart_level system + write /sys/bus/msm_subsys/devices/subsys1/restart_level system + write /sys/bus/msm_subsys/devices/subsys2/restart_level system + write /sys/bus/msm_subsys/devices/subsys3/restart_level system + +# Enable SSR on property:persist.sys.ssr.restart_level=3 write /sys/module/subsystem_restart/parameters/restart_level 3 + write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 1 + 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 # Define fastmmi service fastmmi /system/bin/mmi