Skip to content

PCI: functions/pci-epf-test: Add DMA data transfer

Kishon Vijay Abraham I linux-pci lkml 3 versions – Applied

Status from this message: Applied to pci/endpoint for v5.7, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyApplied
  2. v25 patches 3 repliesApplied
  3. v15 patches 0 repliesSuperseded

Changes in v3 from the cover letter

*) Removed use of "bool" in uapi/linux/pcitest.h as that seems to fail
for certain configs (header should be self contained). It was failing for "x86_64 allmodconfig".
*) Modified function comments added before DMA transfer functions.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5PCI: endpoint: functions/pci-epf-test: Add DMA support to transfer datadrivers/pci/endpoint/functions/pci-epf-test.c+202 -30 replies
2/5PCI: endpoint: functions/pci-epf-test: Print throughput informationdrivers/pci/endpoint/functions/pci-epf-test.c+48 -00 replies
3/5misc: pci_endpoint_test: Use streaming DMA APIs for buffer allocationdrivers/misc/pci_endpoint_test.c+79 -210 replies
4/5tools: PCI: Add 'd' command line option to support DMAinclude/uapi/linux/pcitest.h tools/pci/pcitest.c+26 -40 replies
5/5misc: pci_endpoint_test: Add support to get DMA option from userspacedrivers/misc/pci_endpoint_test.c+62 -30 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchAlan Mikhak
1/5T-b
2/5T-b
3/5T-b
4/5T-b
5/5T-b

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

Read the v3 thread

Cover letter [PATCH v3 0/5] PCI: functions/pci-epf-test: Add DMA data transfer

Patch series uses dma engine APIs in pci-epf-test to transfer data using DMA. It also adds an option "-d" in pcitest for the user to indicate whether DMA has to be used for data transfer. This also prints throughput information for data transfer.

Changes from v2:
*) Removed use of "bool" in uapi/linux/pcitest.h as that seems to fail
for certain configs (header should be self contained). It was failing for "x86_64 allmodconfig".
*) Modified function comments added before DMA transfer functions.

Changes from v1:
*) Fixed some of the function names from pci_epf_* to pci_epf_test_* since the DMA support is now been moved to pci-epf-test.c

Kishon Vijay Abraham I (5):
PCI: endpoint: functions/pci-epf-test: Add DMA support to transfer
data
PCI: endpoint: functions/pci-epf-test: Print throughput information
misc: pci_endpoint_test: Use streaming DMA APIs for buffer allocation
tools: PCI: Add 'd' command line option to support DMA
misc: pci_endpoint_test: Add support to get DMA option from userspace

 drivers/misc/pci_endpoint_test.c              | 165 ++++++++++--
 drivers/pci/endpoint/functions/pci-epf-test.c | 253 +++++++++++++++++-
 include/uapi/linux/pcitest.h                  |   7 +
 tools/pci/pcitest.c                           |  23 +-
 4 files changed, 417 insertions(+), 31 deletions(-)
Signature · 1 line
2.17.1