All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB
@ 2021-09-23  9:07 Pali Rohár
  2021-09-23 15:31 ` Stefan Roese
  2021-10-08  9:16 ` Stefan Roese
  0 siblings, 2 replies; 3+ messages in thread
From: Pali Rohár @ 2021-09-23  9:07 UTC (permalink / raw)
  To: Stefan Roese; +Cc: Marek Behún, u-boot

Commit 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB
to 127 MiB") increased size of PCIe MEM to 127 MiB, which is the maximal
possible size for allocated 128 MiB PCIe window. PCIe IO size in that
commit was unchanged.

Armada 3720 PCIe controller supports 32-bit IO space mapping so it is
possible to assign more than 64 KiB if address space for IO.

Currently controller has assigned 127 MiB + 64 KiB memory and therefore
there is 960 KiB of unused memory. So assign it to IO space by increasing
IO window from 64 KiB to 1 MiB.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 127 MiB")
---
 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 2615b8c748c1..fec34609cf82 100644
--- a/arch/arm/dts/armada-37xx.dtsi
+++ b/arch/arm/dts/armada-37xx.dtsi
@@ -335,14 +335,14 @@
 			/*
 			 * The 128 MiB address range [0xe8000000-0xf0000000] is
 			 * dedicated for PCIe and can be assigned to 8 windows
-			 * with size a power of two. Use one 64 KiB window for
+			 * with size a power of two. Use one 1 MiB window for
 			 * IO at the end and the remaining seven windows
 			 * (totaling 127 MiB) for MEM.
 			 */
 			ranges = <0x82000000 0 0xe8000000
 				 0 0xe8000000 0 0x7f00000 /* Port 0 MEM */
-				 0x81000000 0 0xefff0000
-				 0 0xefff0000 0 0x10000>; /* Port 0 IO*/
+				 0x81000000 0 0xeff00000
+				 0 0xeff00000 0 0x100000>; /* Port 0 IO*/
 		};
 	};
 };
-- 
2.20.1


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

* Re: [PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB
  2021-09-23  9:07 [PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB Pali Rohár
@ 2021-09-23 15:31 ` Stefan Roese
  2021-10-08  9:16 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2021-09-23 15:31 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Marek Behún, u-boot

On 23.09.21 11:07, Pali Rohár wrote:
> Commit 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB
> to 127 MiB") increased size of PCIe MEM to 127 MiB, which is the maximal
> possible size for allocated 128 MiB PCIe window. PCIe IO size in that
> commit was unchanged.
> 
> Armada 3720 PCIe controller supports 32-bit IO space mapping so it is
> possible to assign more than 64 KiB if address space for IO.
> 
> Currently controller has assigned 127 MiB + 64 KiB memory and therefore
> there is 960 KiB of unused memory. So assign it to IO space by increasing
> IO window from 64 KiB to 1 MiB.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Fixes: 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 127 MiB")

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> ---
>   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 2615b8c748c1..fec34609cf82 100644
> --- a/arch/arm/dts/armada-37xx.dtsi
> +++ b/arch/arm/dts/armada-37xx.dtsi
> @@ -335,14 +335,14 @@
>   			/*
>   			 * The 128 MiB address range [0xe8000000-0xf0000000] is
>   			 * dedicated for PCIe and can be assigned to 8 windows
> -			 * with size a power of two. Use one 64 KiB window for
> +			 * with size a power of two. Use one 1 MiB window for
>   			 * IO at the end and the remaining seven windows
>   			 * (totaling 127 MiB) for MEM.
>   			 */
>   			ranges = <0x82000000 0 0xe8000000
>   				 0 0xe8000000 0 0x7f00000 /* Port 0 MEM */
> -				 0x81000000 0 0xefff0000
> -				 0 0xefff0000 0 0x10000>; /* Port 0 IO*/
> +				 0x81000000 0 0xeff00000
> +				 0 0xeff00000 0 0x100000>; /* Port 0 IO*/
>   		};
>   	};
>   };
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de

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

* Re: [PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB
  2021-09-23  9:07 [PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB Pali Rohár
  2021-09-23 15:31 ` Stefan Roese
@ 2021-10-08  9:16 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2021-10-08  9:16 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Marek Behún, u-boot

On 23.09.21 11:07, Pali Rohár wrote:
> Commit 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB
> to 127 MiB") increased size of PCIe MEM to 127 MiB, which is the maximal
> possible size for allocated 128 MiB PCIe window. PCIe IO size in that
> commit was unchanged.
> 
> Armada 3720 PCIe controller supports 32-bit IO space mapping so it is
> possible to assign more than 64 KiB if address space for IO.
> 
> Currently controller has assigned 127 MiB + 64 KiB memory and therefore
> there is 960 KiB of unused memory. So assign it to IO space by increasing
> IO window from 64 KiB to 1 MiB.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Fixes: 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 127 MiB")

Applied to u-boot-marvell/master

Thanks,
Stefan

> ---
>   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 2615b8c748c1..fec34609cf82 100644
> --- a/arch/arm/dts/armada-37xx.dtsi
> +++ b/arch/arm/dts/armada-37xx.dtsi
> @@ -335,14 +335,14 @@
>   			/*
>   			 * The 128 MiB address range [0xe8000000-0xf0000000] is
>   			 * dedicated for PCIe and can be assigned to 8 windows
> -			 * with size a power of two. Use one 64 KiB window for
> +			 * with size a power of two. Use one 1 MiB window for
>   			 * IO at the end and the remaining seven windows
>   			 * (totaling 127 MiB) for MEM.
>   			 */
>   			ranges = <0x82000000 0 0xe8000000
>   				 0 0xe8000000 0 0x7f00000 /* Port 0 MEM */
> -				 0x81000000 0 0xefff0000
> -				 0 0xefff0000 0 0x10000>; /* Port 0 IO*/
> +				 0x81000000 0 0xeff00000
> +				 0 0xeff00000 0 0x100000>; /* Port 0 IO*/
>   		};
>   	};
>   };
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de

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

end of thread, other threads:[~2021-10-08  9:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23  9:07 [PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB Pali Rohár
2021-09-23 15:31 ` Stefan Roese
2021-10-08  9:16 ` Stefan Roese

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.