Skip to content

dmaengine: zynqmp_dma: Fix error paths and follow-up cleanups

Golla Nagendra dmaengine linux-arm-kernel lkml 2 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. v2 Latest8 patches 7 repliesApplied
  2. v16 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Split the previous alloc_chan_resources cleanup into two focused patches:
- Patch 1 for runtime PM rollback on sw_desc_pool allocation failure.
- Patch 2 for sw_desc_pool release on desc_pool_v allocation failure.
- Reworked channel probe failure teardown to use the existing free_chan_resources goto path instead of adding direct tasklet kill in the outer probe failure block.
- Kept the whitespace-only change as a standalone patch and moved dma-coherent handling to a dedicated patch using of_dma_is_coherent().
- Updated commit descriptions to match exact per-patch behavior.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8dmaengine: zynqmp_dma: Fix PM rollback on sw_desc_pool alloc failuredrivers/dma/xilinx/zynqmp_dma.c+8 -21 reply
2/8dmaengine: zynqmp_dma: Free sw_desc_pool on desc_pool_v alloc failuredrivers/dma/xilinx/zynqmp_dma.c+7 -21 reply
3/8dmaengine: zynqmp_dma: Fix chan probe/remove error handlingdrivers/dma/xilinx/zynqmp_dma.c+17 -111 reply
4/8dmaengine: zynqmp_dma: Fix stale kerneldoc commentsdrivers/dma/xilinx/zynqmp_dma.c+6 -70 replies
5/8dmaengine: zynqmp_dma: Fix minor whitespacedrivers/dma/xilinx/zynqmp_dma.c+1 -01 reply
6/8dmaengine: zynqmp_dma: Use of_dma_is_coherent for dma-coherentdrivers/dma/xilinx/zynqmp_dma.c+2 -11 reply
7/8dmaengine: zynqmp_dma: Reject zero-length memcpy transfersdrivers/dma/xilinx/zynqmp_dma.c+5 -11 reply
8/8dmaengine: zynqmp_dma: Remove unused define and duplicate IRQ bitdrivers/dma/xilinx/zynqmp_dma.c+1 -40 replies

Reviews trailers per patch

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

PatchFrank Li
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v2 thread

Cover letter [PATCH V2 0/8] dmaengine: zynqmp_dma: Fix error paths and follow-up cleanups

This series fixes error-path cleanup issues in alloc/probe flows and applies follow-up cleanups in the Xilinx ZynqMP DMA driver.

This series fixes error-path cleanup issues in alloc/probe flows and applies follow-up cleanups in the Xilinx ZynqMP DMA driver.

Patch 1 fixes runtime PM rollback when sw_desc_pool allocation fails after pm_runtime_resume_and_get().

Patch 2 frees sw_desc_pool when desc_pool_v allocation fails after sw_desc_pool has already been allocated.

Patch 3 fixes channel probe/remove error handling by preserving platform_get_irq() errors, initializing/staging chan->irq safely, and registering the channel node only after IRQ setup succeeds.

Patch 4 updates stale kerneldoc comments to match current behavior.

Patch 5 applies minor whitespace formatting cleanup in zynqmp_dma_chan_probe().

Patch 6 switches dma-coherent detection to of_dma_is_coherent() instead of parsing the common device-tree property directly.

Patch 7 rejects zero-length memcpy preparations and documents the return behavior.

Patch 8 removes an unused define and drops a duplicate interrupt enable bit from the default IRQ mask.

Changes in v2:
- Split the previous alloc_chan_resources cleanup into two focused patches:
- Patch 1 for runtime PM rollback on sw_desc_pool allocation failure.
- Patch 2 for sw_desc_pool release on desc_pool_v allocation failure.
- Reworked channel probe failure teardown to use the existing free_chan_resources goto path instead of adding direct tasklet kill in the outer probe failure block.
- Kept the whitespace-only change as a standalone patch and moved dma-coherent handling to a dedicated patch using of_dma_is_coherent().
- Updated commit descriptions to match exact per-patch behavior.

Golla Nagendra (8):
dmaengine: zynqmp_dma: Fix PM rollback on sw_desc_pool alloc failure
dmaengine: zynqmp_dma: Free sw_desc_pool on desc_pool_v alloc failure
dmaengine: zynqmp_dma: Fix chan probe/remove error handling
dmaengine: zynqmp_dma: Fix stale kerneldoc comments
dmaengine: zynqmp_dma: Fix minor whitespace
dmaengine: zynqmp_dma: Use of_dma_is_coherent for dma-coherent
dmaengine: zynqmp_dma: Reject zero-length memcpy transfers
dmaengine: zynqmp_dma: Remove unused define and duplicate IRQ bit

 drivers/dma/xilinx/zynqmp_dma.c | 73 +++++++++++++++++++++------------
 1 file changed, 46 insertions(+), 27 deletions(-)
Signature · 1 line
2.44.4