]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
SFI: Hook PCI MMCONFIG
authorFeng Tang <feng.tang@intel.com>
Fri, 14 Aug 2009 19:37:50 +0000 (15:37 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 23:57:34 +0000 (19:57 -0400)
First check ACPI, and if that fails, ask SFI to find the MCFG.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/Kconfig
arch/x86/pci/mmconfig-shared.c
arch/x86/pci/mmconfig_32.c

index d8ba42418d339092118e303e8ca742ef3273e194..4c92c91f354bc1c074c0e6f80e4b836ad819899e 100644 (file)
@@ -1880,7 +1880,7 @@ config PCI_DIRECT
 
 config PCI_MMCONFIG
        def_bool y
-       depends on X86_32 && PCI && ACPI && (PCI_GOMMCONFIG || PCI_GOANY)
+       depends on X86_32 && PCI && (ACPI || SFI) && (PCI_GOMMCONFIG || PCI_GOANY)
 
 config PCI_OLPC
        def_bool y
index b707a0141d3b32653f13748bf8c6151d46fca060..602c172d3bd5a5c44685893071b32b2d8827c023 100644 (file)
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/acpi.h>
+#include <linux/sfi_acpi.h>
 #include <linux/bitmap.h>
 #include <linux/sort.h>
 #include <asm/e820.h>
 #include <asm/pci_x86.h>
+#include <asm/acpi.h>
 
 #define PREFIX "PCI: "
 
@@ -493,7 +495,7 @@ static void __init pci_mmcfg_reject_broken(int early)
                       (unsigned int)cfg->start_bus_number,
                       (unsigned int)cfg->end_bus_number);
 
-               if (!early)
+               if (!early && !acpi_disabled)
                        valid = is_mmconf_reserved(is_acpi_reserved, addr, size, i, cfg, 0);
 
                if (valid)
@@ -608,7 +610,7 @@ static void __init __pci_mmcfg_init(int early)
        }
 
        if (!known_bridge)
-               acpi_table_parse(ACPI_SIG_MCFG, pci_parse_mcfg);
+               acpi_sfi_table_parse(ACPI_SIG_MCFG, pci_parse_mcfg);
 
        pci_mmcfg_reject_broken(early);
 
index 8b2d561046a3bba83ef3953171fb1abdd5a195b5..f10a7e94a84c51d9b87a041a19b3c7b89b283d8b 100644 (file)
@@ -11,9 +11,9 @@
 
 #include <linux/pci.h>
 #include <linux/init.h>
-#include <linux/acpi.h>
 #include <asm/e820.h>
 #include <asm/pci_x86.h>
+#include <acpi/acpi.h>
 
 /* Assume systems with more busses have correct MCFG */
 #define mmcfg_virt_addr ((void __iomem *) fix_to_virt(FIX_PCIE_MCFG))