projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa7ae8c
)
EDAC, MCE: Allow F15h bank 6 MCE injection
author
Borislav Petkov
<borislav.petkov@amd.com>
Tue, 9 Nov 2010 18:41:49 +0000
(19:41 +0100)
committer
Borislav Petkov
<borislav.petkov@amd.com>
Fri, 7 Jan 2011 10:54:23 +0000
(11:54 +0100)
F15h adds a sixth MCE bank: adjust bank number check in the injection
code.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/mce_amd_inj.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/mce_amd_inj.c
b/drivers/edac/mce_amd_inj.c
index 39faded3cadd6c753a9aecd5d4257a2bf12fa1c7..733a7e7a8d6fd4bdedb3d318cff78a506a0e3873 100644
(file)
--- 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;