EDAC, amd64: Define and register UMC error decode function
authorYazen Ghannam <Yazen.Ghannam@amd.com>
Mon, 28 Nov 2016 18:59:53 +0000 (12:59 -0600)
committerBorislav Petkov <bp@suse.de>
Tue, 29 Nov 2016 17:05:48 +0000 (18:05 +0100)
commit713ad54675fdfd7358dbcae21ab4788a014c6e23
treedb72a151b31b099a0ef044c2ca2b939c27463ab1
parentd27f3a348e3677b7d5ee6954ebafce679b011164
EDAC, amd64: Define and register UMC error decode function

How we need to decode UMC errors is different from how we decode bus
errors, so let's define a new function for this. We also need a way to
determine the UMC channel since we're not guaranteed that there is a
fixed relation between channel and MCA bank.

Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: Aravind Gopalakrishnan <aravindksg.lkml@gmail.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: x86-ml <x86@kernel.org>
Link: http://lkml.kernel.org/r/1480359593-80369-1-git-send-email-Yazen.Ghannam@amd.com
[ Fold in decode_synd_reg(), simplify. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h