From 00b7d1455c90283a0631cafa0dc78fa5b532e4f7 Mon Sep 17 00:00:00 2001 From: Uttkarsh Aggarwal Date: Tue, 28 May 2024 10:12:00 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Enable SMMU in tuna Enable SMMU for the USB controller on tuna. Note: Currently in bypass mode. Change-Id: If60f552246306b2f73527b2cd8cbb6a9396eeaad Signed-off-by: Uttkarsh Aggarwal --- qcom/tuna-usb.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/tuna-usb.dtsi b/qcom/tuna-usb.dtsi index cb065d25..21c1cea6 100644 --- a/qcom/tuna-usb.dtsi +++ b/qcom/tuna-usb.dtsi @@ -39,6 +39,11 @@ compatible = "snps,dwc3"; reg = <0xa600000 0xd93c>; + iommus = <&apps_smmu 0x40 0x0>; + qcom,iommu-dma = "bypass"; + qcom,iommu-dma-addr-pool = <0x90000000 0x60000000>; + dma-coherent; + interrupts = ; snps,disable-clk-gating; snps,has-lpm-erratum; From 37943fdc917f5e45654297638e1bdc52ffb3bf36 Mon Sep 17 00:00:00 2001 From: Uttkarsh Aggarwal Date: Tue, 16 Jul 2024 10:14:49 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Setting IOMMU to atomic in tuna In this change switching from "bypass" to "atomic" for tuna. Change-Id: Iae14cab97f4e98d6bd6cc350f61e5cfb4a97f7fc Signed-off-by: Uttkarsh Aggarwal --- qcom/tuna-usb.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/tuna-usb.dtsi b/qcom/tuna-usb.dtsi index 21c1cea6..88fa476e 100644 --- a/qcom/tuna-usb.dtsi +++ b/qcom/tuna-usb.dtsi @@ -40,7 +40,7 @@ reg = <0xa600000 0xd93c>; iommus = <&apps_smmu 0x40 0x0>; - qcom,iommu-dma = "bypass"; + qcom,iommu-dma = "atomic"; qcom,iommu-dma-addr-pool = <0x90000000 0x60000000>; dma-coherent;