Skip to contentSkip to conversation

Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

PATCH Superseded Kedareswara rao Appana 3 participants 9 messages Apr 27, 2016 – May 3, 2016

Subsystems (3)

v7 of 12 Superseded Latest is v12 →

lore
Share & tools
lore
#0 lore raw

PATCH v7 1/2 Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Device-tree binding documentation for Xilinx zynqmp dma engine used in Zynq UltraScale+ MPSoC.

---
Changes in v7:
- None.
Changes in v6:
- Removed desc-axi-cache/dst-axi-cache/src-axi-cache properties from the binding doc as it allow broken combinations when dma-coherent is set as suggested by Rob.
- Fixed minor comments given by Rob related coding(lower case DT node name). Changes in v5:
- Use dma-coherent flag for coherent transfers as suggested by rob.
- Removed unnecessary properties from binding doc as suggested by Rob. Changes in v4:
- None
Changes in v3:
- None
Changes in v2:
- None.

 .../devicetree/bindings/dma/xilinx/zynqmp_dma.txt  | 44 ++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt
Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +44 -0
new file mode 100644
index 0000000..f0f0b54
@@ -0,0 +1,44 @@
+Xilinx ZynqMP DMA engine, it does support memory to memory transfers,
+memory to device and device to memory transfers. It also has flow
+control and rate control support for slave/peripheral dma access.
+
+Required properties:
+- compatible		: Should be "xlnx,zynqmp-dma-1.0"
+- reg			: Memory map for gdma/adma module access.
+- interrupt-parent	: Interrupt controller the interrupt is routed through
+- interrupts		: Should contain DMA channel interrupt.
+- xlnx,bus-width	: Axi buswidth in bits. Should contain 128 or 64
+- clock-names		: List of input clocks "clk_main", "clk_apb"
+			  (see clock bindings for details)
+
+Optional properties:
+- xlnx,include-sg	: Indicates the controller to operate in simple or
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source side
+- xlnx,src-burst-len	: AXI length for data read. Support only power of
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power of
+			  2 byte values.
+- dma-coherent		: Present if dma operations are coherent.
+
+Example:
+++++++++
+fpd_dma_chan1: dma at fd500000 {
+	compatible = "xlnx,zynqmp-dma-1.0";
+	reg = <0x0 0xFD500000 0x1000>;
+	interrupt-parent = <&gic>;
+	interrupts = <0 117 4>;
+	clock-names = "clk_main", "clk_apb";
+	xlnx,bus-width = <128>;
+	xlnx,include-sg;
+	xlnx,overfetch;
+	dma-coherent;
+	xlnx,ratectrl = <0>;
+	xlnx,src-issue = <16>;
+	xlnx,src-burst-len = <4>;
+	xlnx,dst-burst-len = <4>;
+};
Signature · 1 line
2.1.2
#1 lore raw

PATCH v7 2/2 dmaengine: Add Xilinx zynqmp dma engine driver support

Added the driver for zynqmp dma engine used in Zynq UltraScale+ MPSoC. This dma controller supports memory to memory and memory to I/O buffer transfers.

---
Changes for v7:
- Fixed kbuild compilation warnings.
- Fixed {src,dst}_addr_widths are supposed to be a bitmask of supported slave device widths as suggested by Rob.
Changes in v6:
- Removed unnecessary axcache properties from the driver
- Fixed compilation issues
Changes in v5:
- Removed in_interrupt check from the tasklet cleanup as suggested by the vinod/lars.
Changes in v4:
- Modified the defines to start with ZYNQMP_DMA perfix
- Changed the zynqmp_dma_alloc_chan_resources to return number of allocated descriptors
- Changed the zynqmp_dma_device variable name
- Released the locks before calling user callback
- freeup irq in zynqmp_dma_chan_remove function.
Changes in v3:
- Modified the zynqmp_dma_chan_is_idle function return type to bool Changes in v2:
- Corrected the function header documentation
- Framework expects bus-width value in bytes. so, fixed it
- Removed magic numbers for bus-width

 drivers/dma/Kconfig             |    6 +
 drivers/dma/xilinx/zynqmp_dma.c | 1232 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 1238 insertions(+)
 create mode 100644 drivers/dma/xilinx/zynqmp_dma.c
drivers/dma/Kconfig +6 -0
index 2846753..33dc427 100644
@@ -527,6 +527,12 @@ config ZX_DMA
 	help
 	  Support the DMA engine for ZTE ZX296702 platform devices.
 
