Skip to content

Commit 7a8d1ec

Browse files
committed
arm64: Mark the Applied Micro X-Gene SATA controller as DMA coherent
Since the default DMA ops for arm64 are non-coherent, mark the X-Gene controller explicitly as dma-coherent to avoid additional cache maintenance. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Loc Ho <lho@apm.com>
1 parent 6ecba8e commit 7a8d1ec

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Documentation/devicetree/bindings/ata/apm-xgene.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Required properties:
2424
* "sata-phy" for the SATA 6.0Gbps PHY
2525

2626
Optional properties:
27+
- dma-coherent : Present if dma operations are coherent
2728
- status : Shall be "ok" if enabled or "disabled" if disabled.
2829
Default is "ok".
2930

@@ -55,6 +56,7 @@ Example:
5556
<0x0 0x1f22e000 0x0 0x1000>,
5657
<0x0 0x1f227000 0x0 0x1000>;
5758
interrupts = <0x0 0x87 0x4>;
59+
dma-coherent;
5860
status = "ok";
5961
clocks = <&sataclk 0>;
6062
phys = <&phy2 0>;
@@ -69,6 +71,7 @@ Example:
6971
<0x0 0x1f23e000 0x0 0x1000>,
7072
<0x0 0x1f237000 0x0 0x1000>;
7173
interrupts = <0x0 0x88 0x4>;
74+
dma-coherent;
7275
status = "ok";
7376
clocks = <&sataclk 0>;
7477
phys = <&phy3 0>;

arch/arm64/boot/dts/apm-storm.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
<0x0 0x1f21e000 0x0 0x1000>,
308308
<0x0 0x1f217000 0x0 0x1000>;
309309
interrupts = <0x0 0x86 0x4>;
310+
dma-coherent;
310311
status = "disabled";
311312
clocks = <&sata01clk 0>;
312313
phys = <&phy1 0>;
@@ -321,6 +322,7 @@
321322
<0x0 0x1f22e000 0x0 0x1000>,
322323
<0x0 0x1f227000 0x0 0x1000>;
323324
interrupts = <0x0 0x87 0x4>;
325+
dma-coherent;
324326
status = "ok";
325327
clocks = <&sata23clk 0>;
326328
phys = <&phy2 0>;
@@ -334,6 +336,7 @@
334336
<0x0 0x1f23d000 0x0 0x1000>,
335337
<0x0 0x1f23e000 0x0 0x1000>;
336338
interrupts = <0x0 0x88 0x4>;
339+
dma-coherent;
337340
status = "ok";
338341
clocks = <&sata45clk 0>;
339342
phys = <&phy3 0>;

0 commit comments

Comments
 (0)