@@ -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 */
@@ -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
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@linux.vnet.ibm.com> --- arch/x86/include/asm/pci.h | 1 - include/linux/pci.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)