mbox

[v3,0/6] dma/ioat: fix issues with stopping and restarting device

Message ID 20230216110919.373385-1-bruce.richardson@intel.com (mailing list archive)
Headers

Message

Bruce Richardson Feb. 16, 2023, 11:09 a.m. UTC
  This patchset fixes a couple of problems with stopping and restarting an
ioat DMA device. Following the three fixes, a series of improvements are
made to the dmadev unit tests to properly validate that dmadevs work
correctly as they are started and stopped, and ensure that no other or
future drivers will suffer from issues.

v3:
* remove unnecessary mempool free on error (patch 4), as noted by Chengwen
v2:
* extra patch to fix issues with error reporting, as noted by Conor W.

Bruce Richardson (6):
  dma/ioat: fix device stop if no copies done
  dma/ioat: fix incorrectly set indexes after restart
  dma/ioat: fix incorrect error reporting on restart
  test/dmadev: check result for device stop
  test/dmadev: create separate function for single copy test
  test/dmadev: add tests for stopping and restarting dev

 app/test/test_dmadev.c         | 171 ++++++++++++++++++++++-----------
 drivers/dma/ioat/ioat_dmadev.c |  31 ++++--
 2 files changed, 139 insertions(+), 63 deletions(-)

--
2.37.2