diff mbox series

[6/6] arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 128 MiB - 64 KiB

Message ID 20210517063956.30905-6-pali@kernel.org
State Superseded
Delegated to: Stefan Roese
Headers show
Series [1/6] arm: a37xx: pci: Don't put link into LTSSM Recovery state during probe | expand

Commit Message

Pali Rohár May 17, 2021, 6:39 a.m. UTC
For some configurations with more PCIe cards and PCIe bridges 16 MiB of
PCIe MEM space is not enough. Since TF-A already allocates a 128 MiB CPU
window for PCIe and IO port space is only 64 KiB in total, use all the
remaining space for PCIe MEM.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
---
 arch/arm/dts/armada-37xx.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Pali Rohár May 24, 2021, 7:20 a.m. UTC | #1
On Monday 17 May 2021 08:39:56 Pali Rohár wrote:
> For some configurations with more PCIe cards and PCIe bridges 16 MiB of
> PCIe MEM space is not enough. Since TF-A already allocates a 128 MiB CPU
> window for PCIe and IO port space is only 64 KiB in total, use all the
> remaining space for PCIe MEM.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Reviewed-by: Marek Behún <marek.behun@nic.cz>
> ---
>  arch/arm/dts/armada-37xx.dtsi | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/dts/armada-37xx.dtsi b/arch/arm/dts/armada-37xx.dtsi
> index b7d325b40577..f85fe38ad11c 100644
> --- a/arch/arm/dts/armada-37xx.dtsi
> +++ b/arch/arm/dts/armada-37xx.dtsi
> @@ -333,9 +333,9 @@
>  
>  			bus-range = <0 0xff>;
>  			ranges = <0x82000000 0 0xe8000000
> -				 0 0xe8000000 0 0x1000000 /* Port 0 MEM */
> -				 0x81000000 0 0xe9000000
> -				 0 0xe9000000 0 0x10000>; /* Port 0 IO*/
> +				 0 0xe8000000 0 0xefff0000 /* Port 0 MEM */

Ou, this is mistake. Size should be 0xefff0000-0xe8000000 = 0x7ff0000.

I will send a new patch version.

> +				 0x81000000 0 0xefff0000
> +				 0 0xefff0000 0 0x10000>; /* Port 0 IO*/
>  		};
>  	};
>  };
> -- 
> 2.20.1
>
diff mbox series

Patch

diff --git a/arch/arm/dts/armada-37xx.dtsi b/arch/arm/dts/armada-37xx.dtsi
index b7d325b40577..f85fe38ad11c 100644
--- a/arch/arm/dts/armada-37xx.dtsi
+++ b/arch/arm/dts/armada-37xx.dtsi
@@ -333,9 +333,9 @@ 
 
 			bus-range = <0 0xff>;
 			ranges = <0x82000000 0 0xe8000000
-				 0 0xe8000000 0 0x1000000 /* Port 0 MEM */
-				 0x81000000 0 0xe9000000
-				 0 0xe9000000 0 0x10000>; /* Port 0 IO*/
+				 0 0xe8000000 0 0xefff0000 /* Port 0 MEM */
+				 0x81000000 0 0xefff0000
+				 0 0xefff0000 0 0x10000>; /* Port 0 IO*/
 		};
 	};
 };