summaryrefslogtreecommitdiff
path: root/drivers/edac/mce_amd_inj.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-11-09 21:41:49 +0300
committerBorislav Petkov <borislav.petkov@amd.com>2011-01-07 13:54:23 +0300
commit1b07ca47ff2fbffbe09d8b0a0a25d8747a3cdcae (patch)
treeda2c3d76f16c13dcc24b40865489b93d0d8963f9 /drivers/edac/mce_amd_inj.c
parentfa7ae8cc8c88c0679eab24c5a1b5d3b134a5f542 (diff)
downloadlinux-1b07ca47ff2fbffbe09d8b0a0a25d8747a3cdcae.tar.xz
EDAC, MCE: Allow F15h bank 6 MCE injection
F15h adds a sixth MCE bank: adjust bank number check in the injection code. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/mce_amd_inj.c')
-rw-r--r--drivers/edac/mce_amd_inj.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/edac/mce_amd_inj.c b/drivers/edac/mce_amd_inj.c
index 39faded3cadd..733a7e7a8d6f 100644
--- a/drivers/edac/mce_amd_inj.c
+++ b/drivers/edac/mce_amd_inj.c
@@ -88,10 +88,11 @@ static ssize_t edac_inject_bank_store(struct kobject *kobj,
return -EINVAL;
}
- if (value > 5) {
- printk(KERN_ERR "Non-existant MCE bank: %lu\n", value);
- return -EINVAL;
- }
+ if (value > 5)
+ if (boot_cpu_data.x86 != 0x15 || value > 6) {
+ printk(KERN_ERR "Non-existant MCE bank: %lu\n", value);
+ return -EINVAL;
+ }
i_mce.bank = value;