From 15ae541dba35f0dd765171fb80682a13216c1586 Mon Sep 17 00:00:00 2001 From: Mayank Rana Date: Mon, 22 Mar 2021 10:57:32 -0700 Subject: [PATCH 1/2] ARM: dts: msm: Update USB IOVA start address on sdxlemur USB shares pair for tethered functionality related buffers and TRB ring with IPA. Although USB IOVA is using atomic property but IPA is using fastmap functionality. This results into USB mapping also becomes fastmap. Fastmap functionality uses static page table which increases overall memory requirement for page table. To reduce page table related memory update USB IOVA start address from 0x90000000 to 0x40000000 on sdxlemur. Change-Id: I7aefa20cd05414abb585cb6a7588344ef77a08ca --- qcom/sdxlemur-usb.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/sdxlemur-usb.dtsi b/qcom/sdxlemur-usb.dtsi index fe9dab2a9c74..7eba656d4638 100644 --- a/qcom/sdxlemur-usb.dtsi +++ b/qcom/sdxlemur-usb.dtsi @@ -8,7 +8,7 @@ iommus = <&apps_smmu 0x1a0 0x0>; qcom,iommu-dma = "atomic"; - qcom,iommu-dma-addr-pool = <0x90000000 0x60000000>; + qcom,iommu-dma-addr-pool = <0x40000000 0x60000000>; #address-cells = <1>; #size-cells = <1>; ranges; From edfcbf5d77fda7587fbe3be6a87c643addb6f99c Mon Sep 17 00:00:00 2001 From: Bojun Pan Date: Thu, 18 Mar 2021 16:01:57 -0700 Subject: [PATCH 2/2] ARM: dts: msm: reduce the fastmap memory Set the geometry to reduce the fastmap memory on IPA AP cb. Change-Id: I45ae12513a69715545313047f3a41dcf16953517 --- qcom/sdxlemur.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/sdxlemur.dtsi b/qcom/sdxlemur.dtsi index a90d8dd61418..c1e320e67ac3 100644 --- a/qcom/sdxlemur.dtsi +++ b/qcom/sdxlemur.dtsi @@ -1224,6 +1224,7 @@ qcom,additional-mapping = /* modem tables in IMEM */ <0x14688000 0x14688000 0x3000>; + qcom,iommu-geometry = <0x0 0xA0000000>; qcom,iommu-dma = "fastmap"; qcom,ipa-q6-smem-size = <36864>; };