Skip to contentSkip to conversation

dt-bindings: dma: snps,dw-axi-dmac: Allow devices to be marked as noncoherent

PATCH Applied Inochi Amaoto 3 participants 3 messages Mar 3, 2025 – Mar 10, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: dma: snps,dw-axi-dmac: Allow devices to be marked as noncoherent

A RISC-V platform can have both DMA coherent/noncoherent devices. Since the RISC-V architecture is marked coherent, devices should be marked as noncoherent when coherent devices exist.

Add dma-noncoherent property for snps,dw-axi-dmac device. It will be used on SG2044, and it has other coherent devices.

---
Related discussion for this property.

https://lore.kernel.org/all/[email protected]/

---
 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +2 -0
index 525f5f3932f5..935735a59afd 100644
@@ -59,6 +59,8 @@ properties:
     minimum: 1
     maximum: 8
 
+  dma-noncoherent: true
+
   resets:
     minItems: 1
     maxItems: 2

--
2.48.1

Acked-by on v1 1/1
#1 lore raw
Quoted 21 lines · Inochi Amaoto

A RISC-V platform can have both DMA coherent/noncoherent devices. Since the RISC-V architecture is marked coherent, devices should be marked as noncoherent when coherent devices exist.

Add dma-noncoherent property for snps,dw-axi-dmac device. It will be used on SG2044, and it has other coherent devices.

---
Related discussion for this property.

https://lore.kernel.org/all/[email protected]/

---
 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +0 -0
index 525f5f3932f5..935735a59afd 100644

Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml properties: · line 62

Quoted 4 lines
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +1 -0
@@ -59,6 +59,8 @@ properties:
     minimum: 1
     maximum: 8
 
+  dma-noncoherent: true

I'd probably also add mutual exclusion, but I think that's something for dt-schema and not for individual bindings.

Quoted 7 lines
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +1 -1
+
   resets:
     minItems: 1
     maxItems: 2
--

2.48.1

maintainer Applied
#2 lore raw
In reply to Inochi Amaoto
Quoted 8 lines · Inochi Amaoto

A RISC-V platform can have both DMA coherent/noncoherent devices. Since the RISC-V architecture is marked coherent, devices should be marked as noncoherent when coherent devices exist.

Add dma-noncoherent property for snps,dw-axi-dmac device. It will be used on SG2044, and it has other coherent devices.

[...]

Applied, thanks!

[1/1] dt-bindings: dma: snps,dw-axi-dmac: Allow devices to be marked as noncoherent

      commit: 6ec29d4086ed8b951fa794ac6c0e7cd7ae3762d9

Best regards,

Signature · 1 line
~Vinod