All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 4/7] arm64: dts: mediatek: mt8186: Add and use UART AP_DMA controller
Date: Tue, 07 Jul 2026 16:37:42 +0000	[thread overview]
Message-ID: <20260707163743.359E31F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260707154841.198870-5-angelogioacchino.delregno@collabora.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] GICv3 SPI interrupt trigger type misconfigured as IRQ_TYPE_LEVEL_LOW.
--

--- Patch [4]: [PATCH v2 4/7] arm64: dts: mediatek: mt8186: Add and use UART AP_DMA controller ---
commit b99bac1b2094c2b77703f91408de574bf47c0652
Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arm64: dts: mediatek: mt8186: Add and use UART AP_DMA controller

This commit adds the AP_DMA controller node to the MT8186 device tree. It also
assigns the appropriate transmit and receive DMA channels to the three UART
controllers to increase data transfer efficiency.

> diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
[ ... ]
> @@ -1142,6 +1142,22 @@ systimer: timer@10017000 {
>  			clocks = <&clk13m>;
>  		};
>  
> +		apdma: dma-controller@10200d80 {
> +			compatible = "mediatek,mt8186-uart-dma", "mediatek,mt6835-uart-dma";
> +			reg = <0 0x10200d80 0 0x80>, <0 0x10200e00 0 0x80>,
> +			      <0 0x10200e80 0 0x80>, <0 0x10200f00 0 0x80>,
> +			      <0 0x10200f80 0 0x80>, <0 0x10201000 0 0x80>;
> +			interrupts = <GIC_SPI 376 IRQ_TYPE_LEVEL_LOW 0>,
> +				     <GIC_SPI 377 IRQ_TYPE_LEVEL_LOW 0>,
> +				     <GIC_SPI 378 IRQ_TYPE_LEVEL_LOW 0>,
> +				     <GIC_SPI 379 IRQ_TYPE_LEVEL_LOW 0>,
> +				     <GIC_SPI 380 IRQ_TYPE_LEVEL_LOW 0>,
> +				     <GIC_SPI 381 IRQ_TYPE_LEVEL_LOW 0>;
                                                      ^^^^^^^^^^^^^^^^^^

[Severity: High]
Are active-low interrupts supported by the parent controller on this system?

These interrupts are configured as IRQ_TYPE_LEVEL_LOW, but the parent GICv3
controller natively rejects active-low SPIs.

Unlike older MediaTek systems that featured an intermediate sysirq polarity
inverter, won't the GICv3 driver return -EINVAL during request_irq() and fail
to configure the UART DMA channels?

> +			clocks = <&infracfg_ao CLK_INFRA_AO_AP_DMA>;
> +			#dma-cells = <1>;
> +			dma-requests = <6>;
> +		};
> +

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260707154841.198870-1-angelogioacchino.delregno@collabora.com?part=4

  reply	other threads:[~2026-07-07 16:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 15:48 [PATCH v2 0/7] dts: Add and use UART AP_DMA controller on MTK SoCs AngeloGioacchino Del Regno
2026-07-07 15:48 ` [PATCH v2 1/7] arm64: dts: mediatek: mt6795: Remove deprecated UART DMA property AngeloGioacchino Del Regno
2026-07-07 15:48 ` [PATCH v2 2/7] arm64: dts: mediatek: mt8173: Add and use UART AP_DMA controller AngeloGioacchino Del Regno
2026-07-07 16:16   ` sashiko-bot
2026-07-07 15:48 ` [PATCH v2 3/7] arm64: dts: mediatek: mt8183: " AngeloGioacchino Del Regno
2026-07-07 15:48 ` [PATCH v2 4/7] arm64: dts: mediatek: mt8186: " AngeloGioacchino Del Regno
2026-07-07 16:37   ` sashiko-bot [this message]
2026-07-07 15:48 ` [PATCH v2 5/7] arm64: dts: mediatek: mt8188: " AngeloGioacchino Del Regno
2026-07-07 15:48 ` [PATCH v2 6/7] arm64: dts: mediatek: mt8192: " AngeloGioacchino Del Regno
2026-07-07 15:48 ` [PATCH v2 7/7] arm64: dts: mediatek: mt8195: " AngeloGioacchino Del Regno
2026-07-07 16:54   ` sashiko-bot

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=20260707163743.359E31F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=angelogioacchino.delregno@collabora.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.