From e1682de8730640a38ffb193840f6e256688c8e31 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Jha Date: Mon, 17 Aug 2020 14:08:38 +0530 Subject: [PATCH] ARM: dts: msm: Add support to discard a region in dma space Add support to discard a specified address space region inside the full dma map region for shima target. CRs-Fixed: 2732941 Change-Id: I7ec78c2842b16396cfe1632e7b09d7cdd84bd8bb --- shima-camera.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shima-camera.dtsi b/shima-camera.dtsi index 4ea2ad3b1865..cff7270257fd 100644 --- a/shima-camera.dtsi +++ b/shima-camera.dtsi @@ -461,7 +461,8 @@ <&apps_smmu 0x2820 0x400>, <&apps_smmu 0x2C20 0x400>; label = "icp"; - qcom,iommu-dma-addr-pool = <0x10c00000 0xcf300000>; + qcom,iommu-dma-addr-pool = <0x10c00000 0xee300000>; + iova-region-discard = <0xdff00000 0x300000>; icp_iova_mem_map: iova-mem-map { iova-mem-region-firmware { /* Firmware region is 5MB */ @@ -491,10 +492,11 @@ }; iova-mem-region-io { - /* IO region is approximately 3.3 GB */ + /* IO region is approximately 3.7 GB */ iova-region-name = "io"; iova-region-start = <0x10c00000>; - iova-region-len = <0xcf300000>; + iova-region-len = <0xee300000>; + iova-region-discard = <0xdff00000 0x300000>; iova-region-id = <0x3>; status = "ok"; };