The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: dts: imx9x: Fix PCIe memory window overlap with System RAM
@ 2026-08-21  5:43 hongxing.zhu
  2026-08-21  5:43 ` [PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap hongxing.zhu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: hongxing.zhu @ 2026-08-21  5:43 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, frank.li, s.hauer, festevam
  Cc: kernel, devicetree, imx, linux-arm-kernel, linux-kernel, linux

This patch series fix PCIe non-prefetchable memory window overlap with
system DRAM on i.MX9 series SoCs (imx95, imx94, and imx943).

The current address 0xe0000000 conflicts with DRAM regions. Sashiko
reports the potential issue in previous review:

The fix relocates the PCI bus address to 0x10000000, a reserved and safe
range. The other PCI bus address and window size remain unchanged.

Changes in v2:
Clarified that the adddress being corrected is the PCI bus address in
the commits.

Richard Zhu (3):
  arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap
  arm64: dts: imx94: Avoid 32-bit pcie window system ram overlap
  arm64: dts: imx943: Avoid 32-bit PCIe window System RAM overlap

[PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM
[PATCH v2 2/3] arm64: dts: imx94: Avoid 32-bit PCIe window System RAM
[PATCH v2 3/3] arm64: dts: imx943: Avoid 32-bit PCIe window System

arch/arm64/boot/dts/freescale/imx94.dtsi  | 2 +-
arch/arm64/boot/dts/freescale/imx943.dtsi | 2 +-
arch/arm64/boot/dts/freescale/imx95.dtsi  | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap
  2026-08-21  5:43 [PATCH v2 0/3] arm64: dts: imx9x: Fix PCIe memory window overlap with System RAM hongxing.zhu
@ 2026-08-21  5:43 ` hongxing.zhu
  2026-08-21 14:47   ` Frank Li
  2026-08-21  5:43 ` [PATCH v2 2/3] arm64: dts: imx94: " hongxing.zhu
  2026-08-21  5:43 ` [PATCH v2 3/3] arm64: dts: imx943: " hongxing.zhu
  2 siblings, 1 reply; 5+ messages in thread
From: hongxing.zhu @ 2026-08-21  5:43 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, frank.li, s.hauer, festevam
  Cc: kernel, devicetree, imx, linux-arm-kernel, linux-kernel, linux,
	Richard Zhu

From: Richard Zhu <hongxing.zhu@nxp.com>

Move the PCIe non-prefetchable memory PCI bus address from 0xe0000000
to 0x10000000 to avoid overlap with DRAM. The 0x10000000 range is
reserved and safe to use.

Fixes: dbecf38e60d4e ("arm64: dts: imx95: Correct PCIe outbound address space configuration")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index 38fc47024841f..0f03b85aaec17 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -1948,7 +1948,7 @@ pcie0: pcie@4c300000 {
 			      <0 0x4c340000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0x9 0x00000000 0x9 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0x9 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0x9 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0x9 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;
@@ -2039,7 +2039,7 @@ pcie1: pcie@4c380000 {
 			      <0 0x4c3c0000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0xa 0x00000000 0xa 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0xa 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0xa 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0xa 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;

base-commit: eba4724641990bd9975ca10ababe726b6143f0b6
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/3] arm64: dts: imx94: Avoid 32-bit PCIe window System RAM overlap
  2026-08-21  5:43 [PATCH v2 0/3] arm64: dts: imx9x: Fix PCIe memory window overlap with System RAM hongxing.zhu
  2026-08-21  5:43 ` [PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap hongxing.zhu
@ 2026-08-21  5:43 ` hongxing.zhu
  2026-08-21  5:43 ` [PATCH v2 3/3] arm64: dts: imx943: " hongxing.zhu
  2 siblings, 0 replies; 5+ messages in thread
From: hongxing.zhu @ 2026-08-21  5:43 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, frank.li, s.hauer, festevam
  Cc: kernel, devicetree, imx, linux-arm-kernel, linux-kernel, linux,
	Richard Zhu

From: Richard Zhu <hongxing.zhu@nxp.com>

Move the PCIe non-prefetchable memory PCI bus address from 0xe0000000
to 0x10000000 to avoid overlap with DRAM. The 0x10000000 range is
reserved and safe to use.

Fixes: ffccbd6804e88 ("arm64: dts: imx94: Correct PCIe outbound address space configuration")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx94.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx94.dtsi b/arch/arm64/boot/dts/freescale/imx94.dtsi
index 34833e62bd796..afaaf70417d23 100644
--- a/arch/arm64/boot/dts/freescale/imx94.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx94.dtsi
@@ -1379,7 +1379,7 @@ pcie0: pcie@4c300000 {
 			      <0 0x4c340000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0x9 0x00000000 0x9 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0x9 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0x9 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0x9 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 3/3] arm64: dts: imx943: Avoid 32-bit PCIe window System RAM overlap
  2026-08-21  5:43 [PATCH v2 0/3] arm64: dts: imx9x: Fix PCIe memory window overlap with System RAM hongxing.zhu
  2026-08-21  5:43 ` [PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap hongxing.zhu
  2026-08-21  5:43 ` [PATCH v2 2/3] arm64: dts: imx94: " hongxing.zhu
@ 2026-08-21  5:43 ` hongxing.zhu
  2 siblings, 0 replies; 5+ messages in thread
From: hongxing.zhu @ 2026-08-21  5:43 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, frank.li, s.hauer, festevam
  Cc: kernel, devicetree, imx, linux-arm-kernel, linux-kernel, linux,
	Richard Zhu

From: Richard Zhu <hongxing.zhu@nxp.com>

Move the PCIe non-prefetchable memory PCI bus address from 0xe0000000
to 0x10000000 to avoid overlap with DRAM. The 0x10000000 range is
reserved and safe to use.

Fixes: 6de3a7d7a4f65 ("arm64: dts: imx943: Correct PCIe outbound address space configuration")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx943.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx943.dtsi b/arch/arm64/boot/dts/freescale/imx943.dtsi
index 01152fd0efa5e..a564488d9cd7d 100644
--- a/arch/arm64/boot/dts/freescale/imx943.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx943.dtsi
@@ -219,7 +219,7 @@ pcie1: pcie@4c380000 {
 			      <0 0x4c3c0000 0 0x4000>;
 			reg-names = "dbi", "config", "atu", "app";
 			ranges = <0x43000000 0xa 0x00000000 0xa 0x00000000 0x0 0xe0000000>,
-				 <0x82000000 0x0 0xe0000000 0xa 0xe0000000 0x0 0x10000000>,
+				 <0x82000000 0x0 0x10000000 0xa 0xe0000000 0x0 0x10000000>,
 				 <0x81000000 0x0 0x00000000 0xa 0xf0000000 0x0 0x00100000>;
 			#address-cells = <3>;
 			#size-cells = <2>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap
  2026-08-21  5:43 ` [PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap hongxing.zhu
@ 2026-08-21 14:47   ` Frank Li
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Li @ 2026-08-21 14:47 UTC (permalink / raw)
  To: hongxing.zhu
  Cc: robh, krzk+dt, conor+dt, frank.li, s.hauer, festevam, kernel,
	devicetree, imx, linux-arm-kernel, linux-kernel, linux,
	Richard Zhu

On Fri, Aug 21, 2026 at 01:43:32PM +0800, hongxing.zhu@oss.nxp.com wrote:
> From: Richard Zhu <hongxing.zhu@nxp.com>
>
> Move the PCIe non-prefetchable memory PCI bus address from 0xe0000000
> to 0x10000000 to avoid overlap with DRAM. The 0x10000000 range is
> reserved and safe to use.
>

If you agree, I put layerscape discussion link at here when apply

link: https://lore.kernel.org/imx/753fca23-c3eb-45e3-aeac-b7b248fa723a@app.fastmail.com/ [1]

Frank

> Fixes: dbecf38e60d4e ("arm64: dts: imx95: Correct PCIe outbound address space configuration")
> Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> ---
>  arch/arm64/boot/dts/freescale/imx95.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
> index 38fc47024841f..0f03b85aaec17 100644
> --- a/arch/arm64/boot/dts/freescale/imx95.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
> @@ -1948,7 +1948,7 @@ pcie0: pcie@4c300000 {
>  			      <0 0x4c340000 0 0x4000>;
>  			reg-names = "dbi", "config", "atu", "app";
>  			ranges = <0x43000000 0x9 0x00000000 0x9 0x00000000 0x0 0xe0000000>,
> -				 <0x82000000 0x0 0xe0000000 0x9 0xe0000000 0x0 0x10000000>,
> +				 <0x82000000 0x0 0x10000000 0x9 0xe0000000 0x0 0x10000000>,
>  				 <0x81000000 0x0 0x00000000 0x9 0xf0000000 0x0 0x00100000>;
>  			#address-cells = <3>;
>  			#size-cells = <2>;
> @@ -2039,7 +2039,7 @@ pcie1: pcie@4c380000 {
>  			      <0 0x4c3c0000 0 0x4000>;
>  			reg-names = "dbi", "config", "atu", "app";
>  			ranges = <0x43000000 0xa 0x00000000 0xa 0x00000000 0x0 0xe0000000>,
> -				 <0x82000000 0x0 0xe0000000 0xa 0xe0000000 0x0 0x10000000>,
> +				 <0x82000000 0x0 0x10000000 0xa 0xe0000000 0x0 0x10000000>,
>  				 <0x81000000 0x0 0x00000000 0xa 0xf0000000 0x0 0x00100000>;
>  			#address-cells = <3>;
>  			#size-cells = <2>;
>
> base-commit: eba4724641990bd9975ca10ababe726b6143f0b6
> --
> 2.34.1
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-21 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21  5:43 [PATCH v2 0/3] arm64: dts: imx9x: Fix PCIe memory window overlap with System RAM hongxing.zhu
2026-08-21  5:43 ` [PATCH v2 1/3] arm64: dts: imx95: Avoid 32-bit PCIe window System RAM overlap hongxing.zhu
2026-08-21 14:47   ` Frank Li
2026-08-21  5:43 ` [PATCH v2 2/3] arm64: dts: imx94: " hongxing.zhu
2026-08-21  5:43 ` [PATCH v2 3/3] arm64: dts: imx943: " hongxing.zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox