PNP: fix "work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB"
authorWilly Tarreau <w@1wt.eu>
Sun, 30 Sep 2012 16:22:21 +0000 (18:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Oct 2012 21:37:18 +0000 (23:37 +0200)
Initial stable commit : 2215d91091c465fd58da7814d1c10e09ac2d8307

This patch backported into 2.6.32.55 is enabled when CONFIG_AMD_NB is set,
but this config option does not exist in 2.6.32, it was called CONFIG_K8_NB,
so the fix was never applied. Some other changes were needed to make it work.
first, the correct include file name was asm/k8.h and not asm/amd_nb.h, and
second, amd_get_mmconfig_range() is needed and was merged by previous patch.

Thanks to Jiri Slabi who reported the issue and diagnosed all the dependencies.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/x86/pci/amd_bus.c
drivers/pnp/quirks.c

index cb34763ef2176d2cbb824a1037b7e8c2aec2c3b9..aae9931d8297f1c23ba2df8911e8966deacc4a22 100644 (file)
@@ -3,6 +3,7 @@
 #include <linux/topology.h>
 #include <linux/cpu.h>
 #include <asm/pci_x86.h>
+#include <asm/k8.h>
 
 #ifdef CONFIG_X86_64
 #include <asm/pci-direct.h>
index eb39d26e5a0fcd8883f8f42fe79db329155a14ef..253996cccd01635ad4827dd95406bdf97f1737a5 100644 (file)
@@ -300,9 +300,9 @@ static void quirk_system_pci_resources(struct pnp_dev *dev)
        }
 }
 
-#ifdef CONFIG_AMD_NB
+#ifdef CONFIG_K8_NB
 
-#include <asm/amd_nb.h>
+#include <asm/k8.h>
 
 static void quirk_amd_mmconfig_area(struct pnp_dev *dev)
 {
@@ -366,7 +366,7 @@ static struct pnp_fixup pnp_fixups[] = {
        /* PnP resources that might overlap PCI BARs */
        {"PNP0c01", quirk_system_pci_resources},
        {"PNP0c02", quirk_system_pci_resources},
-#ifdef CONFIG_AMD_NB
+#ifdef CONFIG_K8_NB
        {"PNP0c01", quirk_amd_mmconfig_area},
 #endif
        {""}