+config XILINX_ZYNQMP_DMA
+	tristate "Xilinx ZynqMP DMA Engine"
+	depends on (ARCH_ZYNQ || MICROBLAZE || ARM64)
+	select DMA_ENGINE
+	help
+	  Enable support for Xilinx ZynqMP DMA controller.
 
 # driver files
 source "drivers/dma/bestcomm/Kconfig"
drivers/dma/xilinx/zynqmp_dma.c new file +1232 -0

1,232 lines not on this page · raw message

Signature · 1 line
2.1.2
#2 lore raw
In reply to Kedareswara rao Appana

On 04/27/2016 09:05 AM, Kedareswara rao Appana wrote:
[...]

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt line 24

Quoted 10 lines

+- xlnx,include-sg : Indicates the controller to operate in simple or

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +9 -0
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source side
+- xlnx,src-burst-len	: AXI length for data read. Support only power of
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power of

These are all software runtime configuration parameters that you'd want to change at runtime depending on which peripheral you are targeting with a specific DMA transfer. These really do not belong into the devicetree.

#3 lore raw

Hi Lars,

Quoted 27 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:lars at metafoo.de]
Sent: Wednesday, April 27, 2016 12:42 PM
To: Appana Durga Kedareswara Rao <[email protected]>;
robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>;
vinod.koul at intel.com; dan.j.williams at intel.com; Appana Durga Kedareswara Rao <[email protected]>; moritz.fischer at ettus.com; laurent.pinchart at ideasonboard.com; luis at debethencourt.com; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; dmaengine at vger.kernel.org
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

On 04/27/2016 09:05 AM, Kedareswara rao Appana wrote:
[...]

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt

Quoted 7 lines

+- xlnx,include-sg : Indicates the controller to operate in simple or

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +6 -0
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source

side

Quoted 7 lines

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt line 24

Quoted 3 lines

+- xlnx,src-burst-len : AXI length for data read. Support only power of

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +2 -0
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power of

These are all software runtime configuration parameters that you'd want to change at runtime depending on which peripheral you are targeting with a specific DMA transfer. These really do not belong into the devicetree.

You mean to have a separate config structure in the driver and handle the above parameters Through that structure???

I understand that above will work for slave dma transfer types what about memory to memory Transfers where we don't have provision to the use this parameters...

Regards,
Kedar.

#4 lore raw
Quoted 37 lines · Appana Durga Kedareswara Rao

Hi Lars,

Quoted 27 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:lars at metafoo.de]
Sent: Wednesday, April 27, 2016 12:42 PM
To: Appana Durga Kedareswara Rao <[email protected]>;
robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>;
vinod.koul at intel.com; dan.j.williams at intel.com; Appana Durga Kedareswara Rao <[email protected]>; moritz.fischer at ettus.com; laurent.pinchart at ideasonboard.com; luis at debethencourt.com; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; dmaengine at vger.kernel.org
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

On 04/27/2016 09:05 AM, Kedareswara rao Appana wrote:
[...]

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt

Quoted 7 lines

+- xlnx,include-sg : Indicates the controller to operate in simple or

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +6 -0
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source

side

Quoted 7 lines

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt line 24

Quoted 3 lines

+- xlnx,src-burst-len : AXI length for data read. Support only power of

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +2 -0
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power of

These are all software runtime configuration parameters that you'd want to change at runtime depending on which peripheral you are targeting with a specific DMA transfer. These really do not belong into the devicetree.

Quoted 5 lines

You mean to have a separate config structure in the driver and handle the above parameters Through that structure???

I understand that above will work for slave dma transfer types what about memory to memory Transfers where we don't have provision to the use this parameters...

These parameters are just as application specific as e.g. the DMA source/destination address or the DMA transfer length. If you want to use the DMA controller in a different configuration you'd have to re-compile the DTB and reboot your board, that is not really practical. Especially considering that you'd typically have multiple applications using the DMA controller in different configurations concurrently. In general if I have to reconfigure the DT depending on what application software is running something is fundamentally broken.

Derive these parameters at runtime depending on the requested transfer. E.g. some transfer types only work in SG mode, others only work in non-SG modes. For those which can work in both modes choose the one that is more efficient. Similar for the other parameters.

- Lars

#5 lore raw

Hi Lars,

Thanks for the review...

Quoted 70 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:lars at metafoo.de]
Sent: Wednesday, April 27, 2016 6:10 PM
To: Appana Durga Kedareswara Rao <[email protected]>;
robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>;
vinod.koul at intel.com; dan.j.williams at intel.com; moritz.fischer at ettus.com; laurent.pinchart at ideasonboard.com; luis at debethencourt.com; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; dmaengine at vger.kernel.org
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Quoted 36 lines · Appana Durga Kedareswara Rao

Hi Lars,

Quoted 34 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:lars at metafoo.de]
Sent: Wednesday, April 27, 2016 12:42 PM
To: Appana Durga Kedareswara Rao <[email protected]>;
robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>; vinod.koul at intel.com; dan.j.williams at intel.com; Appana Durga Kedareswara Rao <[email protected]>; moritz.fischer at ettus.com; laurent.pinchart at ideasonboard.com; luis at debethencourt.com; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; dmaengine at vger.kernel.org
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

On 04/27/2016 09:05 AM, Kedareswara rao Appana wrote:
[...]

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt

Quoted 7 lines

+- xlnx,include-sg : Indicates the controller to operate in simple or

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +6 -0
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source

side

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt line 24

Quoted 3 lines

+- xlnx,src-burst-len : AXI length for data read. Support only power of

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +2 -0
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power of

These are all software runtime configuration parameters that you'd want to change at runtime depending on which peripheral you are targeting with a specific DMA transfer. These really do not belong into the

devicetree.

Quoted 6 lines

You mean to have a separate config structure in the driver and handle the above parameters Through that structure???

I understand that above will work for slave dma transfer types what about memory to memory Transfers where we don't have provision to the use

this parameters...

These parameters are just as application specific as e.g. the DMA source/destination address or the DMA transfer length. If you want to use the DMA controller in a different configuration you'd have to re-compile the DTB and reboot your board, that is not really practical. Especially considering that you'd typically have multiple applications using the DMA controller in different configurations concurrently. In general if I have to reconfigure the DT depending on what application software is running something is fundamentally broken.

Quoted 4 lines

Derive these parameters at runtime depending on the requested transfer. E.g. some transfer types only work in SG mode, others only work in non-SG modes. For those which can work in both modes choose the one that is more efficient. Similar for the other parameters.

Ok will fix in the next version...
Will use module_params for the above properties.

Regards,
Kedar.

Quoted 2 lines

- Lars

#6 lore raw
Quoted 74 lines · Appana Durga Kedareswara Rao

Hi Lars,

Thanks for the review...

Quoted 70 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:lars at metafoo.de]
Sent: Wednesday, April 27, 2016 6:10 PM
To: Appana Durga Kedareswara Rao <[email protected]>;
robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>;
vinod.koul at intel.com; dan.j.williams at intel.com; moritz.fischer at ettus.com; laurent.pinchart at ideasonboard.com; luis at debethencourt.com; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; dmaengine at vger.kernel.org
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Quoted 36 lines · Appana Durga Kedareswara Rao

Hi Lars,

Quoted 34 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:lars at metafoo.de]
Sent: Wednesday, April 27, 2016 12:42 PM
To: Appana Durga Kedareswara Rao <[email protected]>;
robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>; vinod.koul at intel.com; dan.j.williams at intel.com; Appana Durga Kedareswara Rao <[email protected]>; moritz.fischer at ettus.com; laurent.pinchart at ideasonboard.com; luis at debethencourt.com; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; dmaengine at vger.kernel.org
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

On 04/27/2016 09:05 AM, Kedareswara rao Appana wrote:
[...]

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt

Quoted 7 lines

+- xlnx,include-sg : Indicates the controller to operate in simple or

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +6 -0
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source

side

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt line 24

Quoted 3 lines

+- xlnx,src-burst-len : AXI length for data read. Support only power of

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +2 -0
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power of

These are all software runtime configuration parameters that you'd want to change at runtime depending on which peripheral you are targeting with a specific DMA transfer. These really do not belong into the

devicetree.

Quoted 6 lines

You mean to have a separate config structure in the driver and handle the above parameters Through that structure???

I understand that above will work for slave dma transfer types what about memory to memory Transfers where we don't have provision to the use

this parameters...

These parameters are just as application specific as e.g. the DMA source/destination address or the DMA transfer length. If you want to use the DMA controller in a different configuration you'd have to re-compile the DTB and reboot your board, that is not really practical. Especially considering that you'd typically have multiple applications using the DMA controller in different configurations concurrently. In general if I have to reconfigure the DT depending on what application software is running something is fundamentally broken.

Quoted 7 lines
Quoted 4 lines

Derive these parameters at runtime depending on the requested transfer. E.g. some transfer types only work in SG mode, others only work in non-SG modes. For those which can work in both modes choose the one that is more efficient. Similar for the other parameters.

