mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dmaengine: xilinx_dma: Set max segment size
@ 2025-03-14 13:47 Thomas Gessler
  2025-03-14 15:10 ` Folker Schwesinger
  2025-04-17 15:18 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Gessler @ 2025-03-14 13:47 UTC (permalink / raw)
  To: dmaengine
  Cc: Thomas Gessler, Vinod Koul, Michal Simek, Marek Vasut,
	Radhey Shyam Pandey, Uwe Kleine-König, linux-arm-kernel,
	linux-kernel

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>
---
 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");
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dmaengine: xilinx_dma: Set max segment size
  2025-03-14 13:47 [PATCH] dmaengine: xilinx_dma: Set max segment size Thomas Gessler
@ 2025-03-14 15:10 ` Folker Schwesinger
  2025-04-17 15:18 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Folker Schwesinger @ 2025-03-14 15:10 UTC (permalink / raw)
  To: Thomas Gessler, dmaengine
  Cc: Vinod Koul, Michal Simek, Marek Vasut, Radhey Shyam Pandey,
	Uwe Kleine-König, linux-arm-kernel, linux-kernel

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");


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dmaengine: xilinx_dma: Set max segment size
  2025-03-14 13:47 [PATCH] dmaengine: xilinx_dma: Set max segment size Thomas Gessler
  2025-03-14 15:10 ` Folker Schwesinger
@ 2025-04-17 15:18 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2025-04-17 15:18 UTC (permalink / raw)
  To: dmaengine, Thomas Gessler
  Cc: Michal Simek, Marek Vasut, Radhey Shyam Pandey,
	Uwe Kleine-König, linux-arm-kernel, linux-kernel


On Fri, 14 Mar 2025 14:47:15 +0100, 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.
> 
> 

Applied, thanks!

[1/1] dmaengine: xilinx_dma: Set max segment size
      commit: ebf744fdc080763a243ea6b1a719b1857474a977

Best regards,
-- 
~Vinod



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-17 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-14 13:47 [PATCH] dmaengine: xilinx_dma: Set max segment size Thomas Gessler
2025-03-14 15:10 ` Folker Schwesinger
2025-04-17 15:18 ` Vinod Koul

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®