Skip to content

add test suite for DMA drivers

Bruce Richardson dpdk-dev 7 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest13 patches 3 repliesApplied
  2. v613 patches 6 repliesSuperseded
  3. v59 patches 3 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v49 patches0 repliesSuperseded
v38 patches23 repliesSuperseded
v26 patches21 repliesSuperseded
v1 RFC7 patches2 repliesSuperseded

Changes in v7 from the cover letter

* rebased to dmadev v26 patchset

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/13dmadev: add channel status check for testing uselib/dmadev/rte_dmadev.c lib/dmadev/rte_dmadev.h lib/dmadev/rte_dmadev_pmd.h +1 more+57 -00 replies
2/13dma/skeleton: add channel status functiondrivers/dma/skeleton/skeleton_dmadev.c drivers/dma/skeleton/skeleton_dmadev.h+18 -20 replies
3/13dmadev: add burst capacity APIlib/dmadev/rte_dmadev.c lib/dmadev/rte_dmadev.h lib/dmadev/rte_dmadev_core.h +1 more+43 -00 replies
4/13dma/skeleton: add burst capacity functiondrivers/dma/skeleton/skeleton_dmadev.c+10 -00 replies
5/13dmadev: add device iteratorlib/dmadev/rte_dmadev.c lib/dmadev/rte_dmadev.h lib/dmadev/version.map+32 -00 replies
6/13app/test: add basic dmadev instance testsapp/test/test_dmadev.c+73 -10 replies
7/13app/test: add basic dmadev copy testsapp/test/test_dmadev.c+175 -00 replies
8/13app/test: run test suite on skeleton driverapp/test/test_dmadev.c+2 -30 replies
9/13app/test: add more comprehensive dmadev copy testsapp/test/test_dmadev.c+100 -10 replies
10/13dmadev: add flag for error handling supportlib/dmadev/rte_dmadev.c lib/dmadev/rte_dmadev.h+9 -00 replies
11/13app/test: test dmadev instance failure handlingapp/test/test_dmadev.c+361 -00 replies
12/13app/test: add dmadev fill testsapp/test/test_dmadev.c+49 -00 replies
13/13app/test: add dmadev burst capacity API testapp/test/test_dmadev.c+67 -00 replies

Reviews trailers per patch

12 of 13 patches have a Reviewed-by or Acked-by.

PatchConor WalshKevin Laatz
1/13R-b R-b
2/13
3/13R-b
4/13R-b
5/13R-b R-b
6/13R-b R-b
7/13R-b R-b
8/13R-b
9/13R-b R-b
10/13R-b R-b
11/13R-b R-b
12/13R-b
13/13R-b

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

Read the v7 thread

Cover letter [dpdk-dev] [PATCH v7 00/13] add test suite for DMA drivers

This patchset adds a fairly comprehensive set of tests for basic dmadev functionality. Tests are added to verify basic copy operation in each device, using both submit function and submit flag, and verifying completion gathering using both "completed()" and "completed_status()" functions. Beyond that, tests are then added for the error reporting and handling, as is a suite of tests for the fill() operation for devices that support those.

New in version 6 of the series are a couple of new patches to add support for the skeleton dmadev to pass the suite of tests. This includes adding missing function support to it, as well as adding a capability flag to dmadev to indicate that it can't support invalid addresses.

Depends-on: series-19594 ("support dmadev")

V7:
* rebased to dmadev v26 patchset

V6:
* changed type of dev_id from uint16_t to int16_t
* moved burst_capacity function to datapath function set
* added burst_capacity function and vchan_status functions to skeleton driver
* added capability flag to indicate if device supports handling errors
* enabled running unit tests on skeleton driver

V5:
* added missing reviewed-by tags from v3 reviewed.

V4:
* rebased to v22 of dmadev set
* added patch for iteration macro for dmadevs to allow testing each dmadev in turn

V3:
* add patch and tests for a burst-capacity function
* addressed review feedback from v2
* code cleanups to try and shorten code where possible

V2:
* added into dmadev a API to check for a device being idle
* removed the hard-coded timeout delays before checking completions, and instead wait for device to be idle
* added in checks for statistics updates as part of some tests
* fixed issue identified by internal coverity scan
* other minor miscellaneous changes and fixes.

Bruce Richardson (10):
dmadev: add channel status check for testing use dma/skeleton: add channel status function dma/skeleton: add burst capacity function
dmadev: add device iterator
app/test: add basic dmadev instance tests app/test: add basic dmadev copy tests app/test: run test suite on skeleton driver app/test: add more comprehensive dmadev copy tests
dmadev: add flag for error handling support app/test: test dmadev instance failure handling

Kevin Laatz (3):
dmadev: add burst capacity API
app/test: add dmadev fill tests
app/test: add dmadev burst capacity API test

 app/test/test_dmadev.c                 | 830 ++++++++++++++++++++++++-
 drivers/dma/skeleton/skeleton_dmadev.c |  28 +-
 drivers/dma/skeleton/skeleton_dmadev.h |   2 +-
 lib/dmadev/rte_dmadev.c                |  40 ++
 lib/dmadev/rte_dmadev.h                |  89 +++
 lib/dmadev/rte_dmadev_core.h           |   4 +
 lib/dmadev/rte_dmadev_pmd.h            |   5 +
 lib/dmadev/version.map                 |   3 +
 8 files changed, 995 insertions(+), 6 deletions(-)

--
2.30.2