[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bluesmoke-devel
Subject:    [PATCH 6/7] r82600_edac: set edac_op_state
From:       Jason Uhlenkott <juhlenko () akamai ! com>
Date:       2008-01-15 1:12:22
Message-ID: 20080115011222.GF31574 () 48M1231 ! sanmateo ! corp ! akamai ! com
[Download RAW message or body]

Make sure edac_op_state is set to something useful so the driver's check
routine will actually get run.

Signed-off-by: Jason Uhlenkott <juhlenko@akamai.com>
---

Index: linux/drivers/edac/r82600_edac.c
===================================================================
--- linux.orig/drivers/edac/r82600_edac.c	2008-01-13 20:53:47.000000000 -0800
+++ linux/drivers/edac/r82600_edac.c	2008-01-14 15:32:03.807971901 -0800
@@ -20,6 +20,7 @@
 #include <linux/pci.h>
 #include <linux/pci_ids.h>
 #include <linux/slab.h>
+#include <linux/edac.h>
 #include "edac_core.h"
 
 #define R82600_REVISION	" Ver: 2.0.2 " __DATE__
@@ -283,6 +284,16 @@
 	if (mci == NULL)
 		return -ENOMEM;
 
+	/* make sure error reporting method is sane */
+	switch (edac_op_state) {
+	case EDAC_OPSTATE_POLL:
+	case EDAC_OPSTATE_NMI:
+		break;
+	default:
+		edac_op_state = EDAC_OPSTATE_POLL;
+		break;
+	}
+
 	debugf0("%s(): mci = %p\n", __func__, mci);
 	mci->dev = &pdev->dev;
 	mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR;
@@ -412,3 +423,6 @@
 module_param(disable_hardware_scrub, bool, 0644);
 MODULE_PARM_DESC(disable_hardware_scrub,
 		 "If set, disable the chipset's automatic scrub for CEs");
+
+module_param(edac_op_state, int, 0444);
+MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI");

--

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
bluesmoke-devel mailing list
bluesmoke-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluesmoke-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic