* [PATCH v6 1/4] dt-bindings: dma: xlnx,zynqmp-dma: Require resets for Versal Gen2
2026-12-02 12:05 [PATCH v6 0/4] dmaengine: zynqmp_dma: Add reset support for Versal Gen2 and Versal Net Golla Nagendra
@ 2026-12-02 12:05 ` Golla Nagendra
2026-12-02 12:05 ` [PATCH v6 2/4] dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible Golla Nagendra
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Golla Nagendra @ 2026-12-02 12:05 UTC (permalink / raw)
To: Vinod Koul, Frank Li, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Michal Simek, Michael Tretter, Harini Katakam,
Shyam Pandey
Cc: Krzysztof Kozlowski, dmaengine, devicetree, linux-arm-kernel,
linux-kernel, git, Golla Nagendra, Frank Li
Require the per-channel resets property for Versal Gen2
DMA devices, which expose dedicated reset lines.
Making resets required for Versal Gen2 results in an ABI break, but this
is unavoidable. While the driver works in many scenarios when no other
firmware has used the DMA prior to Linux boot, there is no guarantee the
channel is left in a clean state. In observed error scenarios, a reset is
necessary before Linux can reconfigure the IP after previous use by other
firmware components. Due to configuration differences or the DMA being
left in a bad state, DMA functionality fails when sequential software
components use the channel (e.g., firmware before Linux boot). The channel
can only be cleanly re-configured after a per-channel reset, making it
essential. This ABI break is only applied to Versal Gen2 and where the
per-channel reset capability is available.
Fixes: 36545c6a68b8 ("dt-bindings: dmaengine: zynqmp_dma: Add a new compatible string")
Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
---
.../bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml
index 2da86037ad79..59dec441307e 100644
--- a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml
+++ b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml
@@ -16,9 +16,6 @@ maintainers:
- Harini Katakam <harini.katakam@amd.com>
- Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
-allOf:
- - $ref: ../dma-controller.yaml#
-
properties:
"#dma-cells":
const: 1
@@ -59,6 +56,9 @@ properties:
power-domains:
maxItems: 1
+ resets:
+ maxItems: 1
+
dma-coherent: true
required:
@@ -70,6 +70,21 @@ required:
- clock-names
- xlnx,bus-width
+allOf:
+ - $ref: ../dma-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - amd,versal2-dma-1.0
+ then:
+ required:
+ - resets
+ else:
+ properties:
+ resets: false
+
additionalProperties: false
examples:
--
2.43.7
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v6 2/4] dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible
2026-12-02 12:05 [PATCH v6 0/4] dmaengine: zynqmp_dma: Add reset support for Versal Gen2 and Versal Net Golla Nagendra
2026-12-02 12:05 ` [PATCH v6 1/4] dt-bindings: dma: xlnx,zynqmp-dma: Require resets for Versal Gen2 Golla Nagendra
@ 2026-12-02 12:05 ` Golla Nagendra
2026-12-02 12:05 ` [PATCH v6 3/4] dmaengine: zynqmp_dma: Add new compatible string for Versal Net Golla Nagendra
2026-12-02 12:05 ` [PATCH v6 4/4] dmaengine: zynqmp_dma: Add per-channel reset support Golla Nagendra
3 siblings, 0 replies; 9+ messages in thread
From: Golla Nagendra @ 2026-12-02 12:05 UTC (permalink / raw)
To: Vinod Koul, Frank Li, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Michal Simek, Michael Tretter, Harini Katakam,
Shyam Pandey
Cc: Krzysztof Kozlowski, dmaengine, devicetree, linux-arm-kernel,
linux-kernel, git, Golla Nagendra, Frank Li
Add support for the amd,versal-net-dma-1.0 compatible with
xlnx,zynqmp-dma-1.0 as its fallback compatible.
Include the Versal Net compatible in the reset requirements,
making the per-channel resets property mandatory for Versal Net
devices.
Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
---
.../bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml
index 59dec441307e..7efbcf282a14 100644
--- a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml
+++ b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml
@@ -21,9 +21,13 @@ properties:
const: 1
compatible:
- enum:
- - amd,versal2-dma-1.0
- - xlnx,zynqmp-dma-1.0
+ oneOf:
+ - enum:
+ - amd,versal2-dma-1.0
+ - xlnx,zynqmp-dma-1.0
+ - items:
+ - const: amd,versal-net-dma-1.0
+ - const: xlnx,zynqmp-dma-1.0
reg:
description: memory map for gdma/adma module access
@@ -78,6 +82,7 @@ allOf:
contains:
enum:
- amd,versal2-dma-1.0
+ - amd,versal-net-dma-1.0
then:
required:
- resets
@@ -91,7 +96,7 @@ examples:
- |
fpd_dma_chan1: dma-controller@fd500000 {
- compatible = "xlnx,zynqmp-dma-1.0";
+ compatible = "amd,versal-net-dma-1.0", "xlnx,zynqmp-dma-1.0";
reg = <0xfd500000 0x1000>;
interrupt-parent = <&gic>;
interrupts = <0 117 0x4>;
@@ -99,5 +104,6 @@ examples:
clock-names = "clk_main", "clk_apb";
clocks = <&zynqmp_clk 19>, <&zynqmp_clk 31>;
xlnx,bus-width = <128>;
+ resets = <&reset 0>;
dma-coherent;
};
--
2.43.7
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v6 3/4] dmaengine: zynqmp_dma: Add new compatible string for Versal Net
2026-12-02 12:05 [PATCH v6 0/4] dmaengine: zynqmp_dma: Add reset support for Versal Gen2 and Versal Net Golla Nagendra
2026-12-02 12:05 ` [PATCH v6 1/4] dt-bindings: dma: xlnx,zynqmp-dma: Require resets for Versal Gen2 Golla Nagendra
2026-12-02 12:05 ` [PATCH v6 2/4] dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible Golla Nagendra
@ 2026-12-02 12:05 ` Golla Nagendra
2026-12-02 16:52 ` Pandey, Radhey Shyam
2026-12-02 12:05 ` [PATCH v6 4/4] dmaengine: zynqmp_dma: Add per-channel reset support Golla Nagendra
3 siblings, 1 reply; 9+ messages in thread
From: Golla Nagendra @ 2026-12-02 12:05 UTC (permalink / raw)
To: Vinod Koul, Frank Li, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Michal Simek, Michael Tretter, Harini Katakam,
Shyam Pandey
Cc: Krzysztof Kozlowski, dmaengine, devicetree, linux-arm-kernel,
linux-kernel, git, Golla Nagendra
Versal Net previously used the legacy xlnx,zynqmp-dma-1.0 compatible
string. Add amd,versal-net-dma-1.0 to the of_device_id match table
without match data; the driver uses the base IRQ register offset by
default.
Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
---
drivers/dma/xilinx/zynqmp_dma.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
index 3b7dfa53f972..dd6679266d3e 100644
--- a/drivers/dma/xilinx/zynqmp_dma.c
+++ b/drivers/dma/xilinx/zynqmp_dma.c
@@ -1193,6 +1193,7 @@ static void zynqmp_dma_remove(struct platform_device *pdev)
static const struct of_device_id zynqmp_dma_of_match[] = {
{ .compatible = "amd,versal2-dma-1.0", .data = &versal2_dma_config },
+ { .compatible = "amd,versal-net-dma-1.0", },
{ .compatible = "xlnx,zynqmp-dma-1.0", },
{}
};
--
2.43.7
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH v6 3/4] dmaengine: zynqmp_dma: Add new compatible string for Versal Net
2026-12-02 12:05 ` [PATCH v6 3/4] dmaengine: zynqmp_dma: Add new compatible string for Versal Net Golla Nagendra
@ 2026-12-02 16:52 ` Pandey, Radhey Shyam
2026-12-02 20:03 ` Frank Li
0 siblings, 1 reply; 9+ messages in thread
From: Pandey, Radhey Shyam @ 2026-12-02 16:52 UTC (permalink / raw)
To: Golla Nagendra, Vinod Koul, Frank Li, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Michal Simek, Michael Tretter,
Harini Katakam, Shyam Pandey
Cc: Krzysztof Kozlowski, dmaengine, devicetree, linux-arm-kernel,
linux-kernel, git
On 12/2/2026 5:35 PM, Golla Nagendra wrote:
> Versal Net previously used the legacy xlnx,zynqmp-dma-1.0 compatible
> string. Add amd,versal-net-dma-1.0 to the of_device_id match table
> without match data; the driver uses the base IRQ register offset by
> default.
>
> Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
> ---
The binding declares amd,versal-net-dma-1.0 with xlnx,zynqmp-dma-1.0 as
its fallback, so OF matching already binds this through the existing
xlnx,zynqmp-dma-1.0 entry. Neither entry carries match data, so adding
it changes nothing. I think we can skip this patch but let's wait
for other reviewers.
> drivers/dma/xilinx/zynqmp_dma.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
> index 3b7dfa53f972..dd6679266d3e 100644
> --- a/drivers/dma/xilinx/zynqmp_dma.c
> +++ b/drivers/dma/xilinx/zynqmp_dma.c
> @@ -1193,6 +1193,7 @@ static void zynqmp_dma_remove(struct platform_device *pdev)
>
> static const struct of_device_id zynqmp_dma_of_match[] = {
> { .compatible = "amd,versal2-dma-1.0", .data = &versal2_dma_config },
> + { .compatible = "amd,versal-net-dma-1.0", },
> { .compatible = "xlnx,zynqmp-dma-1.0", },
> {}
> };
>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH v6 3/4] dmaengine: zynqmp_dma: Add new compatible string for Versal Net
2026-12-02 16:52 ` Pandey, Radhey Shyam
@ 2026-12-02 20:03 ` Frank Li
0 siblings, 0 replies; 9+ messages in thread
From: Frank Li @ 2026-12-02 20:03 UTC (permalink / raw)
To: Pandey, Radhey Shyam
Cc: Golla Nagendra, Vinod Koul, Frank Li, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Michal Simek, Michael Tretter,
Harini Katakam, Shyam Pandey, Krzysztof Kozlowski, dmaengine,
devicetree, linux-arm-kernel, linux-kernel, git
On Wed, Dec 02, 2026 at 10:22:27PM +0530, Pandey, Radhey Shyam wrote:
> On 12/2/2026 5:35 PM, Golla Nagendra wrote:
> > Versal Net previously used the legacy xlnx,zynqmp-dma-1.0 compatible
> > string. Add amd,versal-net-dma-1.0 to the of_device_id match table
> > without match data; the driver uses the base IRQ register offset by
> > default.
> >
> > Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
> > ---
>
> The binding declares amd,versal-net-dma-1.0 with xlnx,zynqmp-dma-1.0 as
> its fallback, so OF matching already binds this through the existing
> xlnx,zynqmp-dma-1.0 entry. Neither entry carries match data, so adding
> it changes nothing. I think we can skip this patch but let's wait
> for other reviewers.
Yes, needn't this patch.
Frank
>
> > drivers/dma/xilinx/zynqmp_dma.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
> > index 3b7dfa53f972..dd6679266d3e 100644
> > --- a/drivers/dma/xilinx/zynqmp_dma.c
> > +++ b/drivers/dma/xilinx/zynqmp_dma.c
> > @@ -1193,6 +1193,7 @@ static void zynqmp_dma_remove(struct platform_device *pdev)
> > static const struct of_device_id zynqmp_dma_of_match[] = {
> > { .compatible = "amd,versal2-dma-1.0", .data = &versal2_dma_config },
> > + { .compatible = "amd,versal-net-dma-1.0", },
> > { .compatible = "xlnx,zynqmp-dma-1.0", },
> > {}
> > };
> >
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v6 4/4] dmaengine: zynqmp_dma: Add per-channel reset support
2026-12-02 12:05 [PATCH v6 0/4] dmaengine: zynqmp_dma: Add reset support for Versal Gen2 and Versal Net Golla Nagendra
` (2 preceding siblings ...)
2026-12-02 12:05 ` [PATCH v6 3/4] dmaengine: zynqmp_dma: Add new compatible string for Versal Net Golla Nagendra
@ 2026-12-02 12:05 ` Golla Nagendra
2026-12-02 12:31 ` Pandey, Radhey Shyam
2026-12-02 20:04 ` Frank Li
3 siblings, 2 replies; 9+ messages in thread
From: Golla Nagendra @ 2026-12-02 12:05 UTC (permalink / raw)
To: Vinod Koul, Frank Li, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Michal Simek, Michael Tretter, Harini Katakam,
Shyam Pandey
Cc: Krzysztof Kozlowski, dmaengine, devicetree, linux-arm-kernel,
linux-kernel, git, Golla Nagendra
Versal Gen2 and Versal Net expose a dedicated reset line per ZDMA
channel. Trigger a reset pulse during probe using
device_reset_optional().
The binding requires resets for Versal Gen2 and Versal Net and forbids
them for the legacy xlnx,zynqmp-dma-1.0 compatible. Since the same probe
path serves all three, use device_reset_optional() to reset the channel
when a reset is described while allowing legacy devices to continue
probing.
The binding's per-compatible reset requirements are validated by
dtbs_check, so duplicating the compatible-specific check in the driver
is unnecessary.
Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
---
drivers/dma/xilinx/zynqmp_dma.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
index dd6679266d3e..1fd6e668604c 100644
--- a/drivers/dma/xilinx/zynqmp_dma.c
+++ b/drivers/dma/xilinx/zynqmp_dma.c
@@ -19,6 +19,7 @@
#include <linux/clk.h>
#include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/pm_runtime.h>
+#include <linux/reset.h>
#include "../dmaengine.h"
@@ -930,6 +931,11 @@ static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev,
if (IS_ERR(chan->regs))
return PTR_ERR(chan->regs);
+ err = device_reset_optional(&pdev->dev);
+ if (err)
+ return dev_err_probe(&pdev->dev, err,
+ "failed to reset channel\n");
+
chan->bus_width = ZYNQMP_DMA_BUS_WIDTH_64;
chan->dst_burst_len = ZYNQMP_DMA_MAX_DST_BURST_LEN;
chan->src_burst_len = ZYNQMP_DMA_MAX_SRC_BURST_LEN;
--
2.43.7
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH v6 4/4] dmaengine: zynqmp_dma: Add per-channel reset support
2026-12-02 12:05 ` [PATCH v6 4/4] dmaengine: zynqmp_dma: Add per-channel reset support Golla Nagendra
@ 2026-12-02 12:31 ` Pandey, Radhey Shyam
2026-12-02 20:04 ` Frank Li
1 sibling, 0 replies; 9+ messages in thread
From: Pandey, Radhey Shyam @ 2026-12-02 12:31 UTC (permalink / raw)
To: Golla Nagendra, Vinod Koul, Frank Li, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Michal Simek, Michael Tretter,
Harini Katakam, Shyam Pandey
Cc: Krzysztof Kozlowski, dmaengine, devicetree, linux-arm-kernel,
linux-kernel, git
On 12/2/2026 5:35 PM, Golla Nagendra wrote:
> Versal Gen2 and Versal Net expose a dedicated reset line per ZDMA
> channel. Trigger a reset pulse during probe using
> device_reset_optional().
>
> The binding requires resets for Versal Gen2 and Versal Net and forbids
> them for the legacy xlnx,zynqmp-dma-1.0 compatible. Since the same probe
> path serves all three, use device_reset_optional() to reset the channel
> when a reset is described while allowing legacy devices to continue
> probing.
>
> The binding's per-compatible reset requirements are validated by
> dtbs_check, so duplicating the compatible-specific check in the driver
> is unnecessary.
>
> Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Thanks!
> ---
> drivers/dma/xilinx/zynqmp_dma.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
> index dd6679266d3e..1fd6e668604c 100644
> --- a/drivers/dma/xilinx/zynqmp_dma.c
> +++ b/drivers/dma/xilinx/zynqmp_dma.c
> @@ -19,6 +19,7 @@
> #include <linux/clk.h>
> #include <linux/io-64-nonatomic-lo-hi.h>
> #include <linux/pm_runtime.h>
> +#include <linux/reset.h>
>
> #include "../dmaengine.h"
>
> @@ -930,6 +931,11 @@ static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev,
> if (IS_ERR(chan->regs))
> return PTR_ERR(chan->regs);
>
> + err = device_reset_optional(&pdev->dev);
> + if (err)
> + return dev_err_probe(&pdev->dev, err,
> + "failed to reset channel\n");
> +
> chan->bus_width = ZYNQMP_DMA_BUS_WIDTH_64;
> chan->dst_burst_len = ZYNQMP_DMA_MAX_DST_BURST_LEN;
> chan->src_burst_len = ZYNQMP_DMA_MAX_SRC_BURST_LEN;
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v6 4/4] dmaengine: zynqmp_dma: Add per-channel reset support
2026-12-02 12:05 ` [PATCH v6 4/4] dmaengine: zynqmp_dma: Add per-channel reset support Golla Nagendra
2026-12-02 12:31 ` Pandey, Radhey Shyam
@ 2026-12-02 20:04 ` Frank Li
1 sibling, 0 replies; 9+ messages in thread
From: Frank Li @ 2026-12-02 20:04 UTC (permalink / raw)
To: Golla Nagendra
Cc: Vinod Koul, Frank Li, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Michal Simek, Michael Tretter, Harini Katakam,
Shyam Pandey, Krzysztof Kozlowski, dmaengine, devicetree,
linux-arm-kernel, linux-kernel, git
On Wed, Dec 02, 2026 at 05:35:56PM +0530, Golla Nagendra wrote:
> Versal Gen2 and Versal Net expose a dedicated reset line per ZDMA
> channel. Trigger a reset pulse during probe using
> device_reset_optional().
>
> The binding requires resets for Versal Gen2 and Versal Net and forbids
> them for the legacy xlnx,zynqmp-dma-1.0 compatible. Since the same probe
> path serves all three, use device_reset_optional() to reset the channel
> when a reset is described while allowing legacy devices to continue
> probing.
>
> The binding's per-compatible reset requirements are validated by
> dtbs_check, so duplicating the compatible-specific check in the driver
> is unnecessary.
>
> Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> drivers/dma/xilinx/zynqmp_dma.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
> index dd6679266d3e..1fd6e668604c 100644
> --- a/drivers/dma/xilinx/zynqmp_dma.c
> +++ b/drivers/dma/xilinx/zynqmp_dma.c
> @@ -19,6 +19,7 @@
> #include <linux/clk.h>
> #include <linux/io-64-nonatomic-lo-hi.h>
> #include <linux/pm_runtime.h>
> +#include <linux/reset.h>
>
> #include "../dmaengine.h"
>
> @@ -930,6 +931,11 @@ static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev,
> if (IS_ERR(chan->regs))
> return PTR_ERR(chan->regs);
>
> + err = device_reset_optional(&pdev->dev);
> + if (err)
> + return dev_err_probe(&pdev->dev, err,
> + "failed to reset channel\n");
> +
> chan->bus_width = ZYNQMP_DMA_BUS_WIDTH_64;
> chan->dst_burst_len = ZYNQMP_DMA_MAX_DST_BURST_LEN;
> chan->src_burst_len = ZYNQMP_DMA_MAX_SRC_BURST_LEN;
>
> --
> 2.43.7
>
^ permalink raw reply [flat|nested] 9+ messages in thread