MCE, AMD: Fix decoding module loading on unsupported hw
commitfd0f5ffff8a21fd9a32688b850c5bd694e76cc27
authorBorislav Petkov <bp@suse.de>
Mon, 17 Feb 2014 19:51:52 +0000 (17 20:51 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 24 Feb 2014 09:25:47 +0000 (24 10:25 +0100)
tree8e21d9977b96ee04bfa5f0c93da05c7244ddf965
parent9d6c7cbe3073668cc5381978bb800f5e901c178e
MCE, AMD: Fix decoding module loading on unsupported hw

We want to still be able to issue some error information on systems for
which there is no decoding support (think older distro kernels here,
for example). Therefore, we allow module registration but skip the
per-family bank-specific decoders and issue the general information
only, i.e.:

[   46.822828] [Hardware Error]: Error Status: Uncorrected, software containable error.
[   46.822846] [Hardware Error]: CPU:0 (15:30:0) MC0_STATUS[-|UE|-|-|-|-|-]: 0xa000000000010f0f
[   46.822858] [Hardware Error]: cache level: L3/GEN, mem/io: GEN, mem-tx: GEN, part-proc: GEN (timed out)

with the hope that it still contains helpful useful bits.

Suggested-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Tested-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Link: http://lkml.kernel.org/r/1392659391-2411-1-git-send-email-Aravind.Gopalakrishnan@amd.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mce_amd.c