]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Increase Resizable BAR support from 512 GB to 128 TB
authorZhiyuan Dai <daizhiyuan@phytium.com.cn>
Fri, 7 Mar 2025 05:35:29 +0000 (13:35 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 7 Mar 2025 17:23:34 +0000 (11:23 -0600)
commit5af473941b56189423a7d16c05efabaf77299847
tree9c0a4da879248c2ac4625d553c19e78d7fd6f46e
parent2499f53484314303f1b90f86424d9ec1bef9119d
PCI: Increase Resizable BAR support from 512 GB to 128 TB

Per PCIe r6.0, sec 7.8.6.2, devices can advertise Resizable BAR sizes up to
128 TB in the Resizable BAR Capability register.  Larger sizes can be
advertised via the Capability register, but that requires an API change.

Update pci_rebar_get_possible_sizes() and pbus_size_mem() to increase the
sizes we currently support from 512 GB to 128 TB.

Link: https://lore.kernel.org/r/20250307053535.44918-1-daizhiyuan@phytium.com.cn
Signed-off-by: Zhiyuan Dai <daizhiyuan@phytium.com.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/setup-bus.c
include/uapi/linux/pci_regs.h