Devicetree
 help / color / mirror / Atom feed
From: "Golla, Nagendra" <Nagendra.Golla@amd.com>
To: sashiko-reviews@lists.linux.dev
Cc: conor+dt@kernel.org, dmaengine@vger.kernel.org,
	Frank.Li@kernel.org, robh@kernel.org, devicetree@vger.kernel.org,
	vkoul@kernel.org
Subject: Re: [PATCH V3 4/6] dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible support
Date: Tue, 11 Aug 2026 16:20:02 +0530	[thread overview]
Message-ID: <dbe65c0d-c969-4fc0-a30a-cfbb6d25069a@amd.com> (raw)
In-Reply-To: <20260810102010.215D71F00A3A@smtp.kernel.org>

Hi,

On 8/10/2026 3:50 PM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] Invalid fallback compatible string `xlnx,zynqmp-dma-1.0` for `amd,versal-net-dma-1.0`.
> --
> 
> --- Patch [4]: [PATCH V3 4/6] dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible support ---
> commit c94f71cbb3b4d274afbe8968d6bb108158803292
> Author: Jay Buddhabhatti <jay.buddhabhatti@amd.com>
> 
> dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible support
> 
> This commit introduces the amd,versal-net-dma-1.0 compatible string with a
> fallback to xlnx,zynqmp-dma-1.0. It also adds a required per-channel reset
> property for Versal Gen2 and Versal Net because the DMA channel must be
> reset to clear the state left by firmware.
> 
>> 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 2da86037ad79e..87c65aef5c7d3 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
> 
> [ ... ]
> 
>> @@ -18,15 +18,31 @@ maintainers:
>>   properties:
>>     "#dma-cells":
>>       const: 1
>>   
>>     compatible:
>> -    enum:
>> -      - amd,versal2-dma-1.0
>> -      - xlnx,zynqmp-dma-1.0
>> +    oneOf:
>> +      - const: amd,versal2-dma-1.0
>> +      - const: xlnx,zynqmp-dma-1.0
>> +      - items:
>> +          - const: amd,versal-net-dma-1.0
>> +          - const: xlnx,zynqmp-dma-1.0
> 
> [Severity: Medium]
> Is this fallback compatible string appropriate here?
> 
> The commit message explicitly states that a DMA channel reset is essential
> because the device is left in a bad state by firmware, and DMA functionality
> fails without it.
> 
> If a device tree is parsed by an older OS using the fallback
> xlnx,zynqmp-dma-1.0 driver, it will attempt to operate the hardware without
> knowing about the new resets property. Since the older driver cannot perform
> the required channel reset, won't the DMA functionality fail just as
> described?
> 
> Should the fallback be removed if the older driver cannot reliably operate
> the device?
Thanks for the review

The fallback to xlnx,zynqmp-dma-1.0 is intentional. The reset is only 
needed when firmware has already used the DMA channel before Linux boots 
and left it in a bad state. If Linux is the first to use the channel 
after power-on, no reset is needed and the fallback driver works fine.

Removing the fallback would mean Versal Net cannot be probed at all on 
kernels that do not have this support yet, which would break existing 
users who do not have the firmware pre-use scenario.

Users who need the reset must use a kernel with this support, which will 
match amd,versal-net-dma-1.0 directly and perform the reset.

Thanks,
Nagendra
> 


  reply	other threads:[~2026-08-11 10:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10 10:04 [PATCH V3 0/6] dmaengine: zynqmp_dma: Per-channel reset, IRQ guard improvements, and PM fixes Golla Nagendra
2026-08-10 10:04 ` [PATCH V3 1/6] dmaengine: zynqmp_dma: Fix PM usage count handling in probe error path Golla Nagendra
2026-08-10 10:28   ` sashiko-bot
2026-08-11 10:55     ` Golla, Nagendra
2026-08-11 16:13   ` Frank Li
2026-08-10 10:04 ` [PATCH V3 2/6] PM: runtime: Add pm_runtime_if_active guard and conditional variant Golla Nagendra
2026-08-10 10:25   ` sashiko-bot
2026-08-11 10:54     ` Golla, Nagendra
2026-08-10 10:04 ` [PATCH V3 3/6] dmaengine: zynqmp_dma: Guard IRQ handler against spurious interrupts Golla Nagendra
2026-08-10 10:04 ` [PATCH V3 4/6] dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible support Golla Nagendra
2026-08-10 10:20   ` sashiko-bot
2026-08-11 10:50     ` Golla, Nagendra [this message]
2026-08-11 16:41   ` Frank Li
2026-08-10 10:04 ` [PATCH V3 5/6] dmaengine: zynqmp_dma: Add new compatible string for Versal Net Golla Nagendra
2026-08-10 10:20   ` sashiko-bot
2026-08-11 10:52     ` Golla, Nagendra
2026-08-10 10:04 ` [PATCH V3 6/6] dmaengine: zynqmp_dma: Add per-channel reset support Golla Nagendra

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=dbe65c0d-c969-4fc0-a30a-cfbb6d25069a@amd.com \
    --to=nagendra.golla@amd.com \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --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