PCI: Support BAR sizes up to 128GB
authorYinghai Lu <yinghai@kernel.org>
Thu, 3 Jul 2014 20:46:17 +0000 (13:46 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 8 Jul 2014 22:17:26 +0000 (16:17 -0600)
Increase the maximum BAR size from 8GB to 128GB.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-bus.c

index a5a63ecfb6281837637cdc32846034ed2f226210..6373985ad3f7ba2326c955d660029878b51ddf53 100644 (file)
@@ -925,7 +925,7 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask,
 {
        struct pci_dev *dev;
        resource_size_t min_align, align, size, size0, size1;
-       resource_size_t aligns[14];     /* Alignments from 1Mb to 8Gb */
+       resource_size_t aligns[18];     /* Alignments from 1Mb to 128Gb */
        int order, max_order;
        struct resource *b_res = find_free_bus_resource(bus,
                                        mask | IORESOURCE_PREFETCH, type);