[patch] mca recovery return value when no bus check

From: Russ Anderson <rja_at_efs.americas.sgi.com>
Date: 2006-03-04 09:42:26
[patch] mca recovery return value when no bus check.

When there is no bus check, the return code should be failure, not success.

Signed-off-by: Russ Anderson (rja@sgi.com)

---
 arch/ia64/kernel/mca_drv.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

Index: test/arch/ia64/kernel/mca_drv.c
===================================================================
--- test.orig/arch/ia64/kernel/mca_drv.c	2006-03-02 20:02:28.000000000 -0600
+++ test/arch/ia64/kernel/mca_drv.c	2006-03-02 21:40:56.915601996 -0600
@@ -567,10 +567,15 @@ recover_from_processor_error(int platfor
 		return 0;
 
 	/*
-	 * If there is no bus error, record is weird but we need not to recover.
+	 * The cache check and bus check bits have four possible states
+	 *   cc bc
+	 *    0  0	Weird record, not recovered
+	 *    1  0	Cache error, not recovered
+	 *    0  1	I/O error, attempt recovery
+	 *    1  1	Memory error, attempt recovery
 	 */
 	if (psp->bc == 0 || pbci == NULL)
-		return 1;
+		return 0;
 
 	/*
 	 * Sorry, we cannot handle so many.
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Mar 04 09:43:04 2006

This archive was generated by hypermail 2.1.8 : 2006-03-04 09:43:13 EST