Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jan Petrous (OSS)" <jan.petrous@oss.nxp.com>
Cc: wsa+renesas@sang-engineering.com, linux-pci@vger.kernel.org,
	vkoul@kernel.org, olteanv@gmail.com, Frank.Li@kernel.org,
	robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org,
	imx@lists.linux.dev, linux-phy@lists.infradead.org,
	neil.armstrong@linaro.org
Subject: Re: [PATCH RFC v3 11/12] arm64: dts: s32g: Add PCIe controller nodes
Date: Sun, 20 Sep 2026 06:55:02 +0000	[thread overview]
Message-ID: <20260920065502.6CE271F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260919-s32g_serdes-v3-11-9d68868c1e89@oss.nxp.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] pcie: dt-bindings: invalid 32-bit space code for 64-bit PCI window
--

commit 584612463291c6e4c640175e9ad62d085a5e585d
Author: Jan Petrous (OSS) <jan.petrous@oss.nxp.com>

arm64: dts: s32g: Add PCIe controller nodes

This commit adds the disabled PCIe controller nodes (pcie0 and pcie1)
for the S32G2 and S32G3 SoCs. It includes register mappings, interrupts,
and the ranges properties for mapping PCI addresses to CPU memory.

> diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi
> index 404913b208fb8..539840340318d 100644
> --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi
> +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi
[ ... ]
> @@ -918,7 +918,88 @@ gic: interrupt-controller@50800000 {
[ ... ]
> +	pcie0: pcie@40400000 {
> +		compatible = "nxp,s32g2-pcie";
> +		reg = <0x00 0x40400000 0x0 0x00001000>,	/* dbi */
[ ... ]
> +		ranges = <0x01000000 0x0 0x00000000 0x5f 0xfffe0000 0x0 0x00010000>,
> +			 <0x02000000 0x0 0x00000000 0x58 0x00000000 0x0 0x80000000>,
> +			 <0x02000000 0x1 0x00000000 0x59 0x00000000 0x6 0xfffe0000>;

[Severity: Medium]
Does this ranges property use an incorrect 32-bit space code for a 64-bit PCI
window?

The third entry maps a 64-bit PCI address (0x1 0x00000000) and a size over 4GB
(0x6 0xfffe0000), but starts with the 32-bit memory space code (0x02000000).

According to Open Firmware PCI bindings, regions with addresses or sizes
exceeding 32 bits should use the 64-bit memory space code (0x03000000 for
non-prefetchable or 0x43000000 for prefetchable).

Could this cause device tree parsers in the kernel or U-Boot to reject the
mapping or truncate the address, potentially leading to functional failures for
devices needing memory in this range?

[ ... ]
> +	pcie1: pcie@44100000 {
> +		compatible = "nxp,s32g2-pcie";
> +		reg = <0x00 0x44100000 0x0 0x00001000>,	/* dbi */
[ ... ]
> +		ranges = <0x01000000 0x0 0x00000000 0x4f 0xfffe0000 0x0 0x00010000>,
> +			 <0x02000000 0x0 0x00000000 0x48 0x00000000 0x0 0x80000000>,
> +			 <0x02000000 0x1 0x00000000 0x49 0x00000000 0x6 0xfffe0000>;

[Severity: Medium]
Is this code also using a 32-bit memory space code (0x02000000) for a 64-bit
PCI window?

> diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi
> index 0d001b2895c61..fdf086363c020 100644
> --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi
> +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi
[ ... ]
> @@ -1069,6 +1070,86 @@ gic: interrupt-controller@50800000 {
[ ... ]
> +	pcie0: pcie@40400000 {
> +		compatible = "nxp,s32g3-pcie", "nxp,s32g2-pcie";
> +		reg = <0x00 0x40400000 0x0 0x00001000>,	/* dbi */
[ ... ]
> +		ranges = <0x01000000 0x0 0x00000000 0x5f 0xfffe0000 0x0 0x00010000>,
> +			 <0x02000000 0x0 0x00000000 0x58 0x00000000 0x0 0x80000000>,
> +			 <0x02000000 0x1 0x00000000 0x59 0x00000000 0x6 0xfffe0000>;

[Severity: Medium]
Is this code also using a 32-bit memory space code (0x02000000) for a 64-bit
PCI window?

[ ... ]
> +	pcie1: pcie@44100000 {
> +		compatible = "nxp,s32g3-pcie", "nxp,s32g2-pcie";
> +		reg = <0x00 0x44100000 0x0 0x00001000>,	/* dbi */
[ ... ]
> +		ranges = <0x01000000 0x0 0x00000000 0x4f 0xfffe0000 0x0 0x00010000>,
> +			 <0x02000000 0x0 0x00000000 0x48 0x00000000 0x0 0x80000000>,
> +			 <0x02000000 0x1 0x00000000 0x49 0x00000000 0x6 0xfffe0000>;

[Severity: Medium]
Is this code also using a 32-bit memory space code (0x02000000) for a 64-bit
PCI window?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260919-s32g_serdes-v3-0-9d68868c1e89@oss.nxp.com?part=11

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-09-20  6:55 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19  6:54 [PATCH RFC v3 00/12] Add support for the NXP S32G SerDes subsystem Jan Petrous via B4 Relay
2026-09-19  6:54 ` [PATCH RFC v3 01/12] dt-bindings: phy: Add " Jan Petrous via B4 Relay
2026-09-20  6:54   ` sashiko-bot
2026-09-19  6:54 ` [PATCH RFC v3 02/12] dt-bindings: net: nxp,s32-dwmac: Document pcs-handle Jan Petrous via B4 Relay
2026-09-20  6:54   ` sashiko-bot
2026-09-19  6:54 ` [PATCH RFC v3 03/12] dt-bindings: PCI: nxp,s32g-pcie: Fix SerDes PHY phandle in example Jan Petrous via B4 Relay
2026-09-20  6:54   ` sashiko-bot
2026-09-19  6:54 ` [PATCH RFC v3 04/12] net: pcs: add NXP SerDes XPCS shared core Jan Petrous via B4 Relay
2026-09-19 15:31   ` Maxime Chevallier
2026-09-19 16:31     ` Coia Prant
2026-09-20  6:54   ` sashiko-bot
2026-09-20 18:39   ` Andrew Lunn
2026-09-19  6:54 ` [PATCH RFC v3 05/12] net: pcs: Add NXP S32G XPCS driver Jan Petrous via B4 Relay
2026-09-20  6:54   ` sashiko-bot
2026-09-20 17:07   ` Andrew Lunn
2026-09-19  6:54 ` [PATCH RFC v3 06/12] phy: freescale: s32g: Add SerDes subsystem PHY Jan Petrous via B4 Relay
2026-09-20  6:54   ` sashiko-bot
2026-09-19  6:54 ` [PATCH RFC v3 07/12] net: stmmac: dwmac-s32: Add SGMII support Jan Petrous via B4 Relay
2026-09-19 12:04   ` Maxime Chevallier
2026-09-20  6:54   ` sashiko-bot
2026-09-19  6:54 ` [PATCH RFC v3 08/12] MAINTAINERS: Add NXP S32G SerDes and SerDes xPCS core entries Jan Petrous via B4 Relay
2026-09-19  6:54 ` [PATCH RFC v3 09/12] arm64: dts: s32g: Add SCMI reset controller Jan Petrous via B4 Relay
2026-09-20  6:54   ` sashiko-bot
2026-09-19  6:54 ` [PATCH RFC v3 10/12] arm64: dts: s32g: Add SerDes controller nodes Jan Petrous via B4 Relay
2026-09-20  6:55   ` sashiko-bot
2026-09-19  6:54 ` [PATCH RFC v3 11/12] arm64: dts: s32g: Add PCIe " Jan Petrous via B4 Relay
2026-09-20  6:55   ` sashiko-bot [this message]
2026-09-19  6:54 ` [PATCH RFC v3 12/12] arm64: dts: s32g: Add S32G3-RDB3 SerDes routing variants Jan Petrous via B4 Relay
2026-09-20  6:55   ` 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=20260920065502.6CE271F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=jan.petrous@oss.nxp.com \
    --cc=linux-pci@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=wsa+renesas@sang-engineering.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox