Skip to content

Commit 3dc8a1f

Browse files
liudongdong3bjorn-helgaas
authored andcommitted
PCI: Support BAR sizes up to 8TB
Current kernel reports that BARs larger than 128GB, e.g., this 4TB BAR, are disabled: pci 0000:01:00.0: disabling BAR 4: [mem 0x00000000-0x3ffffffffff 64bit pref] (bad alignment 0x40000000000) Increase the maximum BAR size from 128GB to 8TB for future expansion. [bhelgaas: commit log] Link: https://lore.kernel.org/r/20220118092117.10089-1-liudongdong3@huawei.com Signed-off-by: Dongdong Liu <liudongdong3@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent e783362 commit 3dc8a1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/setup-bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask,
994994
{
995995
struct pci_dev *dev;
996996
resource_size_t min_align, align, size, size0, size1;
997-
resource_size_t aligns[18]; /* Alignments from 1MB to 128GB */
997+
resource_size_t aligns[24]; /* Alignments from 1MB to 8TB */
998998
int order, max_order;
999999
struct resource *b_res = find_bus_resource_of_type(bus,
10001000
mask | IORESOURCE_PREFETCH, type);

0 commit comments

Comments
 (0)