From 5ccc2af5ed713f1ef2739bcdb33a04da154de809 Mon Sep 17 00:00:00 2001 From: Edgar Flores Date: Tue, 28 May 2024 15:00:48 -0700 Subject: [PATCH] arm64: dts: msm: Add iova alignment flags for trusted dtsi Add iova-max-align-shift and iova-best-fit flags to maximize smmu allocation and minimize smmu fragmentation. Change-Id: Iaaab351ca5498a26243ecccd8392ec0bd1c9572c --- sun/sun-dsp-trustedvm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sun/sun-dsp-trustedvm.dtsi b/sun/sun-dsp-trustedvm.dtsi index e1c5db54..381f88c7 100644 --- a/sun/sun-dsp-trustedvm.dtsi +++ b/sun/sun-dsp-trustedvm.dtsi @@ -13,6 +13,8 @@ memory-region = <&fastrpc_gen_pool_region>; qcom,iommu-faults = "stall-disable", "HUPCF"; dma-coherent; + qcom,iova-best-fit; + qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ qrtr-gen-pool = <&fastrpc_compute_cb1>; frpc-gen-addr-pool = <0x8000 0x9000>; pd-type = <4>; /* SECURE_STATICPD */