Message ID | 20230325132117.19733-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 b10csp420688vqo; Sat, 25 Mar 2023 06:53:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YDTKrr1VLIzqQGP/5vSEmdrdAlhfjtpEbO6WmVybOzxZh0/mgVi6B+u8hPrR/EzLLDNak8 X-Received: by 2002:a17:906:a117:b0:939:fb22:c4c7 with SMTP id t23-20020a170906a11700b00939fb22c4c7mr6903392ejy.43.1679752417494; Sat, 25 Mar 2023 06:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679752417; cv=none; d=google.com; s=arc-20160816; b=xBLs1XigtOZEAF8NoqFm5krDPccyepsqa4svO2O/FtyDq4OK3K3B1lF4llAIfKso6t HOpFeaPpt6bABafLs1nN9WMDmwXxHgm/CdRV/hUcCwHjAV0B0yNW64MOTBhx3YWHv15D lts8WGVwCPY1LBQije1iM0vuuSKpJV/kt695Z0SIEu1hLZYfKYd6FfxGABU5YXsi127K sYMhc7S9MSZ9POv3gLxnLsET8Hhblg3WPXi6KABCq7WaDjfZT8uU+Zyct346LqauzbEd S2Q70I/AYfXoMiJ9iTwnSvFKg9I37pjrsH16DgZcXIlzImOHeN7CVtf7OdYJJqznluvA apJg== 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=UYNhSu+2Wobyn2s4WHdqzJN3u63ahHSl1LNIJlpGGUg=; b=UbkLHt++7e/DNXOdg7mI6UqnORj7m/Q9CwMAESBeNinG+MdHFtPVAd1ElBg4UR7tjV JjZu064OxYPmjpWNV2s44FIrFENQMdsPFEJAvWxIvZZ+cU36BgrJ7/ClYo00mNtpfZRl PVaC/ymcAA45putqUu25ISQS7o5eE+V+BBZ4G26qW8zZgbF1eqq53RU/rLK1ZpJsBfNh ocSARiGYlzuC1l58n9/H5Ayaf4ThctmuKH4afz4BsNmHatWq7Qh1c9Z1DYAOnkRfSbZF UDipYRMvuoTrkPwDTTHQFbI+gWBEAF1/MrkMwdnMAXYrnjpWwDnIvrqQagW9PbFSP3RU HV0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=Rzyx7cns; 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 d7-20020a1709064c4700b009332cc3b334si18524018ejw.59.2023.03.25.06.53.14; Sat, 25 Mar 2023 06:53:37 -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=Rzyx7cns; 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 S231766AbjCYNWV (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Sat, 25 Mar 2023 09:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbjCYNWS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 25 Mar 2023 09:22:18 -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 903CA1420A; Sat, 25 Mar 2023 06:22:11 -0700 (PDT) Received: from smtp102.mailbox.org (unknown [10.196.197.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 4PkKVm1dnlz9sZ5; Sat, 25 Mar 2023 14:22:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679750528; 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=UYNhSu+2Wobyn2s4WHdqzJN3u63ahHSl1LNIJlpGGUg=; b=Rzyx7cnsEbFP7SlNzw6ukZzDPuRQjOTuxz6t1f+ECAfdkGaNtEOXRhCcXrYQXoawGFvRZC j5GpOa+AsbCZISbEkIZS57Qg61czKXJr4bwMb29xU9glOMe6S98m/HXyZP/FVuzaWlsY+8 tzVEsoinrw8dHYIjexNZjVXXRTOqsAVQXFcZHBCBetQiyO1Btu/WTbsTkTmlaPh3NzS/Z8 Pwi9v44yKJDAN4NTLm0hBdLKf7jq1CqUvhMGqGqHllly9uYAVAAGjk8s/WOFCwPwhXSdTE /n7OZv6jQ/S/iXOdyGel7xn7lpPUb4eapTHgESUSUV8AqvXa+t3sAiV2faOM8Q== From: Dylan Van Assche <me@dylanvanassche.be> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Konrad Dybcio <konrad.dybcio@linaro.org>, Manivannan Sadhasivam <mani@kernel.org>, linux-arm-msm@vger.kernel.org, linux-remoteproc@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/2] remoteproc: qcom: pas: add SDM845 SLPI resource Date: Sat, 25 Mar 2023 14:21:17 +0100 Message-Id: <20230325132117.19733-3-me@dylanvanassche.be> In-Reply-To: <20230325132117.19733-1-me@dylanvanassche.be> References: <20230325132117.19733-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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?1761348070977692642?= X-GMAIL-MSGID: =?utf-8?q?1761348070977692642?= |
Series |
Qualcomm SDM845 SLPI DSP driver support
|
|
Commit Message
Dylan Van Assche
March 25, 2023, 1:21 p.m. UTC
Add SLPI resources for the SDM845 Qualcomm SoC to the Qualcomm
remoteproc q6v5_pas driver to define the default firmware name
and GLink edge name.
Signed-off-by: Dylan Van Assche <me@dylanvanassche.be>
---
drivers/remoteproc/qcom_q6v5_pas.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
Comments
On 25.03.2023 14:21, Dylan Van Assche wrote: > Add SLPI resources for the SDM845 Qualcomm SoC to the Qualcomm > remoteproc q6v5_pas driver to define the default firmware name > and GLink edge name. > > Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> > --- > drivers/remoteproc/qcom_q6v5_pas.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c > index c99a20542685..d82b6f4bced4 100644 > --- a/drivers/remoteproc/qcom_q6v5_pas.c > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > @@ -1028,6 +1028,22 @@ static const struct adsp_data slpi_resource_init = { > .ssctl_id = 0x16, > }; > > +static const struct adsp_data sdm845_slpi_resource = { > + .crash_reason_smem = 424, > + .firmware_name = "slpi.mdt", > + .pas_id = 12, > + .auto_boot = true, > + .proxy_pd_names = (char*[]){ > + "lcx", > + "lmx", > + NULL > + }, > + .load_state = "slpi", > + .ssr_name = "dsps", > + .sysmon_name = "slpi", > + .ssctl_id = 0x16, Isn't this identical to sm8150_slpi_resource? Konrad > +}; > + > static const struct adsp_data sm8150_slpi_resource = { > .crash_reason_smem = 424, > .firmware_name = "slpi.mdt", > @@ -1201,6 +1217,7 @@ static const struct of_device_id adsp_of_match[] = { > { .compatible = "qcom,sdm660-adsp-pas", .data = &adsp_resource_init}, > { .compatible = "qcom,sdm845-adsp-pas", .data = &sdm845_adsp_resource_init}, > { .compatible = "qcom,sdm845-cdsp-pas", .data = &sdm845_cdsp_resource_init}, > + { .compatible = "qcom,sdm845-slpi-pas", .data = &sdm845_slpi_resource}, > { .compatible = "qcom,sdx55-mpss-pas", .data = &sdx55_mpss_resource}, > { .compatible = "qcom,sm6115-adsp-pas", .data = &adsp_resource_init}, > { .compatible = "qcom,sm6115-cdsp-pas", .data = &cdsp_resource_init},
Hi Konrad, On Mon, 2023-03-27 at 10:44 +0200, Konrad Dybcio wrote: > > > On 25.03.2023 14:21, Dylan Van Assche wrote: > > Add SLPI resources for the SDM845 Qualcomm SoC to the Qualcomm > > remoteproc q6v5_pas driver to define the default firmware name > > and GLink edge name. > > > > Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> > > --- > > drivers/remoteproc/qcom_q6v5_pas.c | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > > > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c > > b/drivers/remoteproc/qcom_q6v5_pas.c > > index c99a20542685..d82b6f4bced4 100644 > > --- a/drivers/remoteproc/qcom_q6v5_pas.c > > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > > @@ -1028,6 +1028,22 @@ static const struct adsp_data > > slpi_resource_init = { > > .ssctl_id = 0x16, > > }; > > > > +static const struct adsp_data sdm845_slpi_resource = { > > + .crash_reason_smem = 424, > > + .firmware_name = "slpi.mdt", > > + .pas_id = 12, > > + .auto_boot = true, > > + .proxy_pd_names = (char*[]){ > > + "lcx", > > + "lmx", > > + NULL > > + }, > > + .load_state = "slpi", > > + .ssr_name = "dsps", > > + .sysmon_name = "slpi", > > + .ssctl_id = 0x16, > Isn't this identical to sm8150_slpi_resource? > > Konrad Yes it is. I added a new entry because for SM8150, SM8250, and SM8350 they are duplicated as well. The SDM845's struct is indentical to SM8150/SM8250/SM8350's structs. Kind regards, Dylan Van Assche > > +}; > > + > > static const struct adsp_data sm8150_slpi_resource = { > > .crash_reason_smem = 424, > > .firmware_name = "slpi.mdt", > > @@ -1201,6 +1217,7 @@ static const struct of_device_id > > adsp_of_match[] = { > > { .compatible = "qcom,sdm660-adsp-pas", .data = > > &adsp_resource_init}, > > { .compatible = "qcom,sdm845-adsp-pas", .data = > > &sdm845_adsp_resource_init}, > > { .compatible = "qcom,sdm845-cdsp-pas", .data = > > &sdm845_cdsp_resource_init}, > > + { .compatible = "qcom,sdm845-slpi-pas", .data = > > &sdm845_slpi_resource}, > > { .compatible = "qcom,sdx55-mpss-pas", .data = > > &sdx55_mpss_resource}, > > { .compatible = "qcom,sm6115-adsp-pas", .data = > > &adsp_resource_init}, > > { .compatible = "qcom,sm6115-cdsp-pas", .data = > > &cdsp_resource_init},
On 27.03.2023 11:34, Dylan Van Assche wrote: > Hi Konrad, > > On Mon, 2023-03-27 at 10:44 +0200, Konrad Dybcio wrote: >> >> >> On 25.03.2023 14:21, Dylan Van Assche wrote: >>> Add SLPI resources for the SDM845 Qualcomm SoC to the Qualcomm >>> remoteproc q6v5_pas driver to define the default firmware name >>> and GLink edge name. >>> >>> Signed-off-by: Dylan Van Assche <me@dylanvanassche.be> >>> --- >>> drivers/remoteproc/qcom_q6v5_pas.c | 17 +++++++++++++++++ >>> 1 file changed, 17 insertions(+) >>> >>> diff --git a/drivers/remoteproc/qcom_q6v5_pas.c >>> b/drivers/remoteproc/qcom_q6v5_pas.c >>> index c99a20542685..d82b6f4bced4 100644 >>> --- a/drivers/remoteproc/qcom_q6v5_pas.c >>> +++ b/drivers/remoteproc/qcom_q6v5_pas.c >>> @@ -1028,6 +1028,22 @@ static const struct adsp_data >>> slpi_resource_init = { >>> .ssctl_id = 0x16, >>> }; >>> >>> +static const struct adsp_data sdm845_slpi_resource = { >>> + .crash_reason_smem = 424, >>> + .firmware_name = "slpi.mdt", >>> + .pas_id = 12, >>> + .auto_boot = true, >>> + .proxy_pd_names = (char*[]){ >>> + "lcx", >>> + "lmx", >>> + NULL >>> + }, >>> + .load_state = "slpi", >>> + .ssr_name = "dsps", >>> + .sysmon_name = "slpi", >>> + .ssctl_id = 0x16, >> Isn't this identical to sm8150_slpi_resource? >> >> Konrad > > Yes it is. I added a new entry because for SM8150, SM8250, and SM8350 > they are duplicated as well. The SDM845's struct is indentical to > SM8150/SM8250/SM8350's structs. Well, you just found a quick improvement to make then! :D Konrad > > Kind regards, > Dylan Van Assche > >>> +}; >>> + >>> static const struct adsp_data sm8150_slpi_resource = { >>> .crash_reason_smem = 424, >>> .firmware_name = "slpi.mdt", >>> @@ -1201,6 +1217,7 @@ static const struct of_device_id >>> adsp_of_match[] = { >>> { .compatible = "qcom,sdm660-adsp-pas", .data = >>> &adsp_resource_init}, >>> { .compatible = "qcom,sdm845-adsp-pas", .data = >>> &sdm845_adsp_resource_init}, >>> { .compatible = "qcom,sdm845-cdsp-pas", .data = >>> &sdm845_cdsp_resource_init}, >>> + { .compatible = "qcom,sdm845-slpi-pas", .data = >>> &sdm845_slpi_resource}, >>> { .compatible = "qcom,sdx55-mpss-pas", .data = >>> &sdx55_mpss_resource}, >>> { .compatible = "qcom,sm6115-adsp-pas", .data = >>> &adsp_resource_init}, >>> { .compatible = "qcom,sm6115-cdsp-pas", .data = >>> &cdsp_resource_init}, >
diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index c99a20542685..d82b6f4bced4 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1028,6 +1028,22 @@ static const struct adsp_data slpi_resource_init = { .ssctl_id = 0x16, }; +static const struct adsp_data sdm845_slpi_resource = { + .crash_reason_smem = 424, + .firmware_name = "slpi.mdt", + .pas_id = 12, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .load_state = "slpi", + .ssr_name = "dsps", + .sysmon_name = "slpi", + .ssctl_id = 0x16, +}; + static const struct adsp_data sm8150_slpi_resource = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -1201,6 +1217,7 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sdm660-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sdm845-adsp-pas", .data = &sdm845_adsp_resource_init}, { .compatible = "qcom,sdm845-cdsp-pas", .data = &sdm845_cdsp_resource_init}, + { .compatible = "qcom,sdm845-slpi-pas", .data = &sdm845_slpi_resource}, { .compatible = "qcom,sdx55-mpss-pas", .data = &sdx55_mpss_resource}, { .compatible = "qcom,sm6115-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sm6115-cdsp-pas", .data = &cdsp_resource_init},