Message ID | 20230325135114.21688-3-me@dylanvanassche.be |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp422936vqo; Sat, 25 Mar 2023 06:58:54 -0700 (PDT) X-Google-Smtp-Source: AKy350Ztsq7t+AuG9Ut6/lnS3AEwzwynS65WauS/kfGiujbyqAz7gfbkOkRjI1XO/SFXWiw7VdRp X-Received: by 2002:a17:906:3118:b0:930:e495:b1cb with SMTP id 24-20020a170906311800b00930e495b1cbmr6537131ejx.75.1679752733994; Sat, 25 Mar 2023 06:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679752733; cv=none; d=google.com; s=arc-20160816; b=s77fo3b2I33pVWtUWaSqKN1qAo92NBk/aUOGRfctZ8D1ypbOxfgbuhMsAFo8+oOgB5 87FD2jyA44iEG1BPslFb0PbkHUiyp+5bkjMpuvWkG6M5HpQ6zLh8tL6bR4HHf1M702tQ A7Lmvu6j5Uf9Z8IE+dj7JOYfBA0GBpv/AnUnanWw7ohog7vrPt/v15/VFv/j875YWnBG RPCeEuBnexgIvj9aw1HgxuWl98TrTBr62aDU5VCGN9FJAaejPPcRT9+mpI27KmMXqsNT Gfr1yp6kwlhg/DqqwSs+N3Z9g/9/2eh3Oj2LuFuVoRWEmx7Bt9pGaBY2PTAKVTCCbe1A WSHg== 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=/+cKn6+YIl/VFTeFPbxQYnCYTH6+Xg1WFAyiARcVV7g=; b=SoCBCQapMxnUxbJKDA2s0aSKJeCv6UMNF7CVL8FBDEVpPLz+RtU9UMyfc4VRDsw+NO X87lSW56Sq091eftwUTjKsLh869XLz7CM2AA2O85cPWbBoTQGhzMuV/c4DxWZLFUzhtP MOMxKBSMi2KncKMcoKpqc4KMgjy9ktdvDnIyIRBehgU5IJXQy6LD+g594tUInm8GPdTe wkqktytOptJ691qtwY8oSuM32DfEw2M1GlyAQdzV0nf13N83FMAYI4DewUpS/v1wla0P x0RFIq5FSNzsAEeAwVD9lhdPsS8nFJGVICxPkhGXwoyXoEUQ8IkNCI0XrdPXQUiOBTZk 2/vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=fdm4iIXt; 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 g10-20020a1709062daa00b00930c6deca48si22042344eji.675.2023.03.25.06.58.30; Sat, 25 Mar 2023 06:58:53 -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=fdm4iIXt; 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 S231932AbjCYNvp (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Sat, 25 Mar 2023 09:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbjCYNvj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 25 Mar 2023 09:51:39 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E48C4113C9; Sat, 25 Mar 2023 06:51:38 -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-202.mailbox.org (Postfix) with ESMTPS id 4PkL8l41mLz9sZ1; Sat, 25 Mar 2023 14:51:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679752295; 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=/+cKn6+YIl/VFTeFPbxQYnCYTH6+Xg1WFAyiARcVV7g=; b=fdm4iIXtmCk+9spVcjN1TRpdNJWV1pWQRnaaapo9/HBcfpNviWSMA3JRMqCpzIWOgpcZ9R zpG/psAxzEcjmVIh/SThqTo2ZMnIT6ahH4/8RDSQhOLHkcLobVkdSEiFwgELfnnEp8zmnd bzmQlr1H57T+S262K9Q6HELviZOSQlUZdZvUEOHw+VUN3vxZ0GUC1DtW7r/wmwXybphYSk sIaBjWiu6RDFX/gthG+jNVppV8mniYXkTw2+gIVUk7ksMfNZqTF/2hi+0ORBXQiz9Ol6zx mpYy/IC8KgBwfjLD5+uprJQSDVaje9UXeV4XjLgtjGFKKFJwTqGOdA9N1TRfEg== 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 2/4] dts: arm64: qcom: sdm845: add SLPI FastRPC support Date: Sat, 25 Mar 2023 14:51:12 +0100 Message-Id: <20230325135114.21688-3-me@dylanvanassche.be> In-Reply-To: <20230325135114.21688-1-me@dylanvanassche.be> References: <20230325135114.21688-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4PkL8l41mLz9sZ1 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?1761348402880367695?= X-GMAIL-MSGID: =?utf-8?q?1761348402880367695?= |
Series |
Qualcomm SDM845 SLPI DSP enablement
|
|
Commit Message
Dylan Van Assche
March 25, 2023, 1:51 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
Hi Dylan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.3-rc3 next-20230324]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Dylan-Van-Assche/dts-arm64-qcom-sdm845-add-SLPI-remoteproc/20230325-215354
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20230325135114.21688-3-me%40dylanvanassche.be
patch subject: [PATCH 2/4] dts: arm64: qcom: sdm845: add SLPI FastRPC support
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20230326/202303260005.DW8hkIxU-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/df03f51210d03566bf0d35a56633d55e3c57b5ad
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Dylan-Van-Assche/dts-arm64-qcom-sdm845-add-SLPI-remoteproc/20230325-215354
git checkout df03f51210d03566bf0d35a56633d55e3c57b5ad
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303260005.DW8hkIxU-lkp@intel.com/
All errors (new ones prefixed by >>):
>> Error: arch/arm64/boot/dts/qcom/sdm845.dtsi:3360.4-5 syntax error
FATAL ERROR: Unable to parse input tree
On 25/03/2023 14:51, 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 8dcfe6293762..5a6c7d00719b 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>; > + qcom,assign-all-mem; > + #address-cells = <1>; > + #size-cells = <0>; > + > + compute-cb { Does not look like you tested the DTS against bindings. Please run `make dtbs_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 8dcfe6293762..5a6c7d00719b 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>; + qcom,assign-all-mem; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb { + compatible = "qcom,fastrpc-compute-cb"; + }; + } }; };