From d9446a3f6c6c9a6d6c7c92a705c83110adf16262 Mon Sep 17 00:00:00 2001 From: Chaitanya Pratapa Date: Mon, 26 Feb 2024 22:58:07 -0800 Subject: [PATCH] ARM: dts: msm: fix 64 bit addressing for ipa Make changes to add 64 bit address support using "iommu-addresses" attribute. Change-Id: Ide79f48f2d06c7fdaf897a8b03a399167b41a5e2 Signed-off-by: Chaitanya Pratapa --- sun-ipa.dtsi | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sun-ipa.dtsi b/sun-ipa.dtsi index a19e824f..bba7776c 100644 --- a/sun-ipa.dtsi +++ b/sun-ipa.dtsi @@ -44,12 +44,19 @@ /* Low Latency pipe alloc factor */ qcom,ipa-gen-rx-ll-pool-sz-factor = <1>; + #address-cells = <2>; + #size-cells = <2>; }; &soc { ipa_smmu_ap_partition: ipa_smmu_ap_partition { - iommu-addresses = <&ipa_smmu_ap 0x0 0x20000000>, - <&ipa_smmu_ap 0x40000000 0xC0000000>; + iommu-addresses = <&ipa_smmu_ap 0x0 0x0 0x0 0x20000000>, + <&ipa_smmu_ap 0x0 0x40000000 0xFFFFFFFF 0xC0000000>; + }; + + ipa_smmu_uc_partition: ipa_smmu_uc_partition { + iommu-addresses = <&ipa_smmu_uc 0x0 0x0 0x0 0x20000000>, + <&ipa_smmu_uc 0x0 0x40000000 0xFFFFFFFF 0xC0000000>; }; }; @@ -60,3 +67,8 @@ /* modem tables in IMEM */ <0x14683000 0x14683000 0x2000>; }; + +&ipa_smmu_uc { + /delete-property/ qcom,iommu-dma-addr-pool; + memory-region = <&ipa_smmu_uc_partition>; +};