mbox series

[v2,0/3] PCI: VF resizable BAR

Message ID 20240919223557.1897608-1-michal.winiarski@intel.com (mailing list archive)
Headers show
Series PCI: VF resizable BAR | expand

Message

Michał Winiarski Sept. 19, 2024, 10:35 p.m. UTC
Hi,

Resurrecting an old series [1], now that we have an in-tree user for it.

For regular BAR, drivers can use pci_resize_resource to resize it to the
desired size provided that it is supported by the hardware, which the
driver can query using pci_rebar_get_possible_sizes.
This series expands the API to work with IOV BAR as well.
It also adds the additional API to allow extending the VF BAR within the
original resource boundary.

Thanks,
-Michał

[1] https://lore.kernel.org/all/20211215141626.3090807-1-michal.winiarski@intel.com/

v1 -> v2:
- Add pci_iov_resource_extend() and usage in Xe driver
- Reduce the number of ifdefs (Christian)
- Drop patch 2/2 from v1 (Christian)
- Add a helper to avoid upsetting static analysis tools (Krzysztof)

Michał Winiarski (3):
  PCI: Add support for VF Resizable Bar extended cap
  PCI: Allow extending VF BAR within original resource boundary
  drm/xe/pf: Extend the VF LMEM BAR

 drivers/gpu/drm/xe/regs/xe_bars.h |   1 +
 drivers/gpu/drm/xe/xe_sriov_pf.c  |   8 ++
 drivers/pci/iov.c                 | 120 +++++++++++++++++++++++++++++-
 drivers/pci/pci.c                 |  40 +++++++++-
 drivers/pci/pci.h                 |  15 +++-
 drivers/pci/setup-res.c           |  44 +++++++++--
 include/linux/pci.h               |   3 +
 include/uapi/linux/pci_regs.h     |   1 +
 8 files changed, 223 insertions(+), 9 deletions(-)