summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/Documentation/sysfs-bus-greybus
diff options
context:
space:
mode:
authorDavid Lin <dtwlin@google.com>2016-07-26 23:27:28 (GMT)
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-27 03:58:37 (GMT)
commit7c4a0edb38ba734bd89efbda4262698a58839c26 (patch)
treea0c4cfc896bbfc7d4198f71a75047e4279533569 /drivers/staging/greybus/Documentation/sysfs-bus-greybus
parent6136cce89ca5d344d5183d36e887f0ff46896f1c (diff)
downloadlinux-7c4a0edb38ba734bd89efbda4262698a58839c26.tar.xz
greybus: svc_watchdog: Add sysfs file to change the behavior of bite
Currently, AP performs unipro_reset if SVC fails to response to its ping. While this error recovery is best suited for the end-user experience, errors in the UniPro network could potentially go unnoticed by the QA and fishfooders in the development phase of the project. This patch adds an option to trigger a kernel panic so logs can be collected for analysis. Testing Done: - Reproduce issue and observe kernel panic when watchdob_control is changed to 'panic' Signed-off-by: David Lin <dtwlin@google.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/Documentation/sysfs-bus-greybus')
-rw-r--r--drivers/staging/greybus/Documentation/sysfs-bus-greybus16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/staging/greybus/Documentation/sysfs-bus-greybus b/drivers/staging/greybus/Documentation/sysfs-bus-greybus
index e202eac..c49c81b 100644
--- a/drivers/staging/greybus/Documentation/sysfs-bus-greybus
+++ b/drivers/staging/greybus/Documentation/sysfs-bus-greybus
@@ -257,3 +257,19 @@ Contact: Greg Kroah-Hartman <greg@kroah.com>
Description:
If the SVC watchdog is enabled or not. Writing 0 to this
file will disable the watchdog, writing 1 will enable it.
+
+What: /sys/bus/greybus/devices/N-svc/watchdog_action
+Date: July 2016
+KernelVersion: 4.XX
+Contact: Greg Kroah-Hartman <greg@kroah.com>
+Description:
+ This attribute indicates the action to be performed upon SVC
+ watchdog bite.
+
+ The action can be one of the "reset" or "panic". Writing either
+ one of the "reset" or "panic" will change the behavior of SVC
+ watchdog bite. Default value is "reset".
+
+ "reset" means the UniPro subsystem is to be reset.
+
+ "panic" means SVC watchdog bite will cause kernel to panic.