Skip to content

Commit

Permalink
EDAC, MCE: Enable MCE decoding on F14h
Browse files Browse the repository at this point in the history
Now that all decoders have been taught about F14h, models < 0x10
MCEs, enable decoding on this family of CPUs. Also, issue a short
informational message upon boot that MCE decoding gets enabled.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Oct 21, 2010
1 parent fe4ea26 commit 9530d60
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,13 +598,12 @@ static struct notifier_block amd_mce_dec_nb = {

static int __init mce_amd_init(void)
{
/*
* We can decode MCEs for K8, F10h and F11h CPUs:
*/
if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD)
return 0;

if (boot_cpu_data.x86 < 0xf || boot_cpu_data.x86 > 0x11)
if (boot_cpu_data.x86 != 0xf &&
boot_cpu_data.x86 != 0x10 &&
(boot_cpu_data.x86 != 0x14 || boot_cpu_data.x86_model > 0xf))
return 0;

fam_ops = kzalloc(sizeof(struct amd_decoder_ops), GFP_KERNEL);
Expand Down Expand Up @@ -638,6 +637,8 @@ static int __init mce_amd_init(void)
return -EINVAL;
}

pr_info("MCE: In-kernel MCE decoding enabled.\n");

atomic_notifier_chain_register(&x86_mce_decoder_chain, &amd_mce_dec_nb);

return 0;
Expand Down

0 comments on commit 9530d60

Please sign in to comment.