x86/PCI: amd: factor out MMCONFIG discovery
commit45e7e24360e799f7753f37ca5642a0d6e29b9c62
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Jan 2012 21:27:19 +0000 (5 14:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:39 +0000 (25 17:24 -0800)
treee02c560d68a4458c66e7598d458dc41e82396759
parent0a4179971477550df61b9218e664eb9128abf2e3
x86/PCI: amd: factor out MMCONFIG discovery

commit 24d25dbfa63c376323096660bfa9ad45a08870ce upstream.

This factors out the AMD native MMCONFIG discovery so we can use it
outside amd_bus.c.

amd_bus.c reads AMD MSRs so it can remove the MMCONFIG area from the
PCI resources.  We may also need the MMCONFIG information to work
around BIOS defects in the ACPI MCFG table.

Cc: Borislav Petkov <borislav.petkov@amd.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/amd_nb.h
arch/x86/kernel/amd_nb.c
arch/x86/pci/amd_bus.c