浏览代码

remoteproc: Add additional crash reasons

The Qualcomm WCNSS can crash by watchdog or a fatal software error. Add
these types to the list of remoteproc crash reasons.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Bjorn Andersson 9 年之前
父节点
当前提交
b3d39032d7
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 2 0
      drivers/remoteproc/remoteproc_core.c
  2. 4 0
      include/linux/remoteproc.h

+ 2 - 0
drivers/remoteproc/remoteproc_core.c

@@ -57,6 +57,8 @@ static DEFINE_IDA(rproc_dev_index);
 
 
 static const char * const rproc_crash_names[] = {
 static const char * const rproc_crash_names[] = {
 	[RPROC_MMUFAULT]	= "mmufault",
 	[RPROC_MMUFAULT]	= "mmufault",
+	[RPROC_WATCHDOG]	= "watchdog",
+	[RPROC_FATAL_ERROR]	= "fatal error",
 };
 };
 
 
 /* translate rproc_crash_type to string */
 /* translate rproc_crash_type to string */

+ 4 - 0
include/linux/remoteproc.h

@@ -365,6 +365,8 @@ enum rproc_state {
 /**
 /**
  * enum rproc_crash_type - remote processor crash types
  * enum rproc_crash_type - remote processor crash types
  * @RPROC_MMUFAULT:	iommu fault
  * @RPROC_MMUFAULT:	iommu fault
+ * @RPROC_WATCHDOG:	watchdog bite
+ * @RPROC_FATAL_ERROR	fatal error
  *
  *
  * Each element of the enum is used as an array index. So that, the value of
  * Each element of the enum is used as an array index. So that, the value of
  * the elements should be always something sane.
  * the elements should be always something sane.
@@ -373,6 +375,8 @@ enum rproc_state {
  */
  */
 enum rproc_crash_type {
 enum rproc_crash_type {
 	RPROC_MMUFAULT,
 	RPROC_MMUFAULT,
+	RPROC_WATCHDOG,
+	RPROC_FATAL_ERROR,
 };
 };
 
 
 /**
 /**