s390/pci: reduce iomap size (even more)
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 27 Mar 2017 17:07:24 +0000 (19:07 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 5 Apr 2017 05:35:22 +0000 (07:35 +0200)
Commit c506fff3d3a8 ("s390/pci: resize iomap") reduced the iomap
to NR_FUNCTIONS * PCI_BAR_COUNT elements. Since we only support
functions with 64bit BARs we can cut that number in half.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci.c

index e6cb96a..ba56b9d 100644 (file)
@@ -69,7 +69,7 @@ static struct airq_struct zpci_airq = {
 };
 
 #define ZPCI_IOMAP_ENTRIES                                             \
-       min(((unsigned long) CONFIG_PCI_NR_FUNCTIONS * PCI_BAR_COUNT),  \
+       min(((unsigned long) ZPCI_NR_DEVICES * PCI_BAR_COUNT / 2),      \
            ZPCI_IOMAP_MAX_ENTRIES)
 
 static DEFINE_SPINLOCK(zpci_iomap_lock);