From: "Folker Schwesinger" <dev@folker-schwesinger.de>
To: "Thomas Gessler" <thomas.gessler@brueckmann-gmbh.de>,
<dmaengine@vger.kernel.org>
Cc: "Vinod Koul" <vkoul@kernel.org>,
"Michal Simek" <michal.simek@amd.com>,
"Marek Vasut" <marex@denx.de>,
"Radhey Shyam Pandey" <radhey.shyam.pandey@amd.com>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dmaengine: xilinx_dma: Set max segment size
Date: Fri, 14 Mar 2025 15:10:04 +0000 [thread overview]
Message-ID: <D8G323LHQBTV.5LVSPQ3DF2NQ@folker-schwesinger.de> (raw)
In-Reply-To: <20250314134717.703287-1-thomas.gessler@brueckmann-gmbh.de>
On Fri Mar 14, 2025 at 2:47 PM CET, Thomas Gessler wrote:
> Set the maximumg DMA segment size from the actual core configuration
> value. Without this setting, the default value of 64 KiB is reported,
> and larger sizes cannot be used for IIO DMAEngine buffers.
>
> Signed-off-by: Thomas Gessler <thomas.gessler@brueckmann-gmbh.de>
Tested-by: Folker Schwesinger <dev@folker-schwesinger.de>
> ---
> drivers/dma/xilinx/xilinx_dma.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c
> index 108a7287f4cd..4b4a299e3807 100644
> --- a/drivers/dma/xilinx/xilinx_dma.c
> +++ b/drivers/dma/xilinx/xilinx_dma.c
> @@ -3114,6 +3114,8 @@ static int xilinx_dma_probe(struct platform_device *pdev)
> }
> }
>
> + dma_set_max_seg_size(xdev->dev, xdev->max_buffer_len);
> +
> if (xdev->dma_config->dmatype == XDMA_TYPE_AXIDMA) {
> xdev->has_axistream_connected =
> of_property_read_bool(node, "xlnx,axistream-connected");
next prev parent reply other threads:[~2025-03-14 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-14 13:47 Thomas Gessler
2025-03-14 15:10 ` Folker Schwesinger [this message]
2025-04-17 15:18 ` Vinod Koul
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=D8G323LHQBTV.5LVSPQ3DF2NQ@folker-schwesinger.de \
--to=dev@folker-schwesinger.de \
--cc=dmaengine@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=michal.simek@amd.com \
--cc=radhey.shyam.pandey@amd.com \
--cc=thomas.gessler@brueckmann-gmbh.de \
--cc=u.kleine-koenig@baylibre.com \
--cc=vkoul@kernel.org \
/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®