Thread (2 messages) 2 messages, 2 authors, 2026-03-17

Re: [PATCH] dmaengine: xilinx: xilinx_dma: Fix residue calculation for cyclic DMA

From: Vinod Koul <vkoul@kernel.org>
Date: 2026-03-17 11:27:51
Also in: dmaengine, lkml

On Mon, 16 Mar 2026 23:18:57 +0100, Marek Vasut wrote:
The cyclic DMA calculation is currently entirely broken and reports
residue only for the first segment. The problem is twofold.

First, when the first descriptor finishes, it is moved from active_list
to done_list, but it is never returned back into the active_list. The
xilinx_dma_tx_status() expects the descriptor to be in the active_list
to report any meaningful residue information, which never happens after
the first descriptor finishes. Fix this up in xilinx_dma_start_transfer()
and if the descriptor is cyclic, lift it from done_list and place it back
into active_list list.

[...]
Applied, thanks!

[1/1] dmaengine: xilinx: xilinx_dma: Fix residue calculation for cyclic DMA
      commit: f61d145999d61948a23cd436ebbfa4c3b9ab8987

Best regards,
-- 
~Vinod


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help