Skip to content

Commit f0c0cb9

Browse files
Jon Masonffainelli
authored andcommitted
arm64: dts: NS2: 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. Signed-off-by: Jon Mason <jon.mason@broadcom.com> Fixes: fd5e5dd ("arm64: dts: Add PCIe0 and PCIe4 DT nodes for NS2") Fixes: dddc3c9 ("arm64: dts: NS2: add AMAC ethernet support") Fixes: e792491 ("arm64: dts: Add Broadcom Northstar2 device tree entries for PDC driver") Fixes: ac9aae0 ("arm64: dts: Add SATA3 AHCI and SATA3 PHY DT nodes for NS2") Fixes: efc8776 ("arm64: dts: Add SDHCI DT node for NS2") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
1 parent c1ae3cf commit f0c0cb9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

arch/arm64/boot/dts/broadcom/ns2.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
pcie0: pcie@20020000 {
115115
compatible = "brcm,iproc-pcie";
116116
reg = <0 0x20020000 0 0x1000>;
117+
dma-coherent;
117118

118119
#interrupt-cells = <1>;
119120
interrupt-map-mask = <0 0 0 0>;
@@ -144,6 +145,7 @@
144145
pcie4: pcie@50020000 {
145146
compatible = "brcm,iproc-pcie";
146147
reg = <0 0x50020000 0 0x1000>;
148+
dma-coherent;
147149

148150
#interrupt-cells = <1>;
149151
interrupt-map-mask = <0 0 0 0>;
@@ -174,6 +176,7 @@
174176
pcie8: pcie@60c00000 {
175177
compatible = "brcm,iproc-pcie-paxc";
176178
reg = <0 0x60c00000 0 0x1000>;
179+
dma-coherent;
177180
linux,pci-domain = <8>;
178181

179182
bus-range = <0x0 0x1>;
@@ -203,6 +206,7 @@
203206
<0x61030000 0x100>;
204207
reg-names = "amac_base", "idm_base", "nicpm_base";
205208
interrupts = <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>;
209+
dma-coherent;
206210
phy-handle = <&gphy0>;
207211
phy-mode = "rgmii";
208212
status = "disabled";
@@ -213,6 +217,7 @@
213217
reg = <0x612c0000 0x445>; /* PDC FS0 regs */
214218
interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
215219
#mbox-cells = <1>;
220+
dma-coherent;
216221
brcm,rx-status-len = <32>;
217222
brcm,use-bcm-hdr;
218223
};
@@ -222,6 +227,7 @@
222227
reg = <0x612e0000 0x445>; /* PDC FS1 regs */
223228
interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
224229
#mbox-cells = <1>;
230+
dma-coherent;
225231
brcm,rx-status-len = <32>;
226232
brcm,use-bcm-hdr;
227233
};
@@ -231,6 +237,7 @@
231237
reg = <0x61300000 0x445>; /* PDC FS2 regs */
232238
interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
233239
#mbox-cells = <1>;
240+
dma-coherent;
234241
brcm,rx-status-len = <32>;
235242
brcm,use-bcm-hdr;
236243
};
@@ -240,6 +247,7 @@
240247
reg = <0x61320000 0x445>; /* PDC FS3 regs */
241248
interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
242249
#mbox-cells = <1>;
250+
dma-coherent;
243251
brcm,rx-status-len = <32>;
244252
brcm,use-bcm-hdr;
245253
};
@@ -644,6 +652,7 @@
644652
sata: ahci@663f2000 {
645653
compatible = "brcm,iproc-ahci", "generic-ahci";
646654
reg = <0x663f2000 0x1000>;
655+
dma-coherent;
647656
reg-names = "ahci";
648657
interrupts = <GIC_SPI 438 IRQ_TYPE_LEVEL_HIGH>;
649658
#address-cells = <1>;
@@ -667,6 +676,7 @@
667676
compatible = "brcm,sdhci-iproc-cygnus";
668677
reg = <0x66420000 0x100>;
669678
interrupts = <GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH>;
679+
dma-coherent;
670680
bus-width = <8>;
671681
clocks = <&genpll_sw BCM_NS2_GENPLL_SW_SDIO_CLK>;
672682
status = "disabled";
@@ -676,6 +686,7 @@
676686
compatible = "brcm,sdhci-iproc-cygnus";
677687
reg = <0x66430000 0x100>;
678688
interrupts = <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>;
689+
dma-coherent;
679690
bus-width = <8>;
680691
clocks = <&genpll_sw BCM_NS2_GENPLL_SW_SDIO_CLK>;
681692
status = "disabled";

0 commit comments

Comments
 (0)