Re: [PATCH 09/11] dts: a3700: enable dma coherence for PCIE interface

2021-02-05 Thread Marcin Wojtas
Hi Kosta,

śr., 3 lut 2021 o 14:32  napisał(a):
>
> From: Stefan Chulski 
>
> Enavble PCIe dma coherence for A3700 platform
>

While at it, can we also add:

--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -71,6 +71,7 @@ soc {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
+   dma-coherent;
ranges;

internal-regs@d000 {

so that to enable it for all bus-attached interfaces? This safe and
will boost IO performance.

Thanks,
Marcin

> Signed-off-by: Stefan Chulski 
> Signed-off-by: Konstantin Porotchkin 
> ---
>  arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi 
> b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> index d5b6c0a1c54a..5c0df06bc707 100644
> --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> @@ -486,6 +486,7 @@
> #interrupt-cells = <1>;
> msi-parent = <>;
> msi-controller;
> +   dma-coherent;
> ranges = <0x8200 0 0xe800   0 0xe800 0 
> 0x100 /* Port 0 MEM */
>   0x8100 0 0xe900   0 0xe900 0 
> 0x1>; /* Port 0 IO*/
> interrupt-map-mask = <0 0 0 7>;
> --
> 2.17.1
>


[PATCH 09/11] dts: a3700: enable dma coherence for PCIE interface

2021-02-03 Thread kostap
From: Stefan Chulski 

Enavble PCIe dma coherence for A3700 platform

Signed-off-by: Stefan Chulski 
Signed-off-by: Konstantin Porotchkin 
---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi 
b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index d5b6c0a1c54a..5c0df06bc707 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -486,6 +486,7 @@
#interrupt-cells = <1>;
msi-parent = <>;
msi-controller;
+   dma-coherent;
ranges = <0x8200 0 0xe800   0 0xe800 0 
0x100 /* Port 0 MEM */
  0x8100 0 0xe900   0 0xe900 0 
0x1>; /* Port 0 IO*/
interrupt-map-mask = <0 0 0 7>;
-- 
2.17.1