Ok will fix in the next version...
Will use module_params for the above properties.

Sorry, but that is just as broken. You need to derive those parameters from the DMA transfer as they are transfer specific.

#7 lore raw
Quoted 19 lines · Lars-Peter Clausen
Quoted 19 lines
Quoted 19 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:[email protected]]
Sent: Wednesday, April 27, 2016 6:10 PM
To: Appana Durga Kedareswara Rao <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: [email protected]; [email protected]; linux- [email protected]; [email protected]
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Quoted 2 lines · Appana Durga Kedareswara Rao

Hi Lars,

Quoted 15 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

-----Original Message-----
From: Lars-Peter Clausen [mailto:[email protected]]
Sent: Wednesday, April 27, 2016 12:42 PM
To: Appana Durga Kedareswara Rao <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Michal Simek <[email protected]>; Soren Brinkmann <[email protected]>;

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

[email protected]; [email protected]; Appana Durga Kedareswara Rao <[email protected]>; [email protected]; [email protected]; [email protected]; Anirudha Sarangi <[email protected]>; Punnaiah Choudary Kalluri <[email protected]>
Cc: [email protected]; [email protected]; linux- [email protected]; [email protected]
Subject: Re: [PATCH v7 1/2] Documentation: DT: dma: Add Xilinx zynqmp

PLEASE strip the crap from your MUA, better use a linux MUA

Quoted 37 lines
Quoted 37 lines
Quoted 36 lines
Quoted 8 lines
Quoted 8 lines

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt

Quoted 7 lines

+- xlnx,include-sg : Indicates the controller to operate in simple or

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +6 -0
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source

side

Quoted 7 lines
Quoted 7 lines

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt line 24

Quoted 3 lines

+- xlnx,src-burst-len : AXI length for data read. Support only power of

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +2 -0
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power of

These are all software runtime configuration parameters that you'd want to change at runtime depending on which peripheral you are targeting with a specific DMA transfer. These really do not belong into the

devicetree.

Quoted 6 lines

You mean to have a separate config structure in the driver and handle the above parameters Through that structure???

I understand that above will work for slave dma transfer types what about memory to memory Transfers where we don't have provision to the use

this parameters...

These parameters are just as application specific as e.g. the DMA source/destination address or the DMA transfer length. If you want to use the DMA controller in a different configuration you'd have to re-compile the DTB and reboot your board, that is not really practical. Especially considering that you'd typically have multiple applications using the DMA controller in different configurations concurrently. In general if I have to reconfigure the DT depending on what application software is running something is fundamentally broken.

Derive these parameters at runtime depending on the requested transfer. E.g. some transfer types only work in SG mode, others only work in non-SG modes. For those which can work in both modes choose the one that is more efficient. Similar for the other parameters.

Quoted 5 lines
Quoted 2 lines

Ok will fix in the next version...
Will use module_params for the above properties.

Sorry, but that is just as broken. You need to derive those parameters from the DMA transfer as they are transfer specific.

Right, for memcpy you should derive the parameters. Frankly burst size and lengths, rate control should be set to maximun to achives best performance on mecpy. People want memcpy to be done asap

Signature · 1 line
~Vinod
#8 lore raw

Hi Vinod,

Quoted 2 lines

PLEASE strip the crap from your MUA, better use a linux MUA

OK will fix Sorry for the noise...

Quoted 21 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+- xlnx,include-sg : Indicates the controller to operate in simple

or

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Review

Quoted 6 lines
(quoted diff) +6 -0
+			  scatter gather dma mode
+- xlnx,ratectrl		: Scheduling interval in terms of clock cycles for
+			  source AXI transaction
+- xlnx,overfetch	: Tells whether the channel is allowed to over
+			  fetch the data
+- xlnx,src-issue	: Number of AXI outstanding transactions on source

side

Quoted 1 line

+- xlnx,src-burst-len : AXI length for data read. Support only power

of

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+			  2 byte values.
+- xlnx,dst-burst-len	: AXI length for data write. Support only power

of

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

These are all software runtime configuration parameters that you'd want to change at runtime depending on which peripheral you are targeting with a specific DMA transfer. These really do not belong into

Quoted 6 lines
Quoted 2 lines

Sorry, but that is just as broken. You need to derive those parameters from the DMA transfer as they are transfer specific.

Right, for memcpy you should derive the parameters. Frankly burst size and lengths, rate control should be set to maximun to achives best performance on mecpy. People want memcpy to be done asap

Ok Will fix in the next version of the patch...

Regards,
Kedar.