• Bjorn Helgaas's avatar
    x86/PCI: amd: factor out MMCONFIG discovery · 08dd6464
    Bjorn Helgaas authored
    commit 24d25dbf 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>
    Cc: stable@kernel.org
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    [WT: this patch was initially not planned for 2.6.32 but is required by commit
     2215d910 merged into 2.6.32.55 and which relies on amd_get_mmconfig_range() ]
    Cc: Jiri Slaby <jslaby@suse.cz>
    Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
    08dd6464
k8.h 795 Bytes