]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI/IOV: Restore VF resizable BAR state after reset
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 2 Jul 2025 09:35:18 +0000 (11:35 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 14 Jul 2025 19:58:13 +0000 (14:58 -0500)
commit5a8f77e24a30bbce2fa57926f3dede84894fd10a
tree70be927c549e351289cd5acaf6564b4ac3034960
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
PCI/IOV: Restore VF resizable BAR state after reset

Similar to regular resizable BARs, VF BARs can also be resized, e.g. by the
system firmware or the PCI subsystem itself.

The capability layout is the same as PCI_EXT_CAP_ID_REBAR.

Add the capability ID and restore it as a part of IOV state.

See PCIe r6.2, sec 7.8.7.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patch.msgid.link/20250702093522.518099-2-michal.winiarski@intel.com
drivers/pci/iov.c
drivers/pci/pci.h
include/uapi/linux/pci_regs.h