From: "Ng, Adrian Ho Yin" <adrian.ho.yin.ng@altera.com>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v7 1/2] arm64: dts: intel: agilex5: add USB3.1 controller node
Date: Mon, 14 Sep 2026 11:08:26 +0800 [thread overview]
Message-ID: <2309bdc2-f095-4982-96b8-f751a07d2ecd@altera.com> (raw)
In-Reply-To: <20260911091955.52BF31F00893@smtp.kernel.org>
On 9/11/2026 5:19 PM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
> - [High] Missing fallback compatible string prevents the DWC3 controller from probing.
> - [Medium] Devicetree Topology / Address Space Overflow in DMA ranges mapping.
> --
>
> commit f5eee55ab58207528984fe03c0204fcdede698dd
> Author: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>
> Date: Fri Sep 11 09:09:24 2026 +0000
>
> arm64: dts: intel: agilex5: add USB3.1 controller node
>
> This commit adds a devicetree node for the Synopsys DWC3 USB3.1 controller on
> the Agilex5 SoC. It places the controller under a simple-bus with a 40-bit
> dma-ranges window to match the interconnect's DMA address width. The
> controller is also enabled in host mode for the SoCDK board.
>
>> diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi
>> index f54767d1526e1..523f722a2a642 100644
>> --- a/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi
>> +++ b/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi
>> @@ -493,6 +493,41 @@ usb0: usb@10b00000 {
>> status = "disabled";
>> };
>>
>> + usb31_bus: usb-bus@11000000 {
>> + compatible = "simple-bus";
>> + #address-cells = <2>;
>> + #size-cells = <2>;
>> + ranges = <0x0 0x0 0x11000000 0x0 0x100000>;
>> + /*
>> + * USB interconnect DMA is limited to 40-bit addresses
>> + * (1 TiB window from 0).
>> + */
>> + dma-ranges = <0x0 0x0 0x0 0x100 0x0>;
>
> [Severity: Medium]
> Does this dma-ranges mapping structurally overflow the parent bus?
>
> This property specifies a 1 TiB window (0x100 0x0) and maps it into the parent
> bus which only has 32-bit address capacity. Since a 32-bit bus can
> mathematically only address up to 4 GB, could this cause DMA configuration
> failures or silent truncations depending on how the OF core parses the tree?
Disagree because: the entry matches DT cell rules for this bus, and the
size describes the DMA interconnect aperture, not soc MMIO capacity.
usb31_bus: #address-cells=<2>,#size-cells=<2>; parent soc:
#address-cells=<1> => dma-ranges cells = 2 + 1 + 2:
<0x0 0x0 0x0 0x100 0x0> /* child DMA, parent CPU, 1 TiB size */
OF parses this by cell counts (of_dma_get_range); it does not truncate
the size to the parent's 32-bit MMIO window. Same 40-bit dma-ranges
pattern is already used by dma-bus@10db0000 in this dtsi.
>
>> +
>> + usb31: usb@0 {
>> + compatible = "altr,agilex5-dwc3";
>
> [Severity: High]
> Will the USB subsystem fail to bind to this device without a generic fallback?
>
> This node specifies a SoC-specific compatible string but does not include a
> generic fallback string like "snps,dwc3". Because there is no matching driver
> in the kernel for "altr,agilex5-dwc3", won't the DWC3 core driver silently
> ignore this node and leave the controller unprobed?
>
Disagree because: Agilex5 uses the dwc3-generic-plat path with a
dedicated compatible, not a glue parent + child "snps,dwc3" node.
Adding "snps,dwc3" would violate the binding and could make
drivers/usb/dwc3 core match the same node. Probe does not require a
generic fallback here.
> [ ... ]
>
next prev parent reply other threads:[~2026-09-14 3:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 9:09 [PATCH v7 0/2] arm64: dts: intel: agilex5: enable USB3.1 on SoCDK adrian.ho.yin.ng
2026-09-11 9:09 ` [PATCH v7 1/2] arm64: dts: intel: agilex5: add USB3.1 controller node adrian.ho.yin.ng
2026-09-11 9:19 ` sashiko-bot
2026-09-14 3:08 ` Ng, Adrian Ho Yin [this message]
2026-09-19 7:21 ` Krzysztof Kozlowski
2026-09-11 9:09 ` [PATCH v7 2/2] arm64: dts: intel: agilex5: remove usb0 in Agilex5 SoCDK adrian.ho.yin.ng
2026-09-18 16:22 ` [PATCH v7 0/2] arm64: dts: intel: agilex5: enable USB3.1 on SoCDK Dinh Nguyen
2026-09-21 14:00 ` [PATCH v8 " Adrian Ng Ho Yin
2026-09-21 14:00 ` [PATCH v8 1/2] arm64: dts: intel: agilex5: add USB3.1 controller node Adrian Ng Ho Yin
2026-09-21 14:00 ` [PATCH v8 2/2] arm64: dts: intel: agilex5: remove usb0 in Agilex5 SoCDK Adrian Ng Ho Yin
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=2309bdc2-f095-4982-96b8-f751a07d2ecd@altera.com \
--to=adrian.ho.yin.ng@altera.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