PCIBIOS_MAX_MEM_32 is used to prevent 32-bit BAR from getting 4G-above address. Its default value -1 extends to 0xffffffffffffffff in 64-bit platform which make it useless at all. While arch can overwrite it, 0xffffffff should be good enough for those who does not have special requirement. Set PCIBIOS_MAX_MEM_32 to 0xffffffff and kill this definition in x86. Signed-off-by: Guo Chao <yan@xxxxxxxxxxxxxxxxxx> --- arch/x86/include/asm/pci.h | 1 - include/linux/pci.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/pci.h b/arch/x86/include/asm/pci.h index 7d74432..73ff4bc 100644 --- a/arch/x86/include/asm/pci.h +++ b/arch/x86/include/asm/pci.h @@ -125,7 +125,6 @@ int setup_msi_irq(struct pci_dev *dev, struct msi_desc *msidesc, /* generic pci stuff */ #include <asm-generic/pci.h> -#define PCIBIOS_MAX_MEM_32 0xffffffff #ifdef CONFIG_NUMA /* Returns the node based on pci bus */ diff --git a/include/linux/pci.h b/include/linux/pci.h index 835ec7b..f43405d 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1487,7 +1487,7 @@ static inline struct pci_dev *pci_dev_get(struct pci_dev *dev) #include <asm/pci.h> #ifndef PCIBIOS_MAX_MEM_32 -#define PCIBIOS_MAX_MEM_32 (-1) +#define PCIBIOS_MAX_MEM_32 (0xffffffff) #endif /* these helpers provide future and backwards compatibility -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html