From c6722d8be1374e4088a6d93eb9f1159b981a3eb5 Mon Sep 17 00:00:00 2001 From: Chandana Kishori Chiluveru Date: Thu, 22 Oct 2020 21:01:22 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Reduce the IOVA range for QUP usecase This change enables SMMU page table memory savings for QUP. No functional change but helps saving memory table space. Change-Id: Ie56582683eb594a1f8c3e6f746e7d7a0691598ef --- qcom/holi-qupv3.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcom/holi-qupv3.dtsi b/qcom/holi-qupv3.dtsi index 530d54e635a3..2d2975b0c717 100644 --- a/qcom/holi-qupv3.dtsi +++ b/qcom/holi-qupv3.dtsi @@ -26,7 +26,8 @@ ; qcom,vote-for-bw; iommus = <&apps_smmu 0x0003 0x0>; - qcom,iommu-dma-addr-pool = <0x40000000 0xc0000000>; + qcom,iommu-dma-addr-pool = <0x40000000 0x10000000>; + qcom,iommu-geometry = <0x40000000 0x10000000>; qcom,iommu-dma = "fastmap"; status = "ok"; }; @@ -190,7 +191,8 @@ ; qcom,vote-for-bw; iommus = <&apps_smmu 0x00c3 0x0>; - qcom,iommu-dma-addr-pool = <0x40000000 0xc0000000>; + qcom,iommu-dma-addr-pool = <0x40000000 0x10000000>; + qcom,iommu-geometry = <0x40000000 0x10000000>; qcom,iommu-dma = "fastmap"; status = "ok"; }; From 0b9756a23eb57a0403194790491df5fe32ce1ebd Mon Sep 17 00:00:00 2001 From: Chandana Kishori Chiluveru Date: Thu, 22 Oct 2020 21:06:38 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Reduce the IOVA range for slimbus and QUP usecases This change enables SMMU page table memory savings for qup and slim_aud. No functional change but helps saving memory table space. Change-Id: I094d0a18d6b5a0aab1ab5ac4f05dd183392f2e17 --- qcom/shima-qupv3.dtsi | 6 ++++-- qcom/shima.dtsi | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/qcom/shima-qupv3.dtsi b/qcom/shima-qupv3.dtsi index aa158a9189e4..a4c05936d55c 100644 --- a/qcom/shima-qupv3.dtsi +++ b/qcom/shima-qupv3.dtsi @@ -29,7 +29,8 @@ , ; iommus = <&apps_smmu 0x4c3 0x0>; - qcom,iommu-dma-addr-pool = <0x40000000 0xc0000000>; + qcom,iommu-dma-addr-pool = <0x40000000 0x10000000>; + qcom,iommu-geometry = <0x40000000 0x10000000>; qcom,iommu-dma = "fastmap"; }; @@ -362,7 +363,8 @@ , ; iommus = <&apps_smmu 0x43 0x0>; - qcom,iommu-dma-addr-pool = <0x40000000 0xc0000000>; + qcom,iommu-dma-addr-pool = <0x40000000 0x10000000>; + qcom,iommu-geometry = <0x40000000 0x10000000>; qcom,iommu-dma = "fastmap"; }; diff --git a/qcom/shima.dtsi b/qcom/shima.dtsi index 5032f9039003..71796e666482 100644 --- a/qcom/shima.dtsi +++ b/qcom/shima.dtsi @@ -537,7 +537,8 @@ qcom,apps-ch-pipes = <0x0>; qcom,ea-pc = <0x3d0>; iommus = <&apps_smmu 0x2026 0x0>; - qcom,iommu-dma-addr-pool = <0x40000000 0xc0000000>; + qcom,iommu-dma-addr-pool = <0x40000000 0x10000000>; + qcom,iommu-geometry = <0x40000000 0x10000000>; qcom,iommu-dma = "fastmap"; status = "ok";