diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-08-06 12:55:45 -0400 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2010-08-24 12:06:54 -0400 |
commit | e045c29126eae3a8cfdf8507baa75b5c70fd4f53 (patch) | |
tree | 64579b87a85654b4da96a82e426f61868a165915 /drivers | |
parent | 76be97c1fc945db08aae1f1b746012662d643e97 (diff) |
MCE, AMD: Limit MCE decoding to current families for now
Limit MCE error decoding to current and older families only (K8-F11h).
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/edac/edac_mce_amd.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/edac/edac_mce_amd.c b/drivers/edac/edac_mce_amd.c index bae9351e9473..352dcc6c8971 100644 --- a/drivers/edac/edac_mce_amd.c +++ b/drivers/edac/edac_mce_amd.c | |||
@@ -426,11 +426,15 @@ static struct notifier_block amd_mce_dec_nb = { | |||
426 | static int __init mce_amd_init(void) | 426 | static int __init mce_amd_init(void) |
427 | { | 427 | { |
428 | /* | 428 | /* |
429 | * We can decode MCEs for Opteron and later CPUs: | 429 | * We can decode MCEs for K8, F10h and F11h CPUs: |
430 | */ | 430 | */ |
431 | if ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && | 431 | if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) |
432 | (boot_cpu_data.x86 >= 0xf)) | 432 | return 0; |
433 | atomic_notifier_chain_register(&x86_mce_decoder_chain, &amd_mce_dec_nb); | 433 | |
434 | if (boot_cpu_data.x86 < 0xf || boot_cpu_data.x86 > 0x11) | ||
435 | return 0; | ||
436 | |||
437 | atomic_notifier_chain_register(&x86_mce_decoder_chain, &amd_mce_dec_nb); | ||
434 | 438 | ||
435 | return 0; | 439 | return 0; |
436 | } | 440 | } |