Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1937881lqb; Mon, 27 May 2024 02:29:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpZOYYM4h2BDhT3ppRbYUT95qxiwox4hk44f7ldTJZXAwQmqcsCJw+RPD6h8mNbD14rdGpbgETzWcuhSX9Ea+ZoYtsUH2o3VmB2Njx+w== X-Google-Smtp-Source: AGHT+IG0urYN4GE2ZxPJy7XkxW3tciB/Kk63ZlyfDA9DlhSEzH9iIkb6hdLBKXgDkYFVY2+3gdIL X-Received: by 2002:a17:906:a397:b0:a62:3fbc:c95e with SMTP id a640c23a62f3a-a626250d3c7mr843946166b.29.1716802173758; Mon, 27 May 2024 02:29:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716802173; cv=pass; d=google.com; s=arc-20160816; b=Y0CNIoWhY0lmTmz6HS7EApcOC0Txqh3jQKZGd4TgZy9iAqrhULrfuPYoZpBoB3yiU9 S8n59uGH/yjElq5Ycn32s26bhk23knU2aY5dU2sGK037tUBba4yS3+HcvVLCLr4gKnbP BKmH1kt4BNNcK9e7hCTga7tw9By1qgpNTdVidpll52QrTGY07KFHrsTjpfowOteU/fez hTHbKJPa3mSsR3PheGw3OWtg9WrcVAjgVxWWgG869IXMdKPBfbA7y4UStF7D/0fu4XtE UEQtCK/cKDFrIY7Ut+q9GB7wfxSSSBjrCwavRYmy2Dj+oIFe3ksSXQIbLpxqLWQYZIzh lVsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ChcvXVThIVG5TbcAKCOtU8ihiPd2mzmq71DfR9Nr0H0=; fh=OfZ6BvRbdVOWDwhVSDmi8rp3NE8i2grfVm1PESxRDvw=; b=snKMDdzQ49e2BVWvD0CF58W/cAxCQlJkezhfrlb71oEe82weV3augF7AgzJMNumN7s 88mJDeI0IXCWr6pvEo+koGSPmmAY8e04OXT6dRSCrQG9nPX9gpygBluQi+ALhcU8luWo 7fFhlk6BdMYlil3Du69E8SwEZCVvU0EJarfbA2t7wGi4px08DyrV9ceAsh5ljru55+3b uL1BE5MNYBh+TjdbW+Yb2DcbwBtMEwaVQjvyZcA9Frw7/VEa5cfwwnF7Mp3UCPI1Wsbq jOEmZRDo3H/Rx8FQ/FVodLp3t2pB/ucPs208dmzQc+Gz//Mb5galGk7V0yiqHj5Z6/gZ pjWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jJ3zRkc0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190321-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c800decsi363651266b.49.2024.05.27.02.29.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 02:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190321-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jJ3zRkc0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190321-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 57FBF1F24F4B for ; Mon, 27 May 2024 09:29:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 900B313A3EE; Mon, 27 May 2024 09:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jJ3zRkc0" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4B33139D12 for ; Mon, 27 May 2024 09:29:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716802162; cv=none; b=AdGVqedTMZV+4CBEogzz220v/P7/GPrCqKjQ8+xv/PbbFYa+Rw5FiFE/Ztrw5cBPHpdnXimi1eUINTzo8nHEEpP2Z2W3WUKF4MJ5KskqrP+xYjzkv1YE8Dndh1GLsMSpDZhR1pCB+odYXy4Y3lukBgSlRwdSUhIMZb65ORS7OhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716802162; c=relaxed/simple; bh=kvVFdGrNcegGGGe43bP7T/2vXbXZD1tWa+/RduW+LMo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XcAUvCq4DrfvCYrYKYG3IOteRRvwTXTMjE4B+H7O+GbNKROG3QTX1ucgNSklzD9knMcCCzU2/l3O0sVnkNhgDS8RF16CvgltOhLrxebITOetduBWwEnRJ0IP9O0xIEEWPdcxvqx9XyHyMBhp7zgaIO/CvhJ31lrjdtQfSuGkwMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jJ3zRkc0; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2e95afec7e6so23727461fa.0 for ; Mon, 27 May 2024 02:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716802159; x=1717406959; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ChcvXVThIVG5TbcAKCOtU8ihiPd2mzmq71DfR9Nr0H0=; b=jJ3zRkc0hm78tZOlN35Ri/K7Z9nKz+iySihdLsLTT40pnP41keMhP6OD2Gn2KLDt1r hRsPHVzGaee/xihE4eLBUOMPwxquaKjoQGzboKjQ5RJWMiwBaZDup/hzrpyQ4PSc3iSV ZC80O0Lpi0Z9ENHvf8DpG72kbj5sjw92UMtDda80KSykQhWFzR/9rxfg+jhkPEo+805p 4q/t4cBYsHy0Znnh35oH4hW90Owrs1c60fApGMGNgvmSqiN+ULVJ4obno92VMJwnPPrg nID+CibQ77Hg80ksx9VhetChQrsIYxi3WULnpDlpRqiga1qdMkBdLj1f1NO/GKgrnvYn 2DYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716802159; x=1717406959; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ChcvXVThIVG5TbcAKCOtU8ihiPd2mzmq71DfR9Nr0H0=; b=xRJ18H9WgmG35tZMA0cocfSPG24i89T7O0TdblrInpwV+uM9Ezf14DerXTTd5YdIBu f5L7fOqx1IKDyUf7f1i8UgQTjnfxsX7eIAb4mxzOvyNF27msUJ+XLURSv107CLM82QWz vg5jgDFWFlIDC4uy4+eW7f9531ThY/8B+/1ab/itGVdKo/uZK5bgaNjVrAixMaAipRXe KDVAENlfXhVkbs9MeG7SkR4ePTpgIJ9mkvH/tVbm88T+A+DuKRedmlivPVgULUsptBoj vVOmtyO7ZnB2VC0udr4wuMYaS75bK8/yW4xC3wpcXTllFKJ62kAqx1X2Ej5+7yfvCsR0 d1tQ== X-Forwarded-Encrypted: i=1; AJvYcCXO/nZAQsLTDnQLfhkeTIEQumQSpqsqsHXNrv8I+Ya33YYOlyDHgBx/UnmjzFkHMhplYSlct4c8+TvZ3652DnghiPAE3vuyJvV/i1IM X-Gm-Message-State: AOJu0YxJYWliaStcAzlT2aKKl2zLoknVXvhSX4n0BOD/COjjRF5Z0/ZS YMm1r+5kv1pR8s1rlL8ZDac0F+I/v4De5EQ6SqW4sqqbrZrVj2YkkTHNTXCiYpA= X-Received: by 2002:a05:6512:12cc:b0:529:a76f:e172 with SMTP id 2adb3069b0e04-529a76fe18cmr1964113e87.14.1716802159079; Mon, 27 May 2024 02:29:19 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-529716df1fasm519782e87.308.2024.05.27.02.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 02:29:18 -0700 (PDT) Date: Mon, 27 May 2024 12:29:17 +0300 From: Dmitry Baryshkov To: Bartosz Golaszewski Cc: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Manivannan Sadhasivam , Jassi Brar , Bartosz Golaszewski , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tengfei Fan , Srini Kandagatla , Alex Elder Subject: Re: [PATCH v2 3/5] remoteproc: qcom_q6v5_pas: Add support for SA8775p ADSP, CDSP and GPDSP Message-ID: References: <20240527-topic-lemans-iot-remoteproc-v2-0-8d24e3409daf@linaro.org> <20240527-topic-lemans-iot-remoteproc-v2-3-8d24e3409daf@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240527-topic-lemans-iot-remoteproc-v2-3-8d24e3409daf@linaro.org> On Mon, May 27, 2024 at 10:43:50AM +0200, Bartosz Golaszewski wrote: > From: Tengfei Fan > > Add support for PIL loading on ADSP, CDSP0, CDSP1, GPDSP0 and GPDSP1 on > SA8775p SoCs. > > Signed-off-by: Tengfei Fan > Co-developed-by: Bartosz Golaszewski > Signed-off-by: Bartosz Golaszewski > --- > drivers/remoteproc/qcom_q6v5_pas.c | 92 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 92 insertions(+) > > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c > index 54d8005d40a3..16053aa99298 100644 > --- a/drivers/remoteproc/qcom_q6v5_pas.c > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > @@ -820,6 +820,23 @@ static const struct adsp_data adsp_resource_init = { > .ssctl_id = 0x14, > }; > > +static const struct adsp_data sa8775p_adsp_resource = { > + .crash_reason_smem = 423, > + .firmware_name = "adsp.mdt", mbn please. Other than that LGTM > + .pas_id = 1, > + .minidump_id = 5, > + .auto_boot = true, > + .proxy_pd_names = (char*[]){ > + "lcx", > + "lmx", > + NULL > + }, > + .load_state = "adsp", > + .ssr_name = "lpass", > + .sysmon_name = "adsp", > + .ssctl_id = 0x14, > +}; > + > static const struct adsp_data sdm845_adsp_resource_init = { > .crash_reason_smem = 423, > .firmware_name = "adsp.mdt", > @@ -933,6 +950,42 @@ static const struct adsp_data cdsp_resource_init = { > .ssctl_id = 0x17, > }; > > +static const struct adsp_data sa8775p_cdsp0_resource = { > + .crash_reason_smem = 601, > + .firmware_name = "cdsp0.mdt", > + .pas_id = 18, > + .minidump_id = 7, > + .auto_boot = true, > + .proxy_pd_names = (char*[]){ > + "cx", > + "mxc", > + "nsp0", > + NULL > + }, > + .load_state = "cdsp", > + .ssr_name = "cdsp", > + .sysmon_name = "cdsp", > + .ssctl_id = 0x17, > +}; > + > +static const struct adsp_data sa8775p_cdsp1_resource = { > + .crash_reason_smem = 633, > + .firmware_name = "cdsp1.mdt", > + .pas_id = 30, > + .minidump_id = 20, > + .auto_boot = true, > + .proxy_pd_names = (char*[]){ > + "cx", > + "mxc", > + "nsp1", > + NULL > + }, > + .load_state = "nsp", > + .ssr_name = "cdsp1", > + .sysmon_name = "cdsp1", > + .ssctl_id = 0x20, > +}; > + > static const struct adsp_data sdm845_cdsp_resource_init = { > .crash_reason_smem = 601, > .firmware_name = "cdsp.mdt", > @@ -1074,6 +1127,40 @@ static const struct adsp_data sm8350_cdsp_resource = { > .ssctl_id = 0x17, > }; > > +static const struct adsp_data sa8775p_gpdsp0_resource = { > + .crash_reason_smem = 640, > + .firmware_name = "gpdsp0.mdt", > + .pas_id = 39, > + .minidump_id = 21, > + .auto_boot = true, > + .proxy_pd_names = (char*[]){ > + "cx", > + "mxc", > + NULL > + }, > + .load_state = "gpdsp0", > + .ssr_name = "gpdsp0", > + .sysmon_name = "gpdsp0", > + .ssctl_id = 0x21, > +}; > + > +static const struct adsp_data sa8775p_gpdsp1_resource = { > + .crash_reason_smem = 641, > + .firmware_name = "gpdsp1.mdt", > + .pas_id = 40, > + .minidump_id = 22, > + .auto_boot = true, > + .proxy_pd_names = (char*[]){ > + "cx", > + "mxc", > + NULL > + }, > + .load_state = "gpdsp1", > + .ssr_name = "gpdsp1", > + .sysmon_name = "gpdsp1", > + .ssctl_id = 0x22, > +}; > + > static const struct adsp_data mpss_resource_init = { > .crash_reason_smem = 421, > .firmware_name = "modem.mdt", > @@ -1315,6 +1402,11 @@ static const struct of_device_id adsp_of_match[] = { > { .compatible = "qcom,qcs404-adsp-pas", .data = &adsp_resource_init }, > { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init }, > { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, > + { .compatible = "qcom,sa8775p-adsp-pas", .data = &sa8775p_adsp_resource}, > + { .compatible = "qcom,sa8775p-cdsp0-pas", .data = &sa8775p_cdsp0_resource}, > + { .compatible = "qcom,sa8775p-cdsp1-pas", .data = &sa8775p_cdsp1_resource}, > + { .compatible = "qcom,sa8775p-gpdsp0-pas", .data = &sa8775p_gpdsp0_resource}, > + { .compatible = "qcom,sa8775p-gpdsp1-pas", .data = &sa8775p_gpdsp1_resource}, > { .compatible = "qcom,sc7180-adsp-pas", .data = &sm8250_adsp_resource}, > { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, > { .compatible = "qcom,sc7280-adsp-pas", .data = &sm8350_adsp_resource}, > > -- > 2.43.0 > -- With best wishes Dmitry