diff options
Diffstat (limited to 'drivers/edac/i5000_edac.c')
-rw-r--r-- | drivers/edac/i5000_edac.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c index 4d7e786065aa..8eb8b6e5b32c 100644 --- a/drivers/edac/i5000_edac.c +++ b/drivers/edac/i5000_edac.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/pci.h> | 19 | #include <linux/pci.h> |
20 | #include <linux/pci_ids.h> | 20 | #include <linux/pci_ids.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <linux/edac.h> | ||
22 | #include <asm/mmzone.h> | 23 | #include <asm/mmzone.h> |
23 | 24 | ||
24 | #include "edac_mc.h" | 25 | #include "edac_mc.h" |
@@ -1285,6 +1286,16 @@ static int i5000_probe1(struct pci_dev *pdev, int dev_idx) | |||
1285 | if (PCI_FUNC(pdev->devfn) != 0) | 1286 | if (PCI_FUNC(pdev->devfn) != 0) |
1286 | return -ENODEV; | 1287 | return -ENODEV; |
1287 | 1288 | ||
1289 | /* make sure error reporting method is sane */ | ||
1290 | switch(edac_op_state) { | ||
1291 | case EDAC_OPSTATE_POLL: | ||
1292 | case EDAC_OPSTATE_NMI: | ||
1293 | break; | ||
1294 | default: | ||
1295 | edac_op_state = EDAC_OPSTATE_POLL; | ||
1296 | break; | ||
1297 | } | ||
1298 | |||
1288 | /* Ask the devices for the number of CSROWS and CHANNELS so | 1299 | /* Ask the devices for the number of CSROWS and CHANNELS so |
1289 | * that we can calculate the memory resources, etc | 1300 | * that we can calculate the memory resources, etc |
1290 | * | 1301 | * |
@@ -1475,3 +1486,5 @@ MODULE_AUTHOR | |||
1475 | ("Linux Networx (http://lnxi.com) Doug Thompson <norsk5@xmission.com>"); | 1486 | ("Linux Networx (http://lnxi.com) Doug Thompson <norsk5@xmission.com>"); |
1476 | MODULE_DESCRIPTION("MC Driver for Intel I5000 memory controllers - " | 1487 | MODULE_DESCRIPTION("MC Driver for Intel I5000 memory controllers - " |
1477 | I5000_REVISION); | 1488 | I5000_REVISION); |
1489 | module_param(edac_op_state, int, 0444); | ||
1490 | MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI"); | ||