From 8e285abafefc9d9ab03538f692f25fbdf8cd3ea7 Mon Sep 17 00:00:00 2001 From: Sreenad Menon Date: Sun, 21 Feb 2021 23:21:41 -0800 Subject: [PATCH] ARM: dts: msm: Add dma-coherent property to virtio device nodes swiotlb_addr returned by swiotlb_tbl_map_single() is modified for the sake of virtio backends. If not marked as dma-coherent, kernel would crash due to arch_sync_dma_for_device() call in swiotlb_map() as that address is not existing. Change-Id: I6b1e72a84584a946c763c16d61c5c04f02eb56c0 --- qcom/waipio-vm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/waipio-vm.dtsi b/qcom/waipio-vm.dtsi index 7aef566b..8e30e132 100644 --- a/qcom/waipio-vm.dtsi +++ b/qcom/waipio-vm.dtsi @@ -127,6 +127,7 @@ peer-default; vqs-num = <0x1>; push-compatible = "virtio,mmio"; + dma-coherent; dma_base = <0x0 0x0>; memory { qcom,label = <0x10>; @@ -141,6 +142,7 @@ peer-default; vqs-num = <0x1>; push-compatible = "virtio,mmio"; + dma-coherent; dma_base = <0x0 0x4000>; memory { qcom,label = <0x11>;