Skip to content

P2PDMA Cleanup

Logan Gunthorpe linux-pci lkml 1 version Applied

Status from this message: Applied all 6 to pci/p2pdma for v5.14, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6PCI/P2PDMA: Rename upstream_bridge_distance() and rework documentationdrivers/pci/p2pdma.c+32 -312 replies
2/6PCI/P2PDMA: Use a buffer on the stack for collecting the acs listdrivers/pci/p2pdma.c+2 -50 replies
3/6PCI/P2PDMA: Cleanup type for return value of calc_map_type_and_dist()drivers/pci/p2pdma.c+5 -50 replies
4/6PCI/P2PDMA: Print a warning if the host bridge is not in the whitelistdrivers/pci/p2pdma.c+11 -60 replies
5/6PCI/P2PDMA: Refactor pci_p2pdma_map_type() to take pagemap and devicedrivers/pci/p2pdma.c+12 -180 replies
6/6PCI/P2PDMA: Avoid pci_get_slot() which sleepsdrivers/pci/p2pdma.c+32 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/6] P2PDMA Cleanup

Hi Bjorn,

This patch series consists of the P2PDMA cleanup and prep patches based on feedback from my P2PDMA mapping operations series (most recently posted at [1]). I've reduced the recipient list of this series to those that I thought would be interested or have provided the feedback that inspired these patches.

Please consider taking these patches in the near term ahead of my mapping ops series. These patches are largely cleanup and other minor fixes. The only functional change is Patch 4 which adds a new warning that was suggested by Don.

Patch 6 arguably isn't necessary yet as we don't care about sleeping yet -- but it'd be a nice to have to reduce the number of prep patches for my other series. However, if you don't want to take this patch now, I can carry it in my other series.

I'm happy to make further fixes and update this series if anyone finds any additional issues on review.

Thanks,

Logan

[1] https://lore.kernel.org/linux-block/[email protected]/

--

Logan Gunthorpe (6):
PCI/P2PDMA: Rename upstream_bridge_distance() and rework documentation PCI/P2PDMA: Use a buffer on the stack for collecting the acs list PCI/P2PDMA: Cleanup type for return value of calc_map_type_and_dist() PCI/P2PDMA: Print a warning if the host bridge is not in the whitelist PCI/P2PDMA: Refactor pci_p2pdma_map_type() to take pagemap and device PCI/P2PDMA: Avoid pci_get_slot() which sleeps

 drivers/pci/p2pdma.c | 157 +++++++++++++++++++++++++------------------
 1 file changed, 92 insertions(+), 65 deletions(-)

base-commit: 614124bea77e452aa6df7a8714e8bc820b489922 --
2.20.1