From: Vinod Koul <vkoul@kernel.org>
To: "Benoît Monin" <benoit.monin@bootlin.com>
Cc: Frank Li <Frank.Li@nxp.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Frank Li <Frank.Li@kernel.org>,
imx@lists.linux.dev, dmaengine@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v10 0/2] dmaengine: fsl-edma: Scatter/gather improvements
Date: Tue, 15 Sep 2026 23:01:52 +0530 [thread overview]
Message-ID: <aqmBCMb8JbYsjpTX@parshuram> (raw)
In-Reply-To: <20260911-fsl-edma-dyn-sg-v10-0-700eb72def57@bootlin.com>
On 11-09-26, 15:11, Benoît Monin wrote:
> This series adds support for scatter/gather DMA transfers via dma_vec
> and dynamic descriptor chaining to the Freescale eDMA controller driver.
>
> The first patch implements the .device_prep_peripheral_dma_vec() callback,
> enabling the DMA engine to accept an array of dma_vec structures. This
> callback supports both regular and cyclic transfer modes.
>
> The second patch introduces dynamic scatter/gather chaining, which allows
> multiple DMA descriptors to be linked together without stopping the channel.
> This optimization eliminates idle periods when back-to-back transfers are
> submitted, improving throughput and reducing latency. The implementation
> carefully preserves cyclic transfer semantics and respects hardware
> constraints on platforms with split register layouts.
>
> I tested it on the i.MX93. The dynamic scatter/gather chaining should
> work with other eDMA controller with split register layout.
This fails to build for me, needs bitfield header
drivers/dma/fsl-edma-common.c: In function ‘fsl_edma_tx_chan_handler’:
drivers/dma/fsl-edma-common.c:59:33: error: implicit declaration of function ‘FIELD_GET’ [-Wimplicit-function-declaration]
59 | u8 link_sg_id = FIELD_GET(EDMA_TCD_CSR_LINKCH, csr);
| ^~~~~~~~~
drivers/dma/fsl-edma-common.c: In function ‘fsl_edma_prep_peripheral_dma_vec’:
drivers/dma/fsl-edma-common.c:784:55: error: implicit declaration of function ‘FIELD_MAX’ [-Wimplicit-function-declaration]
784 | if (!nbytes || vecs[i].len / nbytes > FIELD_MAX(EDMA_TCD_ITER_MASK))
| ^~~~~~~~~
drivers/dma/fsl-edma-common.c: In function ‘fsl_edma_link_sg’:
drivers/dma/fsl-edma-common.c:1015:24: error: implicit declaration of function ‘FIELD_PREP’ [-Wimplicit-function-declaration]
1015 | csr |= FIELD_PREP(EDMA_TCD_CSR_LINKCH, fsl_chan->link_sg_id);
| ^~~~~~~~~~
--
~Vinod
prev parent reply other threads:[~2026-09-15 17:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 13:11 Benoît Monin
2026-09-11 13:11 ` [PATCH v10 1/2] dmaengine: fsl-edma: Implement device_prep_peripheral_dma_vec Benoît Monin
2026-09-11 13:11 ` [PATCH v10 2/2] dmaengine: fsl-edma: Support dynamic scatter/gather chaining Benoît Monin
2026-09-11 14:14 ` Frank Li
2026-09-15 17:31 ` Vinod Koul [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aqmBCMb8JbYsjpTX@parshuram \
--to=vkoul@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=benoit.monin@bootlin.com \
--cc=dmaengine@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®