[prev in list] [next in list] [prev in thread] [next in thread]
List: bluesmoke-devel
Subject: [PATCH 1/7] i82875p_edac: set edac_op_state
From: Jason Uhlenkott <juhlenko () akamai ! com>
Date: 2008-01-15 1:12:01
Message-ID: 20080115011201.GA31574 () 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/i82875p_edac.c
===================================================================
--- linux.orig/drivers/edac/i82875p_edac.c 2008-01-13 20:53:47.000000000 -0800
+++ linux/drivers/edac/i82875p_edac.c 2008-01-14 15:31:50.584809041 -0800
@@ -18,6 +18,7 @@
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/slab.h>
+#include <linux/edac.h>
#include "edac_core.h"
#define I82875P_REVISION " Ver: 2.0.2 " __DATE__
@@ -407,6 +408,16 @@
goto fail0;
}
+ /* 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;
+ }
+
debugf3("%s(): init mci\n", __func__);
mci->dev = &pdev->dev;
mci->mtype_cap = MEM_FLAG_DDR;
@@ -586,3 +597,6 @@
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Linux Networx (http://lnxi.com) Thayne Harbaugh");
MODULE_DESCRIPTION("MC support for Intel 82875 memory hub controllers");
+
+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