Skip to contentSkip to conversation

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

PATCH Superseded Kedareswara rao Appana 3 participants 7 messages Apr 15, 2016 – Apr 22, 2016

Subsystems (3)

v6 of 12 Superseded Latest is v12 →

lore
Share & tools
lore
#0 lore raw

PATCH v6 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 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 v6 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 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             |    5 +
 drivers/dma/xilinx/Makefile     |    1 +
 drivers/dma/xilinx/zynqmp_dma.c | 1231 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 1237 insertions(+)
 create mode 100644 drivers/dma/xilinx/zynqmp_dma.c
drivers/dma/Kconfig +5 -0
index d96d87c..dd6a38c 100644
@@ -527,6 +527,11 @@ config ZX_DMA
 	help
 	  Support the DMA engine for ZTE ZX296702 platform devices.
 
+config XILINX_ZYNQMP_DMA
+	tristate "Xilinx ZynqMP DMA Engine"
+	select DMA_ENGINE
+	help
+	  Enable support for Xilinx ZynqMP DMA controller.
 
 # driver files
 source "drivers/dma/bestcomm/Kconfig"
drivers/dma/xilinx/Makefile +1 -0
index 3c4e9f2..95469dc 100644
@@ -1 +1,2 @@
 obj-$(CONFIG_XILINX_VDMA) += xilinx_vdma.o
+obj-$(CONFIG_XILINX_ZYNQMP_DMA) += zynqmp_dma.o
drivers/dma/xilinx/zynqmp_dma.c new file +1231 -0

1,231 lines not on this page · raw message

Signature · 1 line
2.1.2
#2 lore raw

Re: [PATCH v6 2/2] dmaengine: Add Xilinx zynqmp dma engine driver support

reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…

Hi Kedareswara,

[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.6-rc3 next-20160415]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Kedareswara-rao-Appana/Documentation-DT-dma-Add-Xilinx-zynqmp-dma-device-tree-binding-documentation/20160415-165623
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux for-next
config: sparc64-allmodconfig (attached as .config)

reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64

All warnings (new ones prefixed by >>):

drivers/dma/xilinx/zynqmp_dma.c: In function 'zynqmp_dma_config_sg_ll_desc':

>> drivers/dma/xilinx/zynqmp_dma.c:371:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
           ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v);
            ^
   drivers/dma/xilinx/zynqmp_dma.c:371:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
           ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v);
                                ^

vim +371 drivers/dma/xilinx/zynqmp_dma.c

