Message ID | 20230330165322.118279-3-me@dylanvanassche.be |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8fd2:0:b0:3b7:ab69:e81 with SMTP id r18csp1071394vqt; Thu, 30 Mar 2023 09:55:39 -0700 (PDT) X-Google-Smtp-Source: AKy350YzImvcLdNNmGOrxFzOFn6VhYloVUBgBOxNtjvFf9Ita+Zz7vaFp98Ry9o3akFjYWphHS6L X-Received: by 2002:a17:906:551:b0:92a:8067:7637 with SMTP id k17-20020a170906055100b0092a80677637mr19463111eja.61.1680195338755; Thu, 30 Mar 2023 09:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680195338; cv=none; d=google.com; s=arc-20160816; b=Myl71KASovUTxjvIlxJfoKbrFAjw2mMITSUwEzsz3ympYA2bWWeQuLhiTUGGlu4DRP MKgy1zAXXhHzzCBkIKfMoLOI2tMgs3Top5K+ZY5pX47lgUtSd9/h0oWS1Df5+vP3LiFX FJdJkKWCmMt1AZZmffLQJ6o6hyDzpPh+OSp9vscaISUSCCTtW1i1nHJh/sptSlA5McFG mrIocUTfAHwLHUWPOlbN5FViGSlvJTyc6iM9vE2m2DZX4nHhZirShPti8RseoOcb7D/s mUOI620GpW3BPgPNLESD1+vjajxz6NbfycswWzcNwkdMso8qtb04Herxt4jYwN4cD/B5 GIQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DJMlDYTEyZMoHy7ddCUlUChH74G+JU2iSWGTmKQqo+M=; b=Vt42JQ+cAu6EMCfDjPN5cYdCqvoACryCfSyxWwBM+ka23rEKuoIaEIBZb7eSbvF4f/ E7SBopn+QJKVW5DJAv5zLawiRkVOdv6oDeZ65OXIeD3NSinPCnMdhyiGuwwMjzzzSwYL TsKmALW7FQG5Gs2dz2vJIxZoxN91dTPnvl6qSkndregdrz/o5YBXEeU826muVG3wxHOC 5zDLm0t2EseAUmIFhx4wtGPkQBYYLLqEjR7txsER0VXMMSgmPMmJKSMwPwj8J9guaJjG TuzGoKCSMxuS+xxTFuUNDy3XjT8qI3TLdp72I9XZ3me4KKl8e9WcV28CZCb0IWHZ78ov 2TRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=N70FlUmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id le26-20020a170907171a00b00928798bfefcsi47457ejc.465.2023.03.30.09.55.11; Thu, 30 Mar 2023 09:55:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=N70FlUmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjC3QyN (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Thu, 30 Mar 2023 12:54:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231969AbjC3Qxx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Mar 2023 12:53:53 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C2F4EB6C; Thu, 30 Mar 2023 09:53:42 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PnTyW117gz9sxt; Thu, 30 Mar 2023 18:53:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1680195219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DJMlDYTEyZMoHy7ddCUlUChH74G+JU2iSWGTmKQqo+M=; b=N70FlUmkzpGdLtb4sCzInMwZ+3Pn2B146YXQhW7SEuX7b8D4ht6UU0q84/RcRalDAy4zkf +i30rIDZX5FgXlc5X0fU5z3wOdov5BYY2hAGxnOw1Xhh8LMZlE3Qd2kdG6nPddR9/VG0UZ qnN40geJACXNrzSdQmmfDfAfO3dIEiXUd9BIBseZnz41SPZM3fnwygxkXRrfTije7lPDWU 87a9kqyXGIOXWnXVUAjAEXROXZcO5FkO55uxUdOxQpPa6t764K970WDIAvOqnJUCgGlXlJ dSKdqGvXnVLjrwPP+tvWYNwrVz4ELw/51+DjqU04X/Kum4eimMN9OTJcGHZmRg== From: Dylan Van Assche <me@dylanvanassche.be> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Konrad Dybcio <konrad.dybcio@linaro.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche <me@dylanvanassche.be> Subject: [PATCH v3 2/4] dts: arm64: qcom: sdm845: add SLPI FastRPC support Date: Thu, 30 Mar 2023 18:53:20 +0200 Message-Id: <20230330165322.118279-3-me@dylanvanassche.be> In-Reply-To: <20230330165322.118279-1-me@dylanvanassche.be> References: <20230330165322.118279-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4PnTyW117gz9sxt X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761812507288439014?= X-GMAIL-MSGID: =?utf-8?q?1761812507288439014?= |
Series |
dts: qcom: arm64: sdm845: SLPI DSP enablement
|
|
Commit Message
Dylan Van Assche
March 30, 2023, 4:53 p.m. UTC
Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC through
an allocated memory region to load files from the host filesystem
such as sensor configuration files.
Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, similar to
downstream, to allow userspace to communicate with the SLPI via the
FastRPC interface for initializing the sensors on the SLPI.
Signed-off-by: Dylan Van Assche <me@dylanvanassche.be>
---
arch/arm64/boot/dts/qcom/sdm845.dtsi | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
Comments
On 30.03.2023 18:53, Dylan Van Assche wrote: > Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC through > an allocated memory region to load files from the host filesystem > such as sensor configuration files. > > Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, similar to > downstream, to allow userspace to communicate with the SLPI via the > FastRPC interface for initializing the sensors on the SLPI. > > Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 3b547cb7aeb8..8ea4944f3ad6 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -878,6 +878,14 @@ mdata_mem: mpss-metadata { > size = <0 0x4000>; > no-map; > }; > + > + fastrpc_mem: fastrpc { > + compatible = "shared-dma-pool"; > + reusable; Please move it last to get a nice reverse-Christmas-tree layout. > + alloc-ranges = <0 0x00000000 0 0xffffffff>; Would there be any issues with it starting over (1<<31 - 1)? > + alignment = <0 0x400000>; Please use 0x0 for the 0 here, as it's essentially reg.size with size-cells = 2 > + size = <0 0x1000000>; Ditto > + }; > }; > > adsp_pas: remoteproc-adsp { > @@ -3344,6 +3352,22 @@ glink-edge { > label = "dsps"; > qcom,remote-pid = <3>; > mboxes = <&apss_shared 24>; > + > + fastrpc { > + compatible = "qcom,fastrpc"; > + qcom,glink-channels = "fastrpcglink-apps-dsp"; > + label = "sdsp"; > + qcom,non-secure-domain; > + qcom,vmids = <0x3 0xF 0x5 0x6>; Please use the recently-introduced header and depend on (and make a patch atop) https://lore.kernel.org/linux-arm-msm/8685b710-b74d-556a-815d-0ffef2b0eeff@linaro.org/T/#t Konrad > + memory-region = <&fastrpc_mem>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + compute-cb@0 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <0>; > + }; > + }; > }; > }; >
Hi Konrad, On Fri, 2023-03-31 at 04:03 +0200, Konrad Dybcio wrote: > > > On 30.03.2023 18:53, Dylan Van Assche wrote: > > Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC through > > an allocated memory region to load files from the host filesystem > > such as sensor configuration files. > > > > Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, similar > > to > > downstream, to allow userspace to communicate with the SLPI via the > > FastRPC interface for initializing the sensors on the SLPI. > > > > Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> > > --- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 24 ++++++++++++++++++++++++ > > 1 file changed, 24 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > index 3b547cb7aeb8..8ea4944f3ad6 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > @@ -878,6 +878,14 @@ mdata_mem: mpss-metadata { > > size = <0 0x4000>; > > no-map; > > }; > > + > > + fastrpc_mem: fastrpc { > > + compatible = "shared-dma-pool"; > > + reusable; > Please move it last to get a nice reverse-Christmas-tree layout. > Will fix in v4. > > + alloc-ranges = <0 0x00000000 0 0xffffffff>; > Would there be any issues with it starting over (1<<31 - 1)? > You mean a bigger region then, like the whole CMA region then? AFAIK, the SLPI always use the same region expecting it to be in this range. However, I cannot confirm more, as I have no insights in the firmware running on there, this all comes from finding out what it exactly does on downstream. > > + alignment = <0 0x400000>; > Please use 0x0 for the 0 here, as it's essentially reg.size with > size-cells = 2 Will fix in v4. > > > + size = <0 0x1000000>; > Ditto Will fix in v4. > > > + }; > > }; > > > > adsp_pas: remoteproc-adsp { > > @@ -3344,6 +3352,22 @@ glink-edge { > > label = "dsps"; > > qcom,remote-pid = <3>; > > mboxes = <&apss_shared 24>; > > + > > + fastrpc { > > + compatible = > > "qcom,fastrpc"; > > + qcom,glink-channels = > > "fastrpcglink-apps-dsp"; > > + label = "sdsp"; > > + qcom,non-secure-domain; > > + qcom,vmids = <0x3 0xF 0x5 > > 0x6>; > Please use the recently-introduced header and depend on (and > make a patch atop) > > https://lore.kernel.org/linux-arm-msm/8685b710-b74d-556a-815d-0ffef2b0eeff@linaro.org/T/#t > > Konrad > > > + memory-region = > > <&fastrpc_mem>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + compute-cb@0 { > > + compatible = > > "qcom,fastrpc-compute-cb"; > > + reg = <0>; > > + }; > > + }; > > }; > > }; > > Kind regards, Dylan
On 31.03.2023 11:36, Dylan Van Assche wrote: > Hi Konrad, > > On Fri, 2023-03-31 at 04:03 +0200, Konrad Dybcio wrote: >> >> >> On 30.03.2023 18:53, Dylan Van Assche wrote: >>> Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC through >>> an allocated memory region to load files from the host filesystem >>> such as sensor configuration files. >>> >>> Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, similar >>> to >>> downstream, to allow userspace to communicate with the SLPI via the >>> FastRPC interface for initializing the sensors on the SLPI. >>> >>> Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> >>> --- >>> arch/arm64/boot/dts/qcom/sdm845.dtsi | 24 ++++++++++++++++++++++++ >>> 1 file changed, 24 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi >>> b/arch/arm64/boot/dts/qcom/sdm845.dtsi >>> index 3b547cb7aeb8..8ea4944f3ad6 100644 >>> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi >>> @@ -878,6 +878,14 @@ mdata_mem: mpss-metadata { >>> size = <0 0x4000>; >>> no-map; >>> }; >>> + >>> + fastrpc_mem: fastrpc { >>> + compatible = "shared-dma-pool"; >>> + reusable; >> Please move it last to get a nice reverse-Christmas-tree layout. >> > > Will fix in v4. > >>> + alloc-ranges = <0 0x00000000 0 0xffffffff>; >> Would there be any issues with it starting over (1<<31 - 1)? >> > > You mean a bigger region then, like the whole CMA region then? AFAIK, > the SLPI always use the same region expecting it to be in this range. > However, I cannot confirm more, as I have no insights in the firmware > running on there, this all comes from finding out what it exactly does > on downstream. I was asking about the <.. 0 0xfff.f> part specifically, as that means it can't be allocated above 4 gigs. But I guess it's just how qcom envisioned it. Also, please use 0x0 in alloc-ranges as well, this is all addresses/ reg sizes. Konrad > >>> + alignment = <0 0x400000>; >> Please use 0x0 for the 0 here, as it's essentially reg.size with >> size-cells = 2 > > Will fix in v4. > >> >>> + size = <0 0x1000000>; >> Ditto > > Will fix in v4. > >> >>> + }; >>> }; >>> >>> adsp_pas: remoteproc-adsp { >>> @@ -3344,6 +3352,22 @@ glink-edge { >>> label = "dsps"; >>> qcom,remote-pid = <3>; >>> mboxes = <&apss_shared 24>; >>> + >>> + fastrpc { >>> + compatible = >>> "qcom,fastrpc"; >>> + qcom,glink-channels = >>> "fastrpcglink-apps-dsp"; >>> + label = "sdsp"; >>> + qcom,non-secure-domain; >>> + qcom,vmids = <0x3 0xF 0x5 >>> 0x6>; >> Please use the recently-introduced header and depend on (and >> make a patch atop) >> >> https://lore.kernel.org/linux-arm-msm/8685b710-b74d-556a-815d-0ffef2b0eeff@linaro.org/T/#t >> >> Konrad >> >>> + memory-region = >>> <&fastrpc_mem>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + compute-cb@0 { >>> + compatible = >>> "qcom,fastrpc-compute-cb"; >>> + reg = <0>; >>> + }; >>> + }; >>> }; >>> }; >>> > > Kind regards, > Dylan
On Fri, 2023-03-31 at 14:20 +0200, Konrad Dybcio wrote: > > > On 31.03.2023 11:36, Dylan Van Assche wrote: > > Hi Konrad, > > > > On Fri, 2023-03-31 at 04:03 +0200, Konrad Dybcio wrote: > > > > > > > > > On 30.03.2023 18:53, Dylan Van Assche wrote: > > > > Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC > > > > through > > > > an allocated memory region to load files from the host > > > > filesystem > > > > such as sensor configuration files. > > > > > > > > Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, > > > > similar > > > > to > > > > downstream, to allow userspace to communicate with the SLPI via > > > > the > > > > FastRPC interface for initializing the sensors on the SLPI. > > > > > > > > Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> > > > > --- > > > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 24 > > > > ++++++++++++++++++++++++ > > > > 1 file changed, 24 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > > b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > > index 3b547cb7aeb8..8ea4944f3ad6 100644 > > > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > > @@ -878,6 +878,14 @@ mdata_mem: mpss-metadata { > > > > size = <0 0x4000>; > > > > no-map; > > > > }; > > > > + > > > > + fastrpc_mem: fastrpc { > > > > + compatible = "shared-dma-pool"; > > > > + reusable; > > > Please move it last to get a nice reverse-Christmas-tree layout. > > > > > > > Will fix in v4. > > > > > > + alloc-ranges = <0 0x00000000 0 > > > > 0xffffffff>; > > > Would there be any issues with it starting over (1<<31 - 1)? > > > > > > > You mean a bigger region then, like the whole CMA region then? > > AFAIK, > > the SLPI always use the same region expecting it to be in this > > range. > > However, I cannot confirm more, as I have no insights in the > > firmware > > running on there, this all comes from finding out what it exactly > > does > > on downstream. > I was asking about the <.. 0 0xfff.f> part specifically, as that > means > it can't be allocated above 4 gigs. But I guess it's just how qcom > envisioned it. > I think it is limited by qcom, but I cannot be entirely sure :) In any case, for v4, do I keep 0xffffffff? > Also, please use 0x0 in alloc-ranges as well, this is all addresses/ > reg sizes. > > Konrad Yes, will use 0x0 instead of 0. Dylan > > > > > > + alignment = <0 0x400000>; > > > Please use 0x0 for the 0 here, as it's essentially reg.size with > > > size-cells = 2 > > > > Will fix in v4. > > > > > > > > > + size = <0 0x1000000>; > > > Ditto > > > > Will fix in v4. > > > > > > > > > + }; > > > > }; > > > > > > > > adsp_pas: remoteproc-adsp { > > > > @@ -3344,6 +3352,22 @@ glink-edge { > > > > label = "dsps"; > > > > qcom,remote-pid = <3>; > > > > mboxes = <&apss_shared 24>; > > > > + > > > > + fastrpc { > > > > + compatible = > > > > "qcom,fastrpc"; > > > > + qcom,glink-channels = > > > > "fastrpcglink-apps-dsp"; > > > > + label = "sdsp"; > > > > + qcom,non-secure-domain; > > > > + qcom,vmids = <0x3 0xF > > > > 0x5 > > > > 0x6>; > > > Please use the recently-introduced header and depend on (and > > > make a patch atop) > > > > > > https://lore.kernel.org/linux-arm-msm/8685b710-b74d-556a-815d-0ffef2b0eeff@linaro.org/T/#t > > > > > > Konrad > > > > > > > + memory-region = > > > > <&fastrpc_mem>; > > > > + #address-cells = <1>; > > > > + #size-cells = <0>; > > > > + > > > > + compute-cb@0 { > > > > + compatible = > > > > "qcom,fastrpc-compute-cb"; > > > > + reg = <0>; > > > > + }; > > > > + }; > > > > }; > > > > }; > > > > > > > > Kind regards, > > Dylan
On 31.03.2023 15:14, Dylan Van Assche wrote: > On Fri, 2023-03-31 at 14:20 +0200, Konrad Dybcio wrote: >> >> >> On 31.03.2023 11:36, Dylan Van Assche wrote: >>> Hi Konrad, >>> >>> On Fri, 2023-03-31 at 04:03 +0200, Konrad Dybcio wrote: >>>> >>>> >>>> On 30.03.2023 18:53, Dylan Van Assche wrote: >>>>> Qualcomm SDM845 SoC features a SLPI DSP which uses FastRPC >>>>> through >>>>> an allocated memory region to load files from the host >>>>> filesystem >>>>> such as sensor configuration files. >>>>> >>>>> Add a FastRPC node at /dev/fastrpc-sdsp and a DMA region, >>>>> similar >>>>> to >>>>> downstream, to allow userspace to communicate with the SLPI via >>>>> the >>>>> FastRPC interface for initializing the sensors on the SLPI. >>>>> >>>>> Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> >>>>> --- >>>>> arch/arm64/boot/dts/qcom/sdm845.dtsi | 24 >>>>> ++++++++++++++++++++++++ >>>>> 1 file changed, 24 insertions(+) >>>>> >>>>> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi >>>>> b/arch/arm64/boot/dts/qcom/sdm845.dtsi >>>>> index 3b547cb7aeb8..8ea4944f3ad6 100644 >>>>> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi >>>>> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi >>>>> @@ -878,6 +878,14 @@ mdata_mem: mpss-metadata { >>>>> size = <0 0x4000>; >>>>> no-map; >>>>> }; >>>>> + >>>>> + fastrpc_mem: fastrpc { >>>>> + compatible = "shared-dma-pool"; >>>>> + reusable; >>>> Please move it last to get a nice reverse-Christmas-tree layout. >>>> >>> >>> Will fix in v4. >>> >>>>> + alloc-ranges = <0 0x00000000 0 >>>>> 0xffffffff>; >>>> Would there be any issues with it starting over (1<<31 - 1)? >>>> >>> >>> You mean a bigger region then, like the whole CMA region then? >>> AFAIK, >>> the SLPI always use the same region expecting it to be in this >>> range. >>> However, I cannot confirm more, as I have no insights in the >>> firmware >>> running on there, this all comes from finding out what it exactly >>> does >>> on downstream. >> I was asking about the <.. 0 0xfff.f> part specifically, as that >> means >> it can't be allocated above 4 gigs. But I guess it's just how qcom >> envisioned it. >> > > I think it is limited by qcom, but I cannot be entirely sure :) > In any case, for v4, do I keep 0xffffffff? Yep, let's not stray into the unknown.. Konrad > >> Also, please use 0x0 in alloc-ranges as well, this is all addresses/ >> reg sizes. >> >> Konrad > > Yes, will use 0x0 instead of 0. > > Dylan > >>> >>>>> + alignment = <0 0x400000>; >>>> Please use 0x0 for the 0 here, as it's essentially reg.size with >>>> size-cells = 2 >>> >>> Will fix in v4. >>> >>>> >>>>> + size = <0 0x1000000>; >>>> Ditto >>> >>> Will fix in v4. >>> >>>> >>>>> + }; >>>>> }; >>>>> >>>>> adsp_pas: remoteproc-adsp { >>>>> @@ -3344,6 +3352,22 @@ glink-edge { >>>>> label = "dsps"; >>>>> qcom,remote-pid = <3>; >>>>> mboxes = <&apss_shared 24>; >>>>> + >>>>> + fastrpc { >>>>> + compatible = >>>>> "qcom,fastrpc"; >>>>> + qcom,glink-channels = >>>>> "fastrpcglink-apps-dsp"; >>>>> + label = "sdsp"; >>>>> + qcom,non-secure-domain; >>>>> + qcom,vmids = <0x3 0xF >>>>> 0x5 >>>>> 0x6>; >>>> Please use the recently-introduced header and depend on (and >>>> make a patch atop) >>>> >>>> https://lore.kernel.org/linux-arm-msm/8685b710-b74d-556a-815d-0ffef2b0eeff@linaro.org/T/#t >>>> >>>> Konrad >>>> >>>>> + memory-region = >>>>> <&fastrpc_mem>; >>>>> + #address-cells = <1>; >>>>> + #size-cells = <0>; >>>>> + >>>>> + compute-cb@0 { >>>>> + compatible = >>>>> "qcom,fastrpc-compute-cb"; >>>>> + reg = <0>; >>>>> + }; >>>>> + }; >>>>> }; >>>>> }; >>>>> >>> >>> Kind regards, >>> Dylan >
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 3b547cb7aeb8..8ea4944f3ad6 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -878,6 +878,14 @@ mdata_mem: mpss-metadata { size = <0 0x4000>; no-map; }; + + fastrpc_mem: fastrpc { + compatible = "shared-dma-pool"; + reusable; + alloc-ranges = <0 0x00000000 0 0xffffffff>; + alignment = <0 0x400000>; + size = <0 0x1000000>; + }; }; adsp_pas: remoteproc-adsp { @@ -3344,6 +3352,22 @@ glink-edge { label = "dsps"; qcom,remote-pid = <3>; mboxes = <&apss_shared 24>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "sdsp"; + qcom,non-secure-domain; + qcom,vmids = <0x3 0xF 0x5 0x6>; + memory-region = <&fastrpc_mem>; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@0 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <0>; + }; + }; }; };