EDAC, amd64: Reserve correct PCI devices on AMD Fam17h
authorYazen Ghannam <Yazen.Ghannam@amd.com>
Thu, 17 Nov 2016 22:57:36 +0000 (17:57 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 28 Nov 2016 16:49:40 +0000 (17:49 +0100)
commit936fc3afaa8abc20dfea306c9b6d19a6e7ca5caf
tree5ef18a9440c2c6db90571b7cddeddcd4c8a5a9cd
parentf1cbbec9fce958d3d71ed815a01c815b35533f1f
EDAC, amd64: Reserve correct PCI devices on AMD Fam17h

Fam17h needs PCI device functions 0 and 6 instead of 1 and 2 as on older
systems. Update struct amd64_pvt to hold the new functions and reserve
them if on Fam17h.

Also, allocate an array of UMC structs within our newly allocated PVT
struct.

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-11-git-send-email-Yazen.Ghannam@amd.com
[ init_one_instance() error handling, shorten lines, unbreak >80 cols lines. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h