PCI: Support BAR sizes up to 8TB
authorDongdong Liu <liudongdong3@huawei.com>
Tue, 18 Jan 2022 09:21:17 +0000 (17:21 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 3 Mar 2022 18:11:15 +0000 (12:11 -0600)
commit3dc8a1f6f64481a8a5a669633e880f26dae0d752
tree7a2066949fec2a7cf7fed46f193d270071bac779
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
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>
drivers/pci/setup-bus.c