From: sashiko-bot@kernel.org
To: "Wayne Chang" <waynec@nvidia.com>
Cc: vkoul@kernel.org, linux-phy@lists.infradead.org,
olteanv@gmail.com, conor+dt@kernel.org,
devicetree@vger.kernel.org, robh@kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH V2 3/8] arm64: tegra: Enable XUSB host function on Jetson AGX Thor
Date: Mon, 31 Aug 2026 21:28:05 +0000 [thread overview]
Message-ID: <20260831212805.CED7A1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260831185835.3732707-4-waynec@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Incorrect use of the GIC_SPI macro for GICv3 Extended SPIs (ESPIs), leading to invalid hardware IRQ mapping and kernel warnings at boot.
--
commit 25f7b692b008d6ac4dd9bcab2f8ae074b1c59801
Author: Wayne Chang <waynec@nvidia.com>
arm64: tegra: Enable XUSB host function on Jetson AGX Thor
Enable XUSB host and pad controller on Jetson AGX Thor.
> diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> index 013228a817237..e59b1b0a5b925 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> @@ -4147,6 +4147,160 @@ pci@8480000 {
> nvidia,bpmp = <&bpmp 5>;
> status = "disabled";
> };
> +
> + xusb_padctl: padctl@8680000 {
> + compatible = "nvidia,tegra264-xusb-padctl";
> + reg = <0x00 0x8680000 0x00 0x20000>,
> + <0x00 0x86a0000 0x00 0x10000>;
> + reg-names = "padctl", "ao";
> + interrupts = <GIC_SPI 4101 IRQ_TYPE_LEVEL_HIGH>;
[Severity: Medium]
Does this use of GIC_SPI for INTID 4101 lead to an incorrect hardware IRQ
mapping?
The GICv3 DT bindings limit GIC_SPI indices to 0-987. During system boot,
when parsing the device tree to set up interrupts for padctl@8680000, indices
greater than 987 emit a warning and map to index + 32, which would compute to
4133 instead of 4101.
Should this use the GIC_ESPI macro with a 0-based index (e.g., GIC_ESPI 5) to
correctly specify the ESPI?
[ ... ]
> + usb@aa10000 {
> + compatible = "nvidia,tegra264-xusb";
> + reg = <0x00 0xaa10000 0x00 0x40000>,
> + <0x00 0xaa00000 0x00 0x10000>,
> + <0x00 0xaa50000 0x00 0x10000>;
> + reg-names = "hcd", "fpci", "bar2";
> +
> + interrupts-extended = <&gic GIC_SPI 952 IRQ_TYPE_LEVEL_HIGH>,
> + <&gic GIC_SPI 4096 IRQ_TYPE_LEVEL_HIGH>,
[Severity: Medium]
Similarly, does this map to the wrong hardware interrupt (4128 instead of
4096) due to the use of GIC_SPI for an ESPI?
This will likely trigger a "SPI 4096 out of range (use ESPI?)" warning during
boot when parsing the usb@aa10000 node, and could break USB functionality.
Should this use GIC_ESPI 0 instead?
> + <&pmc 79 IRQ_TYPE_LEVEL_HIGH>,
> + <&pmc 80 IRQ_TYPE_LEVEL_HIGH>,
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260831185835.3732707-1-waynec@nvidia.com?part=3
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Wayne Chang" <waynec@nvidia.com>
Cc: vkoul@kernel.org, linux-phy@lists.infradead.org,
olteanv@gmail.com, conor+dt@kernel.org,
devicetree@vger.kernel.org, robh@kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH V2 3/8] arm64: tegra: Enable XUSB host function on Jetson AGX Thor
Date: Mon, 31 Aug 2026 21:28:05 +0000 [thread overview]
Message-ID: <20260831212805.CED7A1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260831185835.3732707-4-waynec@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Incorrect use of the GIC_SPI macro for GICv3 Extended SPIs (ESPIs), leading to invalid hardware IRQ mapping and kernel warnings at boot.
--
commit 25f7b692b008d6ac4dd9bcab2f8ae074b1c59801
Author: Wayne Chang <waynec@nvidia.com>
arm64: tegra: Enable XUSB host function on Jetson AGX Thor
Enable XUSB host and pad controller on Jetson AGX Thor.
> diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> index 013228a817237..e59b1b0a5b925 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> @@ -4147,6 +4147,160 @@ pci@8480000 {
> nvidia,bpmp = <&bpmp 5>;
> status = "disabled";
> };
> +
> + xusb_padctl: padctl@8680000 {
> + compatible = "nvidia,tegra264-xusb-padctl";
> + reg = <0x00 0x8680000 0x00 0x20000>,
> + <0x00 0x86a0000 0x00 0x10000>;
> + reg-names = "padctl", "ao";
> + interrupts = <GIC_SPI 4101 IRQ_TYPE_LEVEL_HIGH>;
[Severity: Medium]
Does this use of GIC_SPI for INTID 4101 lead to an incorrect hardware IRQ
mapping?
The GICv3 DT bindings limit GIC_SPI indices to 0-987. During system boot,
when parsing the device tree to set up interrupts for padctl@8680000, indices
greater than 987 emit a warning and map to index + 32, which would compute to
4133 instead of 4101.
Should this use the GIC_ESPI macro with a 0-based index (e.g., GIC_ESPI 5) to
correctly specify the ESPI?
[ ... ]
> + usb@aa10000 {
> + compatible = "nvidia,tegra264-xusb";
> + reg = <0x00 0xaa10000 0x00 0x40000>,
> + <0x00 0xaa00000 0x00 0x10000>,
> + <0x00 0xaa50000 0x00 0x10000>;
> + reg-names = "hcd", "fpci", "bar2";
> +
> + interrupts-extended = <&gic GIC_SPI 952 IRQ_TYPE_LEVEL_HIGH>,
> + <&gic GIC_SPI 4096 IRQ_TYPE_LEVEL_HIGH>,
[Severity: Medium]
Similarly, does this map to the wrong hardware interrupt (4128 instead of
4096) due to the use of GIC_SPI for an ESPI?
This will likely trigger a "SPI 4096 out of range (use ESPI?)" warning during
boot when parsing the usb@aa10000 node, and could break USB functionality.
Should this use GIC_ESPI 0 instead?
> + <&pmc 79 IRQ_TYPE_LEVEL_HIGH>,
> + <&pmc 80 IRQ_TYPE_LEVEL_HIGH>,
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260831185835.3732707-1-waynec@nvidia.com?part=3
next prev parent reply other threads:[~2026-08-31 21:28 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 18:58 [PATCH V2 0/8] Enable USB host functions on Jetson AGX Thor Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 1/8] dt-bindings: phy: tegra-xusb: Add support for Tegra264 Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-09-01 10:06 ` Krzysztof Kozlowski
2026-09-01 10:06 ` Krzysztof Kozlowski
2026-09-03 7:04 ` Wayne Chang
2026-09-03 7:04 ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 2/8] dt-bindings: usb: Add Tegra264 XUSB host support Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-09-01 10:10 ` Krzysztof Kozlowski
2026-09-01 10:10 ` Krzysztof Kozlowski
2026-09-03 7:11 ` Wayne Chang
2026-09-03 7:11 ` Wayne Chang
2026-09-03 8:07 ` Krzysztof Kozlowski
2026-09-03 8:07 ` Krzysztof Kozlowski
2026-09-03 8:13 ` Wayne Chang
2026-09-03 8:13 ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 3/8] arm64: tegra: Enable XUSB host function on Jetson AGX Thor Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-08-31 21:28 ` sashiko-bot [this message]
2026-08-31 21:28 ` sashiko-bot
2026-08-31 18:58 ` [PATCH V2 4/8] phy: tegra: xusb: Use devm_clk_get_optional to fetch USB2 tracking clock Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-08-31 21:38 ` sashiko-bot
2026-08-31 21:38 ` sashiko-bot
2026-08-31 18:58 ` [PATCH V2 5/8] phy: tegra: xusb: Increase timeout for USB2_TRK_COMPLETED polling Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 6/8] phy: tegra: xusb: Add Tegra264 support Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 7/8] usb: host: xhci-tegra: Skip MBOX MSG_ENABLED on Tegra264 Wayne Chang
2026-08-31 18:58 ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 8/8] usb: host: xhci-tegra: Add Tegra264 XHCI support Wayne Chang
2026-08-31 18:58 ` Wayne Chang
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=20260831212805.CED7A1F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.org \
--cc=waynec@nvidia.com \
/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.