355 struct zynqmp_dma_desc_ll *prev)
356 {
357 struct zynqmp_dma_desc_ll *ddesc = sdesc + 1;
358
359 sdesc->size = ddesc->size = len;
360 sdesc->addr = src;
361 ddesc->addr = dst;
362
363 sdesc->ctrl = ddesc->ctrl = ZYNQMP_DMA_DESC_CTRL_SIZE_256;
364 if (chan->is_dmacoherent) {
365 sdesc->ctrl |= ZYNQMP_DMA_DESC_CTRL_COHRNT;
366 ddesc->ctrl |= ZYNQMP_DMA_DESC_CTRL_COHRNT;
367 }
368
369 if (prev) {
370 dma_addr_t addr = chan->desc_pool_p +

 > 371				    ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v);

372 ddesc = prev + 1;
373 prev->nxtdscraddr = addr;
374 ddesc->nxtdscraddr = addr + ZYNQMP_DMA_DESC_SIZE(chan);
375 }
376 }
377
378 /**
379 * zynqmp_dma_init - Initialize the channel

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 45798 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160415/01ab2406/attachment-0001.obj>

maintainer
#3 lore raw
In reply to Kedareswara rao Appana
Quoted 31 lines · Kedareswara rao Appana

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

---
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 +0 -0
new file mode 100644
index 0000000..f0f0b54

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

Quoted 10 lines
Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +10 -0
@@ -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

I think how this is getting used by the driver is wrong. {src,dst}_addr_widths are supposed to be a bitmask of supported slave device register widths. You aren't doing a bitmask and you are also saying you only support slaves with 8 or 16 byte data registers which is somewhat rare. It may happen to work because 128/8 == BIT(4). However, the documentation for the field is contradictory in that it says 1,2,4 or 8 byte widths are supported, but the enum has more sizes.

Rob

#4 lore raw

Hi Rob,

Thanks for the review...

Quoted 64 lines

-----Original Message-----
From: Rob Herring [mailto:robh at kernel.org]
Sent: Thursday, April 21, 2016 7:12 PM
To: Appana Durga Kedareswara Rao <[email protected]>
Cc: 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]>; 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 v6 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Quoted 11 lines · Kedareswara rao Appana

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

---
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).

Quoted 11 lines

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

++++++++++++++++++++++

Quoted 2 lines
 1 file changed, 44 insertions(+)
 create mode 100644

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

Review

Quoted 2 lines
(quoted diff) +0 -0

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

Quoted 5 lines

new file mode 100644
index 0000000..f0f0b54

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

Quoted 10 lines
Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +10 -0
@@ -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
Quoted 7 lines

I think how this is getting used by the driver is wrong. {src,dst}_addr_widths are supposed to be a bitmask of supported slave device register widths. You aren't doing a bitmask and you are also saying you only support slaves with 8 or 16 byte data registers which is somewhat rare. It may happen to work because 128/8 == BIT(4). However, the documentation for the field is contradictory in that it says 1,2,4 or 8 byte widths are supported, but the enum has more sizes.

The DMA supports an AXI bus width of 128/64 bits only.
Please refer IP data sheet. http://www.xilinx.com/support/documentation/user_guides/ug1085-zynq-ultrascale-trm.pdf Page No: 359(DMA Over fetch section).

That's why during probe we are making the dma_device supported source and destination address widths accordingly based on the DT property.

Snap shot of driver code from the probe:

       struct dma_device *p; 
       p->dst_addr_widths = zdev->chan->bus_width / 8;
       p->src_addr_widths = zdev->chan->bus_width / 8;

Where bus_width property is read from the probe.
err = of_property_read_u32(node, "xlnx,bus-width", &chan->bus_width)

Cheers!,
Kedar...

Quoted 2 lines

Rob

maintainer
#5 lore raw
Quoted 77 lines · Appana Durga Kedareswara Rao

Hi Rob,

Thanks for the review...

Quoted 64 lines

-----Original Message-----
From: Rob Herring [mailto:robh at kernel.org]
Sent: Thursday, April 21, 2016 7:12 PM
To: Appana Durga Kedareswara Rao <[email protected]>
Cc: 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]>; 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 v6 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Quoted 11 lines · Kedareswara rao Appana

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

---
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).

Quoted 11 lines

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

++++++++++++++++++++++

Quoted 2 lines
 1 file changed, 44 insertions(+)
 create mode 100644

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

Review

Quoted 2 lines
(quoted diff) +0 -0

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

Quoted 5 lines

new file mode 100644
index 0000000..f0f0b54

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

Quoted 10 lines
Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +10 -0
@@ -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
Quoted 7 lines

I think how this is getting used by the driver is wrong. {src,dst}_addr_widths are supposed to be a bitmask of supported slave device register widths. You aren't doing a bitmask and you are also saying you only support slaves with 8 or 16 byte data registers which is somewhat rare. It may happen to work because 128/8 == BIT(4). However, the documentation for the field is contradictory in that it says 1,2,4 or 8 byte widths are supported, but the enum has more sizes.

Quoted 2 lines

The DMA supports an AXI bus width of 128/64 bits only.
Please refer IP data sheet. http://www.xilinx.com/support/documentation/user_guides/ug1085-zynq-ultrascale-trm.pdf Page No: 359(DMA Over fetch section).

I understand that. That should not really matter if the AXI master properly sets byte lane strobes other than defining max burst length which you already have defined elsewhere.

Quoted 6 lines

That's why during probe we are making the dma_device supported source and destination address widths accordingly based on the DT property.

Snap shot of driver code from the probe:

       struct dma_device *p;
       p->dst_addr_widths = zdev->chan->bus_width / 8;
       p->src_addr_widths = zdev->chan->bus_width / 8;

Read what I wrote before and read the documentation for these fields. They are bitmasks.

Rob

#6 lore raw

Hi Rob,

Quoted 111 lines

-----Original Message-----
From: dmaengine-owner at vger.kernel.org [mailto:dmaengine-
owner at vger.kernel.org] On Behalf Of Rob Herring
Sent: Friday, April 22, 2016 9:43 PM
To: Appana Durga Kedareswara Rao <[email protected]>
Cc: 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]>; 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 v6 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Quoted 54 lines · Appana Durga Kedareswara Rao

Hi Rob,

Thanks for the review...

Quoted 50 lines

-----Original Message-----
From: Rob Herring [mailto:robh at kernel.org]
Sent: Thursday, April 21, 2016 7:12 PM
To: Appana Durga Kedareswara Rao <[email protected]>
Cc: 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]>; 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 v6 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

Quoted 5 lines · Kedareswara rao Appana

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

Quoted 7 lines

---
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).

Quoted 11 lines

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

++++++++++++++++++++++

Quoted 2 lines
 1 file changed, 44 insertions(+)
 create mode 100644

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

Quoted 3 lines

diff --git a/Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt

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

Quoted 8 lines
Quoted 8 lines

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

Quoted 8 lines

new file mode 100644
index 0000000..f0f0b54

Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +3 -0
@@ -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.

Quoted 17 lines
Quoted 8 lines

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

Quoted 7 lines
Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt new file +7 -0
+
+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
Quoted 7 lines

I think how this is getting used by the driver is wrong. {src,dst}_addr_widths are supposed to be a bitmask of supported slave device register widths. You aren't doing a bitmask and you are also saying you only support slaves with 8 or 16 byte data registers which is somewhat rare. It may happen to work because 128/8 == BIT(4). However, the documentation for the field is contradictory in that it says 1,2,4 or 8 byte widths are supported, but the enum has more sizes.

Quoted 2 lines

The DMA supports an AXI bus width of 128/64 bits only. Please refer IP data sheet.

http://www.xilinx.com/support/documentation/user_guides/ug1085-zynq-
ultrascale-trm.pdf Page No: 359(DMA Over fetch section).

I understand that. That should not really matter if the AXI master properly sets byte lane strobes other than defining max burst length which you already have defined elsewhere.

Quoted 1 line

That's why during probe we are making the dma_device supported source and

destination address widths accordingly based on the DT property.

Quoted 1 line
Quoted 7 lines
Quoted 4 lines

Snap shot of driver code from the probe:

       struct dma_device *p;
       p->dst_addr_widths = zdev->chan->bus_width / 8;
       p->src_addr_widths = zdev->chan->bus_width / 8;

Read what I wrote before and read the documentation for these fields. They are bitmasks.

I misunderstood the question that you asked yesterday. Now I got clarified. Will fix it in the next version of the patch... Thanks for the detailed explanation.

Regards,
Kedar.

Quoted 6 lines

Rob
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo at vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html