Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: nord: wire up GPI DMA for QUP I2C/SPI engines
Date: Mon, 21 Sep 2026 14:57:25 +0000	[thread overview]
Message-ID: <20260921145725.692791F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921-nord-gpi-dts-v2-2-4f297c983b94@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] dts: qcom: SPI DMA properties mistakenly added to UART nodes
--

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

arm64: dts: qcom: nord: wire up GPI DMA for QUP I2C/SPI engines

This commit adds DMA phandles to I2C and SPI QUPv3 serial engine nodes
in the device tree.

> diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
> index 9f4e0e1498c32..906e4e67f03c7 100644
> --- a/arch/arm64/boot/dts/qcom/nord.dtsi
> +++ b/arch/arm64/boot/dts/qcom/nord.dtsi

[ ... ]

> @@ -1184,6 +1220,10 @@ uart0: serial@980000 {
>  				reg = <0x0 0x00980000 0x0 0x4000>;
>  				interrupts = <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>;
>  
> +				dmas = <&gpi_dma0 0 0 QCOM_GPI_SPI>,
> +				       <&gpi_dma0 1 0 QCOM_GPI_SPI>;
> +				dma-names = "tx", "rx";
> +
>  				status = "disabled";
>  			};

[Severity: High]
Does this mistakenly add the SPI DMA configuration to the uart0 node
instead of a spi node?

In the Qualcomm GPI DMA driver, gpi_terminate_all() determines how to
terminate channels based on the protocol. If the protocol is QCOM_GPI_UART,
it terminates the TX or RX channel independently. If the protocol is set
to QCOM_GPI_SPI, it assumes a synchronous protocol and forces both the TX
and RX channels to be terminated and reset in lockstep.

If QCOM_GPI_SPI is applied to asynchronous uart nodes, won't this cause
data loss? For example, if the UART driver terminates one channel to flush
an RX timeout, the DMA driver will silently reset the other active TX channel
mid-transfer, dropping characters.

This same QCOM_GPI_SPI configuration appears to be mistakenly applied to
uart1, uart2, uart3, uart7, uart8, uart11, and uart12 later in this patch.

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

  reply	other threads:[~2026-09-21 14:57 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
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 [this message]
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=20260921145725.692791F000FF@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