x86/PCI: amd: factor out MMCONFIG discovery
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Jan 2012 21:27:19 +0000 (14:27 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 Jan 2012 20:11:19 +0000 (12:11 -0800)
commit24d25dbfa63c376323096660bfa9ad45a08870ce
tree208ca0935af13183a574b8fc4ec046ebcbb4ad81
parent1900ca132f53c3d51e6e6b94ea8912530223c63a
x86/PCI: amd: factor out MMCONFIG discovery

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>
Cc: stable@kernel.org # 2.6.34+
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/include/asm/amd_nb.h
arch/x86/kernel/amd_nb.c
arch/x86/pci/amd_bus.c