Skip to contentSkip to conversation

dt-bindings: virtio,mmio: Allow setting devices 'dma-coherent'

PATCH Applied Rob Herring 1 participant 2 messages Mar 10, 2022 – Mar 20, 2022

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: virtio,mmio: Allow setting devices 'dma-coherent'

'virtio,mmio' devices are always coherent within a guest. As Arm DTs are default non-coherent, the 'dma-coherent' property needs to be set on the virtio device to mark them as such. This aligns with the QEMU 'virt' machine DTB.

---
 Documentation/devicetree/bindings/virtio/mmio.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/virtio/mmio.yaml +2 -0
index 4b7a0273181c..10c22b5bd16a 100644
@@ -20,6 +20,8 @@ properties:
   reg:
     maxItems: 1
 
+  dma-coherent: true
+
   interrupts:
     maxItems: 1
 
Signature · 6 lines
2.32.0

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
author maintainer Applied
#1 lore raw
Quoted 10 lines · Rob Herring

'virtio,mmio' devices are always coherent within a guest. As Arm DTs are default non-coherent, the 'dma-coherent' property needs to be set on the virtio device to mark them as such. This aligns with the QEMU 'virt' machine DTB.

---
 Documentation/devicetree/bindings/virtio/mmio.yaml | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks!