From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796403002; b=JQAR+xw5IJyBXZAJ6c//U2GvwRNkYSRxZaKOl0/SeGw5mtwKNw+CGsZSe6tVOzXHowuM Mwzdj0TRhwb57FE9/TiPHgKXlS2+R0HY/q3q5srbD4g+caybacuTDYSWFk9DBaRCrGdtB K1/meeu/0ORXJAfajaOeyUy2iAMAn7zlP3qtCSjUsh8glOxioJPOLc9jN9X5Mzz37j1UE asAEKZc4JFxtf4uBZDBi3cPrF5Go81FAD2MBp4wqk+BfcJ1Q70HSg625KI9eX+7prDbiE cVJIKfQ1hrmml4R0wn4kBr4K3syM18s786zmDPVyfyN8zNo2lnesB6RiIsPCU5ho3Tg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796403002; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=PGodqRLL3xY7W7vKuqsGFWk1F2JHCV0c5ncpT1MIY0w=; b=JTpatHF7ECvBsHsAxj9sHCAIUgYP/MyU+sDHzhaO4E53ydfyTScURpp58glfaI+K0jCw Sa7AeJzb3WNll9zjJV/+oFbFFqdPrAdB/D9nOnT5jLVNWoy0qLyoix0bag4sRkm6t7rSX sCT9j/zUlJDRQ+sUZNUcl9L6bxvyexwT2d2/GrgM4w4mIdBTyygrv9LDoSuB3YrrGGNKL kuNPQozJmzDpQdnj0551WwpE71TP7RaH6+UF9MuUVdiVpCvSImSmcs0Vi5/EMgV8b1woS hYmdqXiwBYLeL/j8LlDPfWvwaMP2W3m18c58ob4buuShWHSJMPURl3tXgEIZtDNP02Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="iI/WvLc6"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F513606A322; Fri, 4 Dec 2026 16:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iI/WvLc6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEC711F000C2; Fri, 4 Dec 2026 16:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796403001; bh=PGodqRLL3xY7W7vKuqsGFWk1F2JHCV0c5ncpT1MIY0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iI/WvLc65+Cy7+ofbNn7A5suTrvrnGFMWAqDNgo764zAIVL8ad/+oCht/rlXJUdjn 1rYZqlsXdPtEsnXWEAXfB6eq6ZCq5vjmCi7gJFm4OlzeV4/krGNxfWQtuHJNblcfDa FG+CEcnbzJ+HpnkkhSZ8bolngJXPZ7u/fnU4HEFV5MMuTq2NHROc3Wt3xhHFyueYJ3 YGKd5uWgjXXLCp7IZR9tyGc3eBnIRk/G+2Y9ZT+MgAHjWALSriQUUtmaApb6GTeCh0 6sbTKmnMVLdkzlHqK0F2dNp4HVBCz2SekljvtNbTbcNxZaNBuvTdUd6LQotj3fNVnn e/q8bLSaM0pwg== Date: Fri, 4 Dec 2026 10:49:58 -0600 From: Bjorn Andersson To: Vinayak Katoch Cc: Konrad Dybcio , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ekansh Gupta , Bharath Kumar , Chenna Kesava Raju , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: glymur: add CDSP FastRPC extended context bank Message-ID: References: <20261007-extended-mapping-dts-v2-0-fa9e14900313@oss.qualcomm.com> <20261007-extended-mapping-dts-v2-2-fa9e14900313@oss.qualcomm.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261007-extended-mapping-dts-v2-2-fa9e14900313@oss.qualcomm.com> On Wed, Oct 07, 2026 at 10:43:20PM +0530, Vinayak Katoch wrote: > Wire up compute-cb@12 as the dedicated extended IOVA context bank by > adding iommu-ranges = <0x4 0x0 0xfc 0x0>, restricting allocations to > the [16 GiB, ~1 TiB) window. This allows large CDSP buffers to be > mapped beyond the standard 34-bit limit. > > Bump #address-cells and #size-cells to <2> on the fastrpc and glink > ancestor nodes to accommodate 64-bit iommu-ranges values, and update > all compute-cb reg entries to the four-cell format accordingly. > This no longer applies, can you please rebase and resubmit it? Also while you're at it, can you please update the commit message to start with a clear problem statement. I would like it to make it clear that this allow you to map larger buffers, but also why cb@12 is special. Thanks, Bjorn > Signed-off-by: Vinayak Katoch > --- > arch/arm64/boot/dts/qcom/glymur.dtsi | 31 ++++++++++++++++++------------- > 1 file changed, 18 insertions(+), 13 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi > index 65a398c0a992..556867fbf197 100644 > --- a/arch/arm64/boot/dts/qcom/glymur.dtsi > +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi > @@ -8462,6 +8462,8 @@ remoteproc_cdsp: remoteproc@32300000 { > qcom,qmp = <&aoss_qmp>; > qcom,smem-states = <&smp2p_cdsp_out 0>; > qcom,smem-state-names = "stop"; > + #address-cells = <2>; > + #size-cells = <2>; > > status = "disabled"; > > @@ -8473,17 +8475,19 @@ IPCC_MPROC_SIGNAL_GLINK_QMP > IPCC_MPROC_SIGNAL_GLINK_QMP>; > qcom,remote-pid = <5>; > label = "cdsp"; > + #address-cells = <2>; > + #size-cells = <2>; > > fastrpc { > compatible = "qcom,glymur-fastrpc", "qcom,kaanapali-fastrpc"; > qcom,glink-channels = "fastrpcglink-apps-dsp"; > label = "cdsp"; > - #address-cells = <1>; > - #size-cells = <0>; > + #address-cells = <2>; > + #size-cells = <2>; > > compute-cb@1 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <1>; > + reg = <0x0 0x1 0x0 0x0>; > > iommus = <&apps_smmu 0x2401 0x440>, > <&apps_smmu 0x1961 0x0>, > @@ -8493,7 +8497,7 @@ compute-cb@1 { > > compute-cb@2 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <2>; > + reg = <0x0 0x2 0x0 0x0>; > > iommus = <&apps_smmu 0x2402 0x440>, > <&apps_smmu 0x1962 0x0>, > @@ -8503,7 +8507,7 @@ compute-cb@2 { > > compute-cb@3 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <3>; > + reg = <0x0 0x3 0x0 0x0>; > > iommus = <&apps_smmu 0x2403 0x440>, > <&apps_smmu 0x1963 0x0>, > @@ -8513,7 +8517,7 @@ compute-cb@3 { > > compute-cb@4 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <4>; > + reg = <0x0 0x4 0x0 0x0>; > > iommus = <&apps_smmu 0x2404 0x440>, > <&apps_smmu 0x1964 0x0>, > @@ -8523,7 +8527,7 @@ compute-cb@4 { > > compute-cb@5 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <5>; > + reg = <0x0 0x5 0x0 0x0>; > > iommus = <&apps_smmu 0x2405 0x440>, > <&apps_smmu 0x1965 0x0>, > @@ -8533,7 +8537,7 @@ compute-cb@5 { > > compute-cb@6 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <6>; > + reg = <0x0 0x6 0x0 0x0>; > > iommus = <&apps_smmu 0x2406 0x440>, > <&apps_smmu 0x1966 0x0>, > @@ -8543,7 +8547,7 @@ compute-cb@6 { > > compute-cb@7 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <7>; > + reg = <0x0 0x7 0x0 0x0>; > > iommus = <&apps_smmu 0x2407 0x440>, > <&apps_smmu 0x1967 0x0>, > @@ -8553,7 +8557,7 @@ compute-cb@7 { > > compute-cb@8 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <8>; > + reg = <0x0 0x8 0x0 0x0>; > > iommus = <&apps_smmu 0x2408 0x440>, > <&apps_smmu 0x1968 0x0>, > @@ -8565,7 +8569,7 @@ compute-cb@8 { > > compute-cb@10 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <10>; > + reg = <0x0 0xa 0x0 0x0>; > > iommus = <&apps_smmu 0x240c 0x440>, > <&apps_smmu 0x196c 0x0>, > @@ -8575,7 +8579,7 @@ compute-cb@10 { > > compute-cb@11 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <11>; > + reg = <0x0 0xb 0x0 0x0>; > > iommus = <&apps_smmu 0x240d 0x440>, > <&apps_smmu 0x196d 0x0>, > @@ -8585,11 +8589,12 @@ compute-cb@11 { > > compute-cb@12 { > compatible = "qcom,fastrpc-compute-cb"; > - reg = <12>; > + reg = <0x0 0xc 0x0 0x0>; > > iommus = <&apps_smmu 0x240e 0x440>, > <&apps_smmu 0x196e 0x0>, > <&apps_smmu 0x19ce 0x0>; > + iommu-ranges = <0x4 0x0 0xfc 0x0>; > dma-coherent; > }; > }; > > -- > 2.34.1 >