Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63be4eea authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

ARM: dts: msm: Replace dma-ranges with new api



New IOMMU/DMA Client API qcom,iommu-dma-addr-pool, replaces
the dma-ranges in order to request specific address ranges
for allocations.

CRs-Fixed: 2381570
Change-Id: I8b5d73d5e15c622f1a2925a3a0bff9be6eaba777
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent ae7fbdcb
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 */

#include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -17,8 +17,6 @@
		/* IOMMU Config */
		#address-cells = <1>;
		#size-cells = <1>;
		qcom,iommu-faults = "non-fatal";
		qcom,iommu-pagetables = "LLC";

		/* Supply */
		iris-ctl-supply = <&mvs0c_gdsc>;
@@ -46,7 +44,9 @@
			compatible = "qcom,msm-vidc,context-bank";
			label = "venus_ns";
			iommus = <&apps_smmu 0x2100 0x0400>;
			dma-ranges = <0x25800000 0x25800000 0xba800000>;
			qcom,iommu-dma-addr-pool = <0x25800000 0xba800000>;
			qcom,iommu-faults = "non-fatal";
			qcom,iommu-pagetables = "LLC";
			buffer-types = <0xfff>;
			virtual-addr-pool = <0x25800000 0xba800000>;
		};
@@ -55,7 +55,9 @@
			compatible = "qcom,msm-vidc,context-bank";
			label = "venus_sec_non_pixel";
			iommus = <&apps_smmu 0x2104 0x0400>;
			dma-ranges = <0x01000000 0x01000000 0x24800000>;
			qcom,iommu-dma-addr-pool = <0x01000000 0x24800000>;
			qcom,iommu-faults = "non-fatal";
			qcom,iommu-pagetables = "LLC";
			qcom,iommu-vmid = <0xB>; /*VMID_CP_NON_PIXEL*/
			buffer-types = <0x480>;
			virtual-addr-pool = <0x01000000 0x24800000>;
@@ -66,7 +68,9 @@
			compatible = "qcom,msm-vidc,context-bank";
			label = "venus_sec_bitstream";
			iommus = <&apps_smmu 0x2101 0x0404>;
			dma-ranges = <0x00500000 0x00500000 0xdfb00000>;
			qcom,iommu-dma-addr-pool = <0x00500000 0xdfb00000>;
			qcom,iommu-faults = "non-fatal";
			qcom,iommu-pagetables = "LLC";
			qcom,iommu-vmid = <0x9>; /*VMID_CP_BITSTREAM*/
			buffer-types = <0x241>;
			virtual-addr-pool = <0x00500000 0xdfb00000>;
@@ -77,7 +81,9 @@
			compatible = "qcom,msm-vidc,context-bank";
			label = "venus_sec_pixel";
			iommus = <&apps_smmu 0x2103 0x0400>;
			dma-ranges = <0x00500000 0x00500000 0xdfb00000>;
			qcom,iommu-dma-addr-pool = <0x00500000 0xdfb00000>;
			qcom,iommu-faults = "non-fatal";
			qcom,iommu-pagetables = "LLC";
			qcom,iommu-vmid = <0xA>; /*VMID_CP_PIXEL*/
			buffer-types = <0x106>;
			virtual-addr-pool = <0x00500000 0xdfb00000>;