ARM: dts: NSP: dma-coherent and USB3 changes
Subsystems (2)
cover ARM: dts: NSP: dma-coherent and USB3 changes
Add dma-coherent to the relevant DT entries, and add USB3 support
Jon Mason (3):
ARM: dts: NSP: Add dma-coherent to relevant DT entries
ARM: dts: NSP: Rearrage USB entries
ARM: dts: NSP: Add USB3 and USB3 PHY to NSP
arch/arm/boot/dts/bcm-nsp.dtsi | 61 +++++++++++++++++++++++++++++--------- arch/arm/boot/dts/bcm958522er.dts | 8 +++++ arch/arm/boot/dts/bcm958525er.dts | 8 +++++ arch/arm/boot/dts/bcm958525xmc.dts | 8 +++++ arch/arm/boot/dts/bcm958622hr.dts | 8 +++++ arch/arm/boot/dts/bcm958623hr.dts | 8 +++++ arch/arm/boot/dts/bcm958625hr.dts | 8 +++++ arch/arm/boot/dts/bcm958625k.dts | 8 +++++ 8 files changed, 103 insertions(+), 14 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/3 ARM: dts: NSP: Add dma-coherent to relevant DT entries
Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue.
--- arch/arm/boot/dts/bcm-nsp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/bcm-nsp.dtsi +14 -0
@@ -207,6 +207,7 @@ clocks = <&iprocslow>; clock-names = "apb_pclk"; #dma-cells = <1>; + dma-coherent; }; sdio: sdhci at 21000 {
@@ -215,6 +216,7 @@ interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; sdhci,auto-cmd12; clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>; + dma-coherent; status = "disabled"; };
@@ -224,6 +226,7 @@ <0x110000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };
@@ -233,6 +236,7 @@ <0x111000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };
@@ -242,6 +246,7 @@ <0x112000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };
@@ -252,6 +257,7 @@ #mbox-cells = <1>; brcm,rx-status-len = <32>; brcm,use-bcm-hdr; + dma-coherent; }; nand: nand at 26000 {
@@ -325,6 +331,7 @@ compatible = "generic-ehci"; reg = <0x2a000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };
@@ -332,6 +339,7 @@ compatible = "generic-ohci"; reg = <0x2b000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };
@@ -364,6 +372,7 @@ #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; /* ports are defined in board DTS */
@@ -376,6 +385,7 @@ #size-cells = <0>; interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; clock-frequency = <100000>; + dma-coherent; status = "disabled"; };
@@ -446,6 +456,7 @@ interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; sata0: sata-port at 0 {
@@ -483,6 +494,7 @@ */ ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi0>;
@@ -519,6 +531,7 @@ */ ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi1>;
@@ -555,6 +568,7 @@ */ ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi2>;
Signature · 1 line
2.7.4
Re: [PATCH 1/3] ARM: dts: NSP: Add dma-coherent to relevant DT entries
Hi Jon,
Quoted 24 lines · Jon Mason
Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue.
Signed-off-by Jon Mason <[email protected]>Fixes 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support")Fixes 3107fa5bcfb2 ("ARM: dts: NSP: Add SD/MMC support")Fixes 13d04f20935c ("ARM: dts: NSP: Add AMAC entries")Fixes 5aeda7bf8a1e ("ARM: dts: NSP: Add and enable amac2")Fixes 17d517172300 ("ARM: dts: NSP: Add mailbox (PDC) to NSP")Fixes 1d8ece6639e1 ("ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree")Fixes bf2289bedef4 ("ARM: dts: NSP: Add Switch Register Access Block node")Fixes 0f9f27a36d09 ("ARM: dts: NSP: Add I2C support to the DT")Fixes 8dbcad020f2e ("ARM: dts: nsp: Add sata device tree entry")Fixes 522199029fdc ("ARM: dts: NSP: Fix PCIE DT issue")--- arch/arm/boot/dts/bcm-nsp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/bcm-nsp.dtsi +0
-0
arch/arm/boot/dts/bcm-nsp.dtsi line 210
Quoted 4 lines
arch/arm/boot/dts/bcm-nsp.dtsi +1
-0@@ -207,6 +207,7 @@ clocks = <&iprocslow>; clock-names = "apb_pclk"; #dma-cells = <1>; + dma-coherent;
Just to check, does this actually work? I ask because the pl330 driver currently never sets src_cache_ctrl/dst_cache_ctrl to anything other than noncacheable nonbufferable, so if your interconnect respects those attributes this seems liable to make things go wrong under current kernels, even if it is an accurate description of the hardware. If on the other hand the interconnect does its own magic and will manage to snoop caches appropriately regardless of AXI attributes, then I guess it's fine, if a little scary ;)
Robin.
Quoted 108 lines
arch/arm/boot/dts/bcm-nsp.dtsi +13
-0}; sdio: sdhci at 21000 {@@ -215,6 +216,7 @@ interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; sdhci,auto-cmd12; clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>; + dma-coherent; status = "disabled"; };@@ -224,6 +226,7 @@ <0x110000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -233,6 +236,7 @@ <0x111000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -242,6 +246,7 @@ <0x112000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -252,6 +257,7 @@ #mbox-cells = <1>; brcm,rx-status-len = <32>; brcm,use-bcm-hdr; + dma-coherent; }; nand: nand at 26000 {@@ -325,6 +331,7 @@ compatible = "generic-ehci"; reg = <0x2a000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -332,6 +339,7 @@ compatible = "generic-ohci"; reg = <0x2b000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -364,6 +372,7 @@ #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; /* ports are defined in board DTS */@@ -376,6 +385,7 @@ #size-cells = <0>; interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; clock-frequency = <100000>; + dma-coherent; status = "disabled"; };@@ -446,6 +456,7 @@ interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; sata0: sata-port at 0 {@@ -483,6 +494,7 @@ */ ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi0>;@@ -519,6 +531,7 @@ */ ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi1>;@@ -555,6 +568,7 @@ */ ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi2>;
Re: [PATCH 1/3] ARM: dts: NSP: Add dma-coherent to relevant DT entries
Quoted 35 lines · Robin Murphy
Hi Jon,
Quoted 11 lines · Jon Mason
Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue.
Signed-off-by Jon Mason <[email protected]>Fixes 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support")Fixes 3107fa5bcfb2 ("ARM: dts: NSP: Add SD/MMC support")Fixes 13d04f20935c ("ARM: dts: NSP: Add AMAC entries")Fixes 5aeda7bf8a1e ("ARM: dts: NSP: Add and enable amac2")Fixes 17d517172300 ("ARM: dts: NSP: Add mailbox (PDC) to NSP")Fixes 1d8ece6639e1 ("ARM: dts: NSP: Add EHCI/OHCI USB nodes to devicetree")
Quoted 1 line
Fixes bf2289bedef4 ("ARM: dts: NSP: Add Switch Register Access Blocknode")
arch/arm/boot/dts/bcm-nsp.
Quoted 8 lines
Fixes 0f9f27a36d09 ("ARM: dts: NSP: Add I2C support to the DT")Fixes 8dbcad020f2e ("ARM: dts: nsp: Add sata device tree entry")Fixes 522199029fdc ("ARM: dts: NSP: Fix PCIE DT issue")--- arch/arm/boot/dts/bcm-nsp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/bcm-nsp. renamed from arch/arm/boot/dts/bcm-nsp.dtsi +0
-0dtsi
arch/arm/boot/dts/bcm-nsp.dtsi line 210
Quoted 8 lines
index
7204d1def23d..c8d734d9f5fc100644arch/arm/boot/dts/bcm-nsp.dtsi +1
-0@@ -207,6 +207,7 @@ clocks = <&iprocslow>; clock-names = "apb_pclk"; #dma-cells = <1>; + dma-coherent;
Quoted 9 lines
Just to check, does this actually work? I ask because the pl330 driver currently never sets src_cache_ctrl/dst_cache_ctrl to anything other than noncacheable nonbufferable, so if your interconnect respects those attributes this seems liable to make things go wrong under current kernels, even if it is an accurate description of the hardware. If on the other hand the interconnect does its own magic and will manage to snoop caches appropriately regardless of AXI attributes, then I guess it's fine, if a little scary ;)
This is what we've being using in-house for some time without any noticed side effects, though it is possible there are some.
We've been basing the dma-coherent enablement on an internal register on each IP block that enables/disables the coherency for it. It could be possible that we've made the block coherent in this register in the bootloader (or the power-on default is enabled). However, your comment above concerns me greatly. I will remove this portion from this patch for v2, and bottom out internally on whether this is a bug or not.
Thanks for the eyeballs :)
Thanks,
Jon
Quoted 113 lines
Robin.
Quoted 108 lines
arch/arm/boot/dts/bcm-nsp.dtsi +13
-0}; sdio: sdhci@21000 {@@ -215,6 +216,7 @@ interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; sdhci,auto-cmd12; clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>; + dma-coherent; status = "disabled"; };@@ -224,6 +226,7 @@ <0x110000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -233,6 +236,7 @@ <0x111000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -242,6 +246,7 @@ <0x112000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -252,6 +257,7 @@ #mbox-cells = <1>; brcm,rx-status-len = <32>; brcm,use-bcm-hdr; + dma-coherent; }; nand: nand@26000 {@@ -325,6 +331,7 @@ compatible = "generic-ehci"; reg = <0x2a000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -332,6 +339,7 @@ compatible = "generic-ohci"; reg = <0x2b000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -364,6 +372,7 @@ #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; /* ports are defined in board DTS */@@ -376,6 +385,7 @@ #size-cells = <0>; interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; clock-frequency = <100000>; + dma-coherent; status = "disabled"; };@@ -446,6 +456,7 @@ interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; sata0: sata-port@0 {@@ -483,6 +494,7 @@ */ ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi0>;@@ -519,6 +531,7 @@ */ ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi1>;@@ -555,6 +568,7 @@ */ ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi2>;
Re: [PATCH 1/3] ARM: dts: NSP: Add dma-coherent to relevant DT entries
In reply to Jon MasonQuoted 4 lines · Jon Mason
Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue.
Quoted 8 lines
Signed-off-by Jon Mason <[email protected]>Fixes 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support")Fixes 3107fa5bcfb2 ("ARM: dts: NSP: Add SD/MMC support")Fixes 13d04f20935c ("ARM: dts: NSP: Add AMAC entries")Fixes 5aeda7bf8a1e ("ARM: dts: NSP: Add and enable amac2")Fixes 17d517172300 ("ARM: dts: NSP: Add mailbox (PDC) to NSP")Fixes 1d8ece6639e1 ("ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree")Fixes bf2289bedef4 ("ARM: dts: NSP: Add Switch Register Access Block node")
The SRAB block is not DMA capable, so this seems a bit superfluous here.
Do you want to submit a patch that omits PL330 for now and adds it eventually later so I can proceed with applying patches 2 & 3 for this cycle?
Quoted 124 lines
Fixes 0f9f27a36d09 ("ARM: dts: NSP: Add I2C support to the DT")Fixes 8dbcad020f2e ("ARM: dts: nsp: Add sata device tree entry")Fixes 522199029fdc ("ARM: dts: NSP: Fix PCIE DT issue")--- arch/arm/boot/dts/bcm-nsp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/bcm-nsp.dtsi +14
-0@@ -207,6 +207,7 @@ clocks = <&iprocslow>; clock-names = "apb_pclk"; #dma-cells = <1>; + dma-coherent; }; sdio: sdhci at 21000 {@@ -215,6 +216,7 @@ interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; sdhci,auto-cmd12; clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>; + dma-coherent; status = "disabled"; };@@ -224,6 +226,7 @@ <0x110000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -233,6 +236,7 @@ <0x111000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -242,6 +246,7 @@ <0x112000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -252,6 +257,7 @@ #mbox-cells = <1>; brcm,rx-status-len = <32>; brcm,use-bcm-hdr; + dma-coherent; }; nand: nand at 26000 {@@ -325,6 +331,7 @@ compatible = "generic-ehci"; reg = <0x2a000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -332,6 +339,7 @@ compatible = "generic-ohci"; reg = <0x2b000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -364,6 +372,7 @@ #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; /* ports are defined in board DTS */@@ -376,6 +385,7 @@ #size-cells = <0>; interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; clock-frequency = <100000>; + dma-coherent; status = "disabled"; };@@ -446,6 +456,7 @@ interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; sata0: sata-port at 0 {@@ -483,6 +494,7 @@ */ ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi0>;@@ -519,6 +531,7 @@ */ ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi1>;@@ -555,6 +568,7 @@ */ ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi2>;
Signature · 1 line
Florian
Re: [PATCH 1/3] ARM: dts: NSP: Add dma-coherent to relevant DT entries
Quoted 14 lines · Florian Fainelli
Quoted 4 lines · Jon Mason
Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue.
Quoted 8 lines
Signed-off-by Jon Mason <[email protected]>Fixes 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support")Fixes 3107fa5bcfb2 ("ARM: dts: NSP: Add SD/MMC support")Fixes 13d04f20935c ("ARM: dts: NSP: Add AMAC entries")Fixes 5aeda7bf8a1e ("ARM: dts: NSP: Add and enable amac2")Fixes 17d517172300 ("ARM: dts: NSP: Add mailbox (PDC) to NSP")Fixes 1d8ece6639e1 ("ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree")Fixes bf2289bedef4 ("ARM: dts: NSP: Add Switch Register Access Block node")
Quoted 1 line
The SRAB block is not DMA capable, so this seems a bit superfluous here.
I'll double check on that part as well.
Quoted 3 lines
Do you want to submit a patch that omits PL330 for now and adds it eventually later so I can proceed with applying patches 2 & 3 for this cycle?
Yes, I'll do a v2 with those 2 portions removed, and double back to add (if necessary) once I've bottomed out internally.
Thanks,
Jon
Quoted 128 lines
Quoted 117 lines
Fixes 0f9f27a36d09 ("ARM: dts: NSP: Add I2C support to the DT")Fixes 8dbcad020f2e ("ARM: dts: nsp: Add sata device tree entry")Fixes 522199029fdc ("ARM: dts: NSP: Fix PCIE DT issue")--- arch/arm/boot/dts/bcm-nsp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/bcm-nsp.dtsi +13
-0@@ -207,6 +207,7 @@ clocks = <&iprocslow>; clock-names = "apb_pclk"; #dma-cells = <1>; + dma-coherent; }; sdio: sdhci at 21000 {@@ -215,6 +216,7 @@ interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; sdhci,auto-cmd12; clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>; + dma-coherent; status = "disabled"; };@@ -224,6 +226,7 @@ <0x110000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -233,6 +236,7 @@ <0x111000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -242,6 +246,7 @@ <0x112000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -252,6 +257,7 @@ #mbox-cells = <1>; brcm,rx-status-len = <32>; brcm,use-bcm-hdr; + dma-coherent; }; nand: nand at 26000 {@@ -325,6 +331,7 @@ compatible = "generic-ehci"; reg = <0x2a000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -332,6 +339,7 @@ compatible = "generic-ohci"; reg = <0x2b000 0x100>; interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; status = "disabled"; };@@ -364,6 +372,7 @@ #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; /* ports are defined in board DTS */@@ -376,6 +385,7 @@ #size-cells = <0>; interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; clock-frequency = <100000>; + dma-coherent; status = "disabled"; };@@ -446,6 +456,7 @@ interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; sata0: sata-port at 0 {@@ -483,6 +494,7 @@ */ ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi0>;@@ -519,6 +531,7 @@ */ ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi1>;arch/arm/boot/dts/bcm-nsp.dtsi line 574
Quoted 7 lines
arch/arm/boot/dts/bcm-nsp.dtsi +1
-0@@ -555,6 +568,7 @@ */ ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi2>;--
Florian
PATCH 2/3 ARM: dts: NSP: Rearrage USB entries
In reply to Jon MasonThe rest of the DTSI file is in incrementing addresses, but the USB OHCI/ECHI entries are out of sequence. Move them to put them in the proper place.
--- arch/arm/boot/dts/bcm-nsp.dtsi | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)
arch/arm/boot/dts/bcm-nsp.dtsi +16 -16
@@ -303,6 +303,22 @@ #size-cells = <0>; }; + ehci0: usb at 2a000 { + compatible = "generic-ehci"; + reg = <0x2a000 0x100>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; + status = "disabled"; + }; + + ohci0: usb at 2b000 { + compatible = "generic-ohci"; + reg = <0x2b000 0x100>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + dma-coherent; + status = "disabled"; + }; + crypto at 2f000 { compatible = "brcm,spum-nsp-crypto"; reg = <0x2f000 0x900>;
@@ -327,22 +343,6 @@ status = "disabled"; }; - ehci0: usb at 2a000 { - compatible = "generic-ehci"; - reg = <0x2a000 0x100>; - interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; - dma-coherent; - status = "disabled"; - }; - - ohci0: usb at 2b000 { - compatible = "generic-ohci"; - reg = <0x2b000 0x100>; - interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; - dma-coherent; - status = "disabled"; - }; - rng: rng at 33000 { compatible = "brcm,bcm-nsp-rng"; reg = <0x33000 0x14>;
Signature · 1 line
2.7.4
PATCH 3/3 ARM: dts: NSP: Add USB3 and USB3 PHY to NSP
In reply to Jon MasonThis uses the existing Northstar USB3 PHY driver to enable the USB3 ports on NSP.
--- arch/arm/boot/dts/bcm-nsp.dtsi | 19 +++++++++++++++++++ arch/arm/boot/dts/bcm958522er.dts | 8 ++++++++ arch/arm/boot/dts/bcm958525er.dts | 8 ++++++++ arch/arm/boot/dts/bcm958525xmc.dts | 8 ++++++++ arch/arm/boot/dts/bcm958622hr.dts | 8 ++++++++ arch/arm/boot/dts/bcm958623hr.dts | 8 ++++++++ arch/arm/boot/dts/bcm958625hr.dts | 8 ++++++++ arch/arm/boot/dts/bcm958625k.dts | 8 ++++++++ 8 files changed, 75 insertions(+)
arch/arm/boot/dts/bcm-nsp.dtsi +19 -0
@@ -303,6 +303,16 @@ #size-cells = <0>; }; + xhci: usb at 29000 { + compatible = "generic-xhci"; + reg = <0x29000 0x1000>; + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb3_phy>; + phy-names = "usb3-phy"; + dma-coherent; + status = "disabled"; + }; + ehci0: usb at 2a000 { compatible = "generic-ehci"; reg = <0x2a000 0x100>;
@@ -471,6 +481,15 @@ phy-names = "sata-phy"; }; }; + + usb3_phy: usb3-phy at 104000 { + compatible = "brcm,ns-bx-usb3-phy"; + reg = <0x104000 0x1000>, + <0x032000 0x1000>; + reg-names = "dmp", "ccb-mii"; + #phy-cells = <0>; + status = "disabled"; + }; }; pcie0: pcie at 18012000 {
arch/arm/boot/dts/bcm958522er.dts +8 -0
@@ -170,3 +170,11 @@ &uart0 { status = "okay"; }; + +&usb3_phy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};
arch/arm/boot/dts/bcm958525er.dts +8 -0
@@ -182,3 +182,11 @@ &uart0 { status = "okay"; }; + +&usb3_phy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};
arch/arm/boot/dts/bcm958525xmc.dts +8 -0
@@ -202,3 +202,11 @@ &uart0 { status = "okay"; }; + +&usb3_phy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};
arch/arm/boot/dts/bcm958622hr.dts +8 -0
@@ -219,3 +219,11 @@ &uart0 { status = "okay"; }; + +&usb3_phy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};
arch/arm/boot/dts/bcm958623hr.dts +8 -0
@@ -227,3 +227,11 @@ &uart0 { status = "okay"; }; + +&usb3_phy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};
arch/arm/boot/dts/bcm958625hr.dts +8 -0
@@ -229,3 +229,11 @@ &uart0 { status = "okay"; }; + +&usb3_phy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};
arch/arm/boot/dts/bcm958625k.dts +8 -0
@@ -264,3 +264,11 @@ &uart1 { status = "okay"; }; + +&usb3_phy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};
Signature · 1 line
2.7.4
A message that is not in the archive (sent off-list or not yet received): 1501020372-19607-2-git-send-email-jon.mason-dY08KVG/lbpWk0Htik3J/[email protected]
Re: [PATCH 1/3] ARM: dts: NSP: Add dma-coherent to relevant DT
Quoted 15 lines · Jon Mason
Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue.
Fixes 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support")Fixes 3107fa5bcfb2 ("ARM: dts: NSP: Add SD/MMC support")Fixes 13d04f20935c ("ARM: dts: NSP: Add AMAC entries")Fixes 5aeda7bf8a1e ("ARM: dts: NSP: Add and enable amac2")Fixes 17d517172300 ("ARM: dts: NSP: Add mailbox (PDC) to NSP")Fixes 1d8ece6639e1 ("ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree")Fixes bf2289bedef4 ("ARM: dts: NSP: Add Switch Register Access Block node")Fixes 0f9f27a36d09 ("ARM: dts: NSP: Add I2C support to the DT")Fixes 8dbcad020f2e ("ARM: dts: nsp: Add sata device tree entry")Fixes 522199029fdc ("ARM: dts: NSP: Fix PCIE DT issue")
Quoted 1 line
---
Applied, thanks!
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/3] ARM: dts: NSP: Add dma-coherent to relevant DT
In reply to a message not in the archiveQuoted 15 lines · Jon Mason
Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue.
Fixes 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support")Fixes 3107fa5bcfb2 ("ARM: dts: NSP: Add SD/MMC support")Fixes 13d04f20935c ("ARM: dts: NSP: Add AMAC entries")Fixes 5aeda7bf8a1e ("ARM: dts: NSP: Add and enable amac2")Fixes 17d517172300 ("ARM: dts: NSP: Add mailbox (PDC) to NSP")Fixes 1d8ece6639e1 ("ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree")Fixes bf2289bedef4 ("ARM: dts: NSP: Add Switch Register Access Block node")Fixes 0f9f27a36d09 ("ARM: dts: NSP: Add I2C support to the DT")Fixes 8dbcad020f2e ("ARM: dts: nsp: Add sata device tree entry")Fixes 522199029fdc ("ARM: dts: NSP: Fix PCIE DT issue")
Quoted 1 line
---
Applied, thanks!
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1501020372-19607-3-git-send-email-jon.mason-dY08KVG/lbpWk0Htik3J/[email protected]
Re: [PATCH 2/3] ARM: dts: NSP: Rearrage USB entries
Quoted 6 lines · Jon Mason
The rest of the DTSI file is in incrementing addresses, but the USB OHCI/ECHI entries are out of sequence. Move them to put them in the proper place.
---
Applied, thanks!
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1501020372-19607-4-git-send-email-jon.mason-dY08KVG/lbpWk0Htik3J/[email protected]
Re: [PATCH 3/3] ARM: dts: NSP: Add USB3 and USB3 PHY to NSP
Quoted 5 lines · Jon Mason
This uses the existing Northstar USB3 PHY driver to enable the USB3 ports on NSP.
---
Applied, thanks!
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html