Skip to content

dmaengine: xilinx_dma: Fixes and optimizations for AXIDMA and MCDMA channel management

Suraj Gupta dmaengine linux-arm-kernel lkml sashiko-reviews 4 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. v3 Latest3 patches 7 repliesApplied
  2. v1 posting 2/23 patches 3 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 posting 1/23 patches6 repliesSuperseded

Changes in v3 from the cover letter

- Patch 2: Restrict the idle-check removal to scatter-gather mode. Direct (non-SG) mode has no descriptor queue, so writing the BTT register while a transfer is in flight would corrupt the active transfer; keep those transfers serialized by retaining the idle check on the non-SG path. MCDMA always operates in scatter-gather mode and is unaffected. Update the commit description accordingly.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and MCDMA interrupt handlersdrivers/dma/xilinx/xilinx_dma.c+8 -42 replies
2/3dmaengine: xilinx_dma: Enable transfer chaining for AXIDMA and MCDMA by removing idle restrictiondrivers/dma/xilinx/xilinx_dma.c+12 -73 replies
3/3dmaengine: xilinx_dma: Optimize control register write and channel start logic for AXIDMA and MCDMA in corresponding start_transfer()drivers/dma/xilinx/xilinx_dma.c+4 -31 reply

Reviews trailers per patch

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

PatchFolker SchwesingerRadhey Shyam Pandey
1/3T-b R-b
2/3T-b R-b
3/3T-b R-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/3] dmaengine: xilinx_dma: Fixes and optimizations for AXIDMA and MCDMA channel management

This patch series addresses issues and optimizations in the Xilinx AXI DMA and MCDMA drivers:
1. Fix channel idle state management in the interrupt handlers.
2. Enable transfer chaining by removing unnecessary idle restrictions.
3. Optimize control register writes and channel start logic.

Note: The patches in this series were part of following IRQ coalescing series which is under discussion:
https://lore.kernel.org/all/[email protected]/

Changes in V3:
- Patch 2: Restrict the idle-check removal to scatter-gather mode. Direct (non-SG) mode has no descriptor queue, so writing the BTT register while a transfer is in flight would corrupt the active transfer; keep those transfers serialized by retaining the idle check on the non-SG path. MCDMA always operates in scatter-gather mode and is unaffected. Update the commit description accordingly.

Changes in V2:
- Apply similar fixes and optimizations to MCDMA as well.
- Expand the 1/3 commit description with when the described issue occurs.

Suraj Gupta (3):
dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and
MCDMA interrupt handlers
dmaengine: xilinx_dma: Enable transfer chaining for AXIDMA and MCDMA
by removing idle restriction
dmaengine: xilinx_dma: Optimize control register write and channel
start logic for AXIDMA and MCDMA in corresponding start_transfer()

 drivers/dma/xilinx/xilinx_dma.c | 38 +++++++++++++++++++++------------
 1 file changed, 24 insertions(+), 14 deletions(-)
Signature · 1 line
2.25.1