From b8de1292e9f2773026dfe103fd614e28a4cac3a3 Mon Sep 17 00:00:00 2001 From: Himateja Reddy Date: Thu, 16 May 2024 16:45:29 -0700 Subject: [PATCH] arm64: dts: qcom: sun: Add SMMU pool configuration Add Unsigned PD pool configuration and allocation ranges property, used to pool multiple SMMU context banks with a fixed allocation ranges. This pool can be used by multiple Unsigned applications to offload to remote DSP subsystem and this removes the limitation of only allowing fixed number of Unsigned applications to offload to remote DSP subsystem. Change-Id: I3dc4309f4423aae7e68c743d129f9671a1ed96ca Signed-off-by: Himateja Reddy --- bindings/msm-fastrpc.txt | 3 +++ sun/sun-dsp.dtsi | 21 ++++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/bindings/msm-fastrpc.txt b/bindings/msm-fastrpc.txt index 864db51f..f6f31c56 100644 --- a/bindings/msm-fastrpc.txt +++ b/bindings/msm-fastrpc.txt @@ -32,6 +32,9 @@ Subnode Required properties: - dma-coherent : A flag marking a context bank as I/O coherent - shared-cb : A value indicating how many fastrpc sessions can share a context bank +- pd-type : A value indicating remote subsystem proess type +- alloc-size-range: A pair values indicating the allocation size range + of context bank Example: qcom,msm_fastrpc { diff --git a/sun/sun-dsp.dtsi b/sun/sun-dsp.dtsi index 514ccc4f..d4cbd384 100644 --- a/sun/sun-dsp.dtsi +++ b/sun/sun-dsp.dtsi @@ -154,7 +154,8 @@ dma-coherent; qcom,iova-best-fit; qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ - pd-type = <7>; /* USERPD */ + pd-type = <9>; /* USER_UNSIGNEDPD_POOL */ + alloc-size-range = <0x4000000 0xFFFFFFFF>; }; compute-cb@6 { @@ -168,7 +169,8 @@ dma-coherent; qcom,iova-best-fit; qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ - pd-type = <7>; /* USERPD */ + pd-type = <9>; /* USER_UNSIGNEDPD_POOL */ + alloc-size-range = <0x4000000 0xFFFFFFFF>; }; compute-cb@7 { @@ -182,7 +184,8 @@ dma-coherent; qcom,iova-best-fit; qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ - pd-type = <7>; /* USERPD */ + pd-type = <9>; /* USER_UNSIGNEDPD_POOL */ + alloc-size-range = <0x1000000 0xFFFFFFFF>; }; compute-cb@8 { @@ -196,7 +199,8 @@ dma-coherent; qcom,iova-best-fit; qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ - pd-type = <7>; /* USERPD */ + pd-type = <9>; /* USER_UNSIGNEDPD_POOL */ + alloc-size-range = <0x1000000 0xFFFFFFFF>; }; compute-cb@9 { @@ -226,7 +230,8 @@ dma-coherent; qcom,iova-best-fit; qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ - pd-type = <7>; /* USERPD */ + pd-type = <9>; /* USER_UNSIGNEDPD_POOL */ + alloc-size-range = <0x0 0xFFFFFFFF>; }; compute-cb@11 { @@ -241,7 +246,8 @@ dma-coherent; qcom,iova-best-fit; qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ - pd-type = <7>; /* USERPD */ + pd-type = <9>; /* USER_UNSIGNEDPD_POOL */ + alloc-size-range = <0x0 0xFFFFFFFF>; }; compute-cb@12 { @@ -254,7 +260,8 @@ dma-coherent; qcom,iova-best-fit; qcom,iova-max-align-shift = <9>; /* Set MAX alignment to 2 MB*/ - pd-type = <7>; /* USERPD */ + pd-type = <9>; /* USER_UNSIGNEDPD_POOL */ + alloc-size-range = <0x0 0xFFFFFFFF>; }; }; }; \ No newline at end of file