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

List:       bluesmoke-devel
Subject:    [PATCH 7/7] pasemi_edac: set edac_op_state
From:       Jason Uhlenkott <juhlenko () akamai ! com>
Date:       2008-01-15 1:12:26
Message-ID: 20080115011226.GG31574 () 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/pasemi_edac.c
===================================================================
--- linux.orig/drivers/edac/pasemi_edac.c	2008-01-13 20:53:47.000000000 -0800
+++ linux/drivers/edac/pasemi_edac.c	2008-01-14 15:32:05.700708937 -0800
@@ -26,6 +26,7 @@
 #include <linux/pci.h>
 #include <linux/pci_ids.h>
 #include <linux/slab.h>
+#include <linux/edac.h>
 #include "edac_core.h"
 
 #define MODULE_NAME "pasemi_edac"
@@ -211,6 +212,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;
+	}
+
 	pci_read_config_dword(pdev, MCCFG_ERRCOR, &errcor);
 	errcor |= MCCFG_ERRCOR_RNK_FAIL_DET_EN |
 		MCCFG_ERRCOR_ECC_GEN_EN |
@@ -298,3 +309,6 @@
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>");
 MODULE_DESCRIPTION("MC support for PA Semi PA6T-1682M memory controller");
+
+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