Skip to content

dmaengine: Support polling for out of order completions

Ben Walker dmaengine linux-crypto linux-media lkml 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 0 repliesNew
  2. v57 patches 8 repliesSuperseded
  3. v415 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v315 patches0 repliesSuperseded
v215 patches2 repliesSuperseded
v110 patches2 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7dmaengine: Remove dma_async_is_complete from client APIDocumentation/driver-api/dmaengine/client.rst drivers/dma/dmaengine.h include/linux/dmaengine.h+14 -290 replies
2/7dmaengine: Move dma_set_tx_state to the provider API headerdrivers/dma/dmaengine.h include/linux/dmaengine.h+11 -110 replies
3/7dmaengine: Add dmaengine_is_tx_completeDocumentation/driver-api/dmaengine/client.rst Documentation/driver-api/dmaengine/provider.rst drivers/dma/dmaengine.c +2 more+25 -210 replies
4/7dmaengine: Add provider documentation on cookie assignmentDocumentation/driver-api/dmaengine/provider.rst+37 -80 replies
5/7dmaengine: idxd: idxd_desc.id is now a u16drivers/dma/idxd/idxd.h+1 -10 replies
6/7dmaengine: idxd: Support device_tx_statusdrivers/dma/idxd/device.c drivers/dma/idxd/dma.c drivers/dma/idxd/idxd.h+84 -20 replies
7/7dmaengine: Revert "cookie bypass for out of order completion"Documentation/driver-api/dmaengine/provider.rst drivers/dma/dmatest.c drivers/dma/idxd/dma.c +1 more+1 -320 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchDave Jiang
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/7] dmaengine: Support polling for out of order completions

This series adds support for polling async transactions for completion even if interrupts are disabled and transactions can complete out of order.

Prior to this series, dma_cookie_t was a monotonically increasing integer and cookies could be compared to one another to determine if earlier operations had completed (up until the cookie wraps around, then it would break). Now, cookies are treated as opaque handles. The series also does some API clean up and documents how dma_cookie_t should behave.

This closes out by adding support for .device_tx_status() to the idxd driver and then reverting the DMA_OUT_OF_ORDER patch that previously allowed idxd to opt-out of support for polling, which I think is a nice overall simplification to the dmaengine API.

Changes since version 5:
- Rebased to 6.1
- Renamed dmaengine_async_is_tx_complete to dmaengine_is_tx_complete
- Fixed stray blank line above idxd_dma_tx_status
- Added Reviewed-by from Dave Jiang

Changes since version 4:
- Rebased
- Removed updates to the various drivers that call dma_async_is_tx_complete. These clean ups will be spun off into a separate patch series since they need acks from other maintainers.

Changes since version 3:
- Fixed Message-Id in emails. Sorry they were all stripped! Won't happen again.

Changes since version 2:
- None. Rebased as requested without conflict.

Changes since version 1:
- Broke up the change to remove dma_async_is_tx_complete into a single patch for each driver
- Renamed dma_async_is_tx_complete to dmaengine_async_is_tx_complete.

Ben Walker (7):
dmaengine: Remove dma_async_is_complete from client API
dmaengine: Move dma_set_tx_state to the provider API header
dmaengine: Add dmaengine_async_is_tx_complete
dmaengine: Add provider documentation on cookie assignment
dmaengine: idxd: idxd_desc.id is now a u16
dmaengine: idxd: Support device_tx_status
dmaengine: Revert "cookie bypass for out of order completion"

 Documentation/driver-api/dmaengine/client.rst | 24 ++----
 .../driver-api/dmaengine/provider.rst         | 64 ++++++++------
 drivers/dma/dmaengine.c                       |  2 +-
 drivers/dma/dmaengine.h                       | 21 ++++-
 drivers/dma/dmatest.c                         | 14 +--
 drivers/dma/idxd/device.c                     |  1 +
 drivers/dma/idxd/dma.c                        | 86 ++++++++++++++++++-
 drivers/dma/idxd/idxd.h                       |  3 +-
 include/linux/dmaengine.h                     | 43 +++-------
 9 files changed, 164 insertions(+), 94 deletions(-)
Signature · 1 line
2.37.1