Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/2] arm64: dts: qcom: nord: add GPI DMA controller nodes
Date: Mon, 21 Sep 2026 14:58:41 +0000	[thread overview]
Message-ID: <20260921145841.F1E521F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260921-nord-gpi-dts-v2-1-4f297c983b94@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] dts: scrambled interrupts array in gpi_dma0 causes DMA timeouts
- [Low] dts: undocumented compatible string 'qcom,nord-gpi-dma'
--

commit 707c09883742930c1c91a2275e454e20b950b1e1
Author: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

    arm64: dts: qcom: nord: add GPI DMA controller nodes

This commit adds GPI DMA controller nodes for all three QUPv3 engines in the
qcom nord device tree.

> diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
> index e0496fd40c308..9f4e0e1498c32 100644
> --- a/arch/arm64/boot/dts/qcom/nord.dtsi
> +++ b/arch/arm64/boot/dts/qcom/nord.dtsi
[ ... ]
> @@ -909,6 +910,28 @@ soc: soc@0 {
>  		dma-ranges = <0 0 0 0 0x10 0>;
>  		ranges = <0 0 0 0 0x10 0>;
>  
> +		gpi_dma2: dma-controller@800000 {
> +			compatible = "qcom,nord-gpi-dma", "qcom,sm6350-gpi-dma";

[Severity: Low]
Does this new compatible string lack documentation in the dt-bindings?

Running dtbs_check validation will fail because the compatible string
"qcom,nord-gpi-dma" is not defined in
Documentation/devicetree/bindings/dma/qcom,gpi.yaml.

This only affects build/validation tooling, not runtime behavior, as the
kernel will successfully match on the fallback string "qcom,sm6350-gpi-dma".

> +			reg = <0x0 0x00800000 0x0 0x60000>;
> +			#dma-cells = <3>;
[ ... ]
> @@ -1107,6 +1130,28 @@ uart20: serial@898000 {
>  			};
>  		};
>  
> +		gpi_dma0: dma-controller@900000 {
> +			compatible = "qcom,nord-gpi-dma", "qcom,sm6350-gpi-dma";

[Severity: Low]
Is "qcom,nord-gpi-dma" documented in the dt-bindings?

Like the gpi_dma2 node above, dtbs_check validation will fail because this
new compatible string is not defined in
Documentation/devicetree/bindings/dma/qcom,gpi.yaml.

> +			reg = <0x0 0x00900000 0x0 0x60000>;
> +			#dma-cells = <3>;
> +			interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,

[Severity: High]
Does this unordered list of interrupts break the IRQ-to-GPII instance mapping
in the driver?

The interrupts array for gpi_dma0 interleaves IRQs from distinct blocks
(116-121 and 205-223). The GPI DMA driver in drivers/dma/qcom/gpi.c maps
each hardware GPII instance to the corresponding interrupt in the DT array
using platform_get_irq().

Because of the scrambling, the driver will request the wrong IRQ lines for
its active GPII instances (e.g., requesting IRQ 205 instead of 117 for
instance 1). This is a static hardware configuration error that
unconditionally breaks DMA functionality for this block on boot, as
transfers on QUPv3_0 peripherals will time out because completion interrupts
are routed to the wrong handlers.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-nord-gpi-dts-v2-0-4f297c983b94@oss.qualcomm.com?part=1

  reply	other threads:[~2026-09-21 14:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 14:46 [PATCH v2 0/2] arm64: dts: qcom: nord: add GPI DMA nodes Bartosz Golaszewski
2026-09-21 14:46 ` [PATCH v2 1/2] arm64: dts: qcom: nord: add GPI DMA controller nodes Bartosz Golaszewski
2026-09-21 14:58   ` sashiko-bot [this message]
2026-09-22  2:51   ` Shawn Guo
2026-09-22  5:34   ` Mukesh Savaliya
2026-09-22  8:24     ` Bartosz Golaszewski
2026-09-23 12:40       ` Konrad Dybcio
2026-09-24  8:50         ` Mukesh Savaliya
2026-09-24  8:55           ` Bartosz Golaszewski
2026-09-24  9:16             ` Konrad Dybcio
2026-09-21 14:46 ` [PATCH v2 2/2] arm64: dts: qcom: nord: wire up GPI DMA for QUP I2C/SPI engines Bartosz Golaszewski
2026-09-21 14:57   ` sashiko-bot
2026-09-22  2:52   ` Shawn Guo

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=20260921145841.F1E521F00898@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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