Commit 1b07ca47 authored by Borislav Petkov's avatar Borislav Petkov

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: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent fa7ae8cc
...@@ -88,7 +88,8 @@ static ssize_t edac_inject_bank_store(struct kobject *kobj, ...@@ -88,7 +88,8 @@ static ssize_t edac_inject_bank_store(struct kobject *kobj,
return -EINVAL; return -EINVAL;
} }
if (value > 5) { if (value > 5)
if (boot_cpu_data.x86 != 0x15 || value > 6) {
printk(KERN_ERR "Non-existant MCE bank: %lu\n", value); printk(KERN_ERR "Non-existant MCE bank: %lu\n", value);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment