]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Convert BAR sizes bitmasks to u64
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 13 Nov 2025 18:00:53 +0000 (20:00 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 14 Nov 2025 18:34:22 +0000 (12:34 -0600)
commitbf0a90fc907e47344f88e5b9b241082184dbac27
treecfd1b9800d2c679ea516dff21dae834e470741bf
parentc7df7059e3baa1df96d03429923cc137f134658c
PCI: Convert BAR sizes bitmasks to u64

PCIe r7.0, sec 7.8.6, defines resizable BAR sizes beyond the currently
supported maximum of 128TB, which will require more than u32 to store the
entire bitmask.

Convert Resizable BAR related functions to use u64 bitmask for BAR sizes to
make the typing more future-proof.

The support for the larger BAR sizes themselves is not added at this point.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patch.msgid.link/20251113180053.27944-12-ilpo.jarvinen@linux.intel.com
drivers/gpu/drm/xe/xe_vram.c
drivers/pci/iov.c
drivers/pci/pci-sysfs.c
drivers/pci/rebar.c
include/linux/pci.h