Skip to contentSkip to conversation

ARM: dts: Increase the size of PCIe configuration space for EXYNOS5440

PATCH Superseded Jingoo Han 2 participants 3 messages Apr 1, 2014

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 ARM: dts: Increase the size of PCIe configuration space for EXYNOS5440

Increase the size of PCIe configuration space to 8kB from 4kB, because 4kB for cfg0 and 4kB for cfg1 are required respectively. If 2kB for cfg0 and 2kB for cfg1 are set, it will make problems when a PCIe card having multiple EPs below a bridge is used.

---
 arch/arm/boot/dts/exynos5440.dtsi |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/exynos5440.dtsi +6 -6
index d600733..5d08be8 100644
@@ -281,9 +281,9 @@
 		#address-cells = <3>;
 		#size-cells = <2>;
 		device_type = "pci";
-		ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000   /* configuration space */
-			  0x81000000 0 0	  0x40001000 0 0x00010000   /* downstream I/O */
-			  0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */
+		ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00002000   /* configuration space */
+			  0x81000000 0 0	  0x40002000 0 0x00010000   /* downstream I/O */
+			  0x82000000 0 0x40012000 0x40012000 0 0x1ffee000>; /* non-prefetchable memory */
 		#interrupt-cells = <1>;
 		interrupt-map-mask = <0 0 0 0>;
 		interrupt-map = <0x0 0 &gic 53>;
@@ -302,9 +302,9 @@
 		#address-cells = <3>;
 		#size-cells = <2>;
 		device_type = "pci";
-		ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000   /* configuration space */
-			  0x81000000 0 0	  0x60001000 0 0x00010000   /* downstream I/O */
-			  0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */
+		ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00002000   /* configuration space */
+			  0x81000000 0 0	  0x60002000 0 0x00020000   /* downstream I/O */
+			  0x82000000 0 0x60012000 0x60012000 0 0x1ffee000>; /* non-prefetchable memory */
 		#interrupt-cells = <1>;
 		interrupt-map-mask = <0 0 0 0>;
 		interrupt-map = <0x0 0 &gic 56>;
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 29 lines · Jingoo Han

Increase the size of PCIe configuration space to 8kB from 4kB, because 4kB for cfg0 and 4kB for cfg1 are required respectively. If 2kB for cfg0 and 2kB for cfg1 are set, it will make problems when a PCIe card having multiple EPs below a bridge is used.

---
 arch/arm/boot/dts/exynos5440.dtsi |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/exynos5440.dtsi +3 -3
index d600733..5d08be8 100644
@@ -281,9 +281,9 @@
 		#address-cells = <3>;
 		#size-cells = <2>;
 		device_type = "pci";
-		ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000   /* configuration space */
-			  0x81000000 0 0	  0x40001000 0 0x00010000   /* downstream I/O */
-			  0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */
+		ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00002000   /* configuration space */
+			  0x81000000 0 0	  0x40002000 0 0x00010000   /* downstream I/O */
+			  0x82000000 0 0x40012000 0x40012000 0 0x1ffee000>; /* non-prefetchable memory */
 		#interrupt-cells = <1>;
 		interrupt-map-mask = <0 0 0 0>;
 		interrupt-map = <0x0 0 &gic 53>;

arch/arm/boot/dts/exynos5440.dtsi line 306

Quoted 8 lines
arch/arm/boot/dts/exynos5440.dtsi +2 -3
@@ -302,9 +302,9 @@
 		#address-cells = <3>;
 		#size-cells = <2>;
 		device_type = "pci";
-		ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000   /* configuration space */
-			  0x81000000 0 0	  0x60001000 0 0x00010000   /* downstream I/O */
-			  0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */
+		ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00002000   /* configuration space */
+			  0x81000000 0 0	  0x60002000 0 0x00020000   /* downstream I/O */

is I/O size change intentional?

Regards
Pratyush

Quoted 7 lines
arch/arm/boot/dts/exynos5440.dtsi +1 -0
+			  0x82000000 0 0x60012000 0x60012000 0 0x1ffee000>; /* non-prefetchable memory */
 		#interrupt-cells = <1>;
 		interrupt-map-mask = <0 0 0 0>;
 		interrupt-map = <0x0 0 &gic 56>;
Signature · 1 line
1.7.10.4
author
#2 lore raw
Quoted 32 lines · Pratyush Anand
Quoted 31 lines · Jingoo Han

Increase the size of PCIe configuration space to 8kB from 4kB, because 4kB for cfg0 and 4kB for cfg1 are required respectively. If 2kB for cfg0 and 2kB for cfg1 are set, it will make problems when a PCIe card having multiple EPs below a bridge is used.

---
 arch/arm/boot/dts/exynos5440.dtsi |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/exynos5440.dtsi +3 -3
index d600733..5d08be8 100644
@@ -281,9 +281,9 @@
 		#address-cells = <3>;
 		#size-cells = <2>;
 		device_type = "pci";
-		ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000   /* configuration space */
-			  0x81000000 0 0	  0x40001000 0 0x00010000   /* downstream I/O */
-			  0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */
+		ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00002000   /* configuration space */
+			  0x81000000 0 0	  0x40002000 0 0x00010000   /* downstream I/O */
+			  0x82000000 0 0x40012000 0x40012000 0 0x1ffee000>; /* non-prefetchable memory */
 		#interrupt-cells = <1>;
 		interrupt-map-mask = <0 0 0 0>;
 		interrupt-map = <0x0 0 &gic 53>;
@@ -302,9 +302,9 @@
 		#address-cells = <3>;
 		#size-cells = <2>;
Quoted 8 lines

arch/arm/boot/dts/exynos5440.dtsi line 306

Quoted 6 lines
arch/arm/boot/dts/exynos5440.dtsi +2 -3
 		device_type = "pci";
-		ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000   /* configuration space */
-			  0x81000000 0 0	  0x60001000 0 0x00010000   /* downstream I/O */
-			  0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */
+		ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00002000   /* configuration space */
+			  0x81000000 0 0	  0x60002000 0 0x00020000   /* downstream I/O */

is I/O size change intentional?

Hi Pratyush Anand,

No, it is my mistake. I/O size should not be modified. I really appreciate your review. I will send v2 patch. :-) Thank you.

Best regards,
Jingoo Han

Quoted 10 lines

Regards
Pratyush

Quoted 7 lines
arch/arm/boot/dts/exynos5440.dtsi +1 -1
+			  0x82000000 0 0x60012000 0x60012000 0 0x1ffee000>; /* non-prefetchable memory */
 		#interrupt-cells = <1>;
 		interrupt-map-mask = <0 0 0 0>;
 		interrupt-map = <0x0 0 &gic 56>;
--

1.7.10.4