EDAC, amd64: Read MC registers on AMD Fam17h
authorYazen Ghannam <Yazen.Ghannam@amd.com>
Thu, 17 Nov 2016 22:57:37 +0000 (17:57 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 28 Nov 2016 16:50:11 +0000 (17:50 +0100)
commitb64ce7cd7f540c64e3fbeaeee3ddb59bc9ab1a3b
tree3ffab7c868dcf9aa50be60d0b4265f3b0bfe71c1
parent936fc3afaa8abc20dfea306c9b6d19a6e7ca5caf
EDAC, amd64: Read MC registers on AMD Fam17h

Fam17h has a different set of registers and bitfields. Most of these
registers are read through SMN (System Management Network) rather
than PCI config space. Also, the derivation of various values is now
different.

Update amd64_edac to read the appropriate registers and extract the
correct values for Fam17h.

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/1479423463-8536-12-git-send-email-Yazen.Ghannam@amd.com
[ Save us the indentation level in read_mc_regs(), add defines ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h