Skip to content

pci_epf_alloc_space() cleanups

Niklas Cassel linux-pci ntb 2 versions – Applied

Status from this message: Applied to pci/endpoint!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesApplied
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

-Picked up Reviewed-by tags.
-Fixed kdoc param name to match the actual param name in patch 1/4. -Split patch "improve pci_epf_alloc_space()" into one patch changing
pci-epf-core.c (patch 2/4 in V2) and pci-epf-test (patch 3/4 in V2).
-Perform the alignment even for fixed size BARs. We need this since:
1) Some platforms have fixed_size_bars that are smaller than the iATU MIN REGION.
2) No longer doing so would be a functional change and not a cleanup.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4PCI: endpoint: refactor pci_epf_alloc_space()drivers/pci/endpoint/functions/pci-epf-ntb.c drivers/pci/endpoint/functions/pci-epf-test.c drivers/pci/endpoint/functions/pci-epf-vntb.c +2 more+12 -90 replies
2/4PCI: endpoint: improve pci_epf_alloc_space()drivers/pci/endpoint/pci-epf-core.c+9 -01 reply
3/4PCI: endpoint: pci-epf-test: remove superfluous checksdrivers/pci/endpoint/functions/pci-epf-test.c+0 -81 reply
4/4PCI: endpoint: pci-epf-vntb: remove superfluous checksdrivers/pci/endpoint/functions/pci-epf-vntb.c+0 -111 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFrank LiManivannan Sadhasivam
SeriesR-b
1/4R-b R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] pci_epf_alloc_space() cleanups

Hello all,

Here comes some cleanups related to pci_epf_alloc_space().

Changes since v1:
-Picked up Reviewed-by tags.
-Fixed kdoc param name to match the actual param name in patch 1/4. -Split patch "improve pci_epf_alloc_space()" into one patch changing
pci-epf-core.c (patch 2/4 in V2) and pci-epf-test (patch 3/4 in V2).
-Perform the alignment even for fixed size BARs. We need this since:
1) Some platforms have fixed_size_bars that are smaller than the iATU MIN REGION.
2) No longer doing so would be a functional change and not a cleanup.

Kind regards,
Niklas

Niklas Cassel (4):
PCI: endpoint: refactor pci_epf_alloc_space()
PCI: endpoint: improve pci_epf_alloc_space()
PCI: endpoint: pci-epf-test: remove superfluous checks
PCI: endpoint: pci-epf-vntb: remove superfluous checks

 drivers/pci/endpoint/functions/pci-epf-ntb.c  |  2 +-
 drivers/pci/endpoint/functions/pci-epf-test.c | 13 ++-----------
 drivers/pci/endpoint/functions/pci-epf-vntb.c | 15 ++-------------
 drivers/pci/endpoint/pci-epf-core.c           | 15 +++++++++++++--
 include/linux/pci-epf.h                       |  4 +++-
 5 files changed, 21 insertions(+), 28 deletions(-)
Signature · 1 line
2.43.0