Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dma: dma-axi-dmac: fix HW scatter-gather not looking at the queue

For HW scatter gather transfers we still need to look for the queue. The
HW is capable of queueing 3 concurrent transfers and if we try more than
that we'll get the submit queue full and should return. Otherwise, if we
go ahead and program the new transfer, we end up discarding it.

Fixes: e97dc7435972 ("dmaengine: axi-dmac: Add support for scatter-gather transfers")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
base-commit: 398035178503bf662281bbffb4bebce1460a4bc5
change-id: 20251104-axi-dmac-fixes-and-improvs-e3ad512a329c
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Link: https://patch.msgid.link/20251104-axi-dmac-fixes-and-improvs-v1-2-3e6fd9328f72@analog.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Nuno Sá and committed by
Vinod Koul
bbcbafb9 9bd25718

+3 -5
+3 -5
drivers/dma/dma-axi-dmac.c
··· 233 233 unsigned int flags = 0; 234 234 unsigned int val; 235 235 236 - if (!chan->hw_sg) { 237 - val = axi_dmac_read(dmac, AXI_DMAC_REG_START_TRANSFER); 238 - if (val) /* Queue is full, wait for the next SOT IRQ */ 239 - return; 240 - } 236 + val = axi_dmac_read(dmac, AXI_DMAC_REG_START_TRANSFER); 237 + if (val) /* Queue is full, wait for the next SOT IRQ */ 238 + return; 241 239 242 240 desc = chan->next_desc; 243 241