From: sashiko-bot@kernel.org
To: "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v3 2/7] arm64: dts: mediatek: mt8173: Add and use UART AP_DMA controller
Date: Thu, 09 Jul 2026 09:17:00 +0000 [thread overview]
Message-ID: <20260709091701.098811F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260709090924.27056-3-angelogioacchino.delregno@collabora.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The AP_DMA controller specifies `dma-requests = <8>` but only provides 6 `reg` and 6 `interrupts` entries, which causes the APDMA driver to fail during probe. Additionally, the patch omits DMA assignments for `uart0` despite the commit message claiming to configure all four UART controllers.
--
--- Patch [2]: [PATCH v3 2/7] arm64: dts: mediatek: mt8173: Add and use UART AP_DMA controller ---
commit ac8a25e005302375b885a8325819560714cb8e2c
Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arm64: dts: mediatek: mt8173: Add and use UART AP_DMA controller
This commit adds the UART AP_DMA controller to the mt8173 device tree.
It also assigns DMA channels to the UART controllers to increase TX/RX
efficiency.
> In order to increase the efficiency of data TX/RX over the UART
> controllers, add the UART DMA controller and assign the right
> channels to each of the four UART controllers.
[Severity: High]
The commit message mentions assigning channels to each of the four UART
controllers, but only uart1, uart2, and uart3 are updated in the patch. Is
uart0 intentionally missing?
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
[ ... ]
> + apdma: dma-controller@11000400 {
> + compatible = "mediatek,mt8173-uart-dma", "mediatek,mt6577-uart-dma";
> + reg = <0 0x11000400 0 0x80>, <0 0x11000480 0 0x80>,
> + <0 0x11000500 0 0x80>, <0 0x11000580 0 0x80>,
> + <0 0x11000600 0 0x80>, <0 0x11000680 0 0x80>;
> + interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>,
> + <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>,
> + <GIC_SPI 99 IRQ_TYPE_LEVEL_LOW>,
> + <GIC_SPI 100 IRQ_TYPE_LEVEL_LOW>,
> + <GIC_SPI 101 IRQ_TYPE_LEVEL_LOW>,
> + <GIC_SPI 102 IRQ_TYPE_LEVEL_LOW>;
> + clocks = <&pericfg CLK_PERI_AP_DMA>;
> + #dma-cells = <1>;
> + dma-requests = <8>;
[Severity: High]
Does this dma-requests count of 8 match the provided reg and interrupts
arrays?
The mtk-uart-apdma driver iterates dma-requests times during probe. With only
6 resources defined in the reg and interrupts arrays,
devm_platform_ioremap_resource() will fail with -EINVAL when trying to map
the missing resources. This will cause the probe to abort, unconditionally
breaking DMA for all UARTs on this SoC.
Should dma-requests be 6 here since uart0 was omitted, or are there missing
reg and interrupts entries that should be added?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260709090924.27056-1-angelogioacchino.delregno@collabora.com?part=2
next prev parent reply other threads:[~2026-07-09 9:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 9:09 [PATCH v3 0/7] Add and use UART AP_DMA controller on MTK SoCs AngeloGioacchino Del Regno
2026-07-09 9:09 ` [PATCH v3 1/7] arm64: dts: mediatek: mt6795: Remove deprecated UART DMA property AngeloGioacchino Del Regno
2026-07-09 9:09 ` [PATCH v3 2/7] arm64: dts: mediatek: mt8173: Add and use UART AP_DMA controller AngeloGioacchino Del Regno
2026-07-09 9:17 ` sashiko-bot [this message]
2026-07-09 10:46 ` AngeloGioacchino Del Regno
2026-07-09 9:09 ` [PATCH v3 3/7] arm64: dts: mediatek: mt8183: " AngeloGioacchino Del Regno
2026-07-09 9:09 ` [PATCH v3 4/7] arm64: dts: mediatek: mt8186: " AngeloGioacchino Del Regno
2026-07-09 9:09 ` [PATCH v3 5/7] arm64: dts: mediatek: mt8188: " AngeloGioacchino Del Regno
2026-07-09 9:09 ` [PATCH v3 6/7] arm64: dts: mediatek: mt8192: " AngeloGioacchino Del Regno
2026-07-09 9:09 ` [PATCH v3 7/7] arm64: dts: mediatek: mt8195: " AngeloGioacchino Del Regno
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=20260709091701.098811F000E9@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox