Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp402494imm; Fri, 31 Aug 2018 03:40:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbCIB7A9JSXR1/N+jhLvaOaufvlesqIqyDoRy2Xg1tXjj4xvvM2qIZ2WC/Ua8EahplaVnAO X-Received: by 2002:a17:902:6bc8:: with SMTP id m8-v6mr14724210plt.162.1535712033063; Fri, 31 Aug 2018 03:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535712033; cv=none; d=google.com; s=arc-20160816; b=yXMFHkfUh/mJNBaX9Chxy/7yE/jaqiLtxH9+68jZutFWGPPKitqm+SuZf302nc+Xqd iVphQo6nTZhfByf+KFPJHkJoPvGNE5NMqX6SOCDoVqGySz2XejgWwmPpRiByD+veVFRW iY4ivy+GdRtEQ2H9kfRXjmYcQ9iQs5Q49ReiYCCGHnvmm4LXR7zHcBKT/9DcXtsYRx6X XiZUzBHburVG5N78LtjfG/NpxfaRxZ0dCk0AYNDRfPkIf5r97L4laosSKb+FNr7GbHTy F8ww5vJnOsY5VdT9vx3D9eX1mVpKhVMqCWoLiuigeLzRwtu5hMPgI7R/YfUsHEbWupYU m4cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UWi/bSi7txLQGHDATFAGekuCpStW097MdvRaEAa5vZw=; b=Ctm5AvTTAE2NAtFytbyEiAYwbVK9eExDQcXsemPyCSDHZxlsUA3Oy5A3iHGOuv0Cop mDns8Du7KEhLt6JuPwRFSPXSNYRUuMBdmKp9AgbOfwzkylVBN6+3IdEJFjO3AH0Iqo+A DSwvtRVOUNAx393iiPVoSYG06p5mAMhOBhEFYxq3xggXLsmRfJjYWPvEaueri28ltdrK izQ/Gdyq5ubdcy3WZxKX2p9LLvO6UzcMvoXdNZ98K8k33NlsyG2aBVp5tZMUaTAXxhGp hqr7glnuf8y0EwhyifbqXH1U1yhN7irJWAOlU1emOlB994qyGUjt9QJNNw5USiyMn44G MRwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JvKaUyVx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v129-v6si10253556pfv.278.2018.08.31.03.40.18; Fri, 31 Aug 2018 03:40:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JvKaUyVx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbeHaNvi (ORCPT + 99 others); Fri, 31 Aug 2018 09:51:38 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35102 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727370AbeHaNvi (ORCPT ); Fri, 31 Aug 2018 09:51:38 -0400 Received: by mail-lf1-f68.google.com with SMTP id q13-v6so9503461lfc.2 for ; Fri, 31 Aug 2018 02:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UWi/bSi7txLQGHDATFAGekuCpStW097MdvRaEAa5vZw=; b=JvKaUyVx621fNCftEuAM33Ee64Eg0hjbcvkABnuN5ox2dEU1uDCqTUlp2gSLJ8D/7+ K+fYT9OpSZmfphGT6IbXdZbwoIQCj5PtEwx9I0IuQp9MK6mm17aOoBbp7yKlasq9Nvbl qfhSgjsyPDpe07on+eZG85MybetM/QUpeBTpE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UWi/bSi7txLQGHDATFAGekuCpStW097MdvRaEAa5vZw=; b=MkF7yQsaeyaZROb6u+1F0N6lvXmiIlBx55EXbv9LkBGd/mBzlvioPFm42zQfq8w7VW 5XHQVyH38H1OaY4iAtXoO/1eeUY0goy1gJgBXqgjIAipWA9z77cKPvMvH+ycEtEujj0U eKhYeEIzFjk/tncBiWAgyWehgs9DzvrErwqz0+Z2U7Is5iliCp/4W6HEdaqfdCn/5gsQ K/onUyhgZNcBJOYfeaQF42It9Bg2puEzgOB4KpBtK1ea6lSbLAbbqPSnzomR2n8WdVop SAWLuaeMfzAlYUwkZD20oAt6U2O8zyKMGeD2Ot8dJ0xi4pyz5/aSaMPhuSRQmnImeFAx XRHQ== X-Gm-Message-State: APzg51Ac9zMbEPJS4rIJ6nc1VwaPwk2X+SyVlEBdrS+ZudAenti7fho6 PkHQ0pCR0QfPKaylrObJGkhDtw== X-Received: by 2002:a19:9941:: with SMTP id b62-v6mr4102308lfe.63.1535708693516; Fri, 31 Aug 2018 02:44:53 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id u14-v6sm1459917lfc.77.2018.08.31.02.44.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Aug 2018 02:44:52 -0700 (PDT) Date: Fri, 31 Aug 2018 11:44:50 +0200 From: Niklas Cassel To: Bjorn Andersson Cc: Ohad Ben-Cohen , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Rohit kumar Subject: Re: [PATCH] remoteproc: qcom: Rename Hexagon v5 PAS driver Message-ID: <20180831094450.GA17121@centauri.lan> References: <20180828051203.22394-1-bjorn.andersson@linaro.org> <20180829092520.GA9677@centauri.ideon.se> <20180831031053.GP2523@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180831031053.GP2523@minitux> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 08:10:53PM -0700, Bjorn Andersson wrote: > On Wed 29 Aug 02:25 PDT 2018, Niklas Cassel wrote: > > > On Mon, Aug 27, 2018 at 10:12:03PM -0700, Bjorn Andersson wrote: > > > The Hexagon v5 ADSP driver is used for more than only the ADSP and > > > there's an upcoming non-PAS ADSP PIL for SDM845, so rename the driver to > > > qcom_q6v5_pas in order to better suite this. > > > > Hello Bjorn, > > > > so I'm a bit new to this, but after your rename we will have: > > > > QCOM_Q6V5_PIL > > and > > QCOM_Q6V5_PAS > > > > that both are PILs. > > I guess that the difference is that the latter uses TrustZone? > > > > The ADSP for some QCOM SoCs is a Hexagon v5, therefore the > > QCOM_Q6V5_PAS can also boot certain ADSPs? > > > > But we also have QCOM_Q6V5_WCSS > > "Qualcomm Hexagon based WCSS Peripheral Image Loader", > > which also appears to be Hexagon v5 based, but I assume that > > neither QCOM_Q6V5_PIL nor QCOM_Q6V5_PAS can boot the WCSS? > > > > There is also an upcoming non-PAS ADSP PIL loader for SDM845, > > but I guess that the ADSP there is not based on Hexagon v5, > > so the QCOM_Q6V5_PIL will not be able to boot it? > > > > This all seems to be quite confusing, perhaps the help texts > > could be improved to mitigate this confusion? > > > > You're right, as proposed this is confusing. > > The plan is to have QCOM_Q6V5_PAS, which deals with standard Hexagon > peripherals that relies on the PAS service in TrustZone and then rename > QCOM_Q6V5_PIL to QCOM_Q6V5_MSA to denote that this is the remoteproc > driver for the self-authenticating modem. Ok. It might be a good idea to send both driver renames in a single patch series, so that it is easier to verify that the renaming is consistent. > > The QCOM_Q6V5_WCSS then fits into this pattern, of being the non-TZ > based WCSS remoteproc driver. > > > > > > > Cc: Rohit kumar > > > Signed-off-by: Bjorn Andersson > > > --- > > > drivers/remoteproc/Kconfig | 22 +++++++++---------- > > > drivers/remoteproc/Makefile | 2 +- > > > .../{qcom_adsp_pil.c => qcom_q6v5_pas.c} | 4 ++-- > > > > You should probably also edit the qcom_defconfig: > > arch/arm/configs/qcom_defconfig:CONFIG_QCOM_ADSP_PIL=y > > > > Yes, this needs to be done as well. But needs to be done in a separate > patch. Doing it in the same patch would ensure that we don't break bisectability. Kind regards, Niklas > > > > 3 files changed, 14 insertions(+), 14 deletions(-) > > > rename drivers/remoteproc/{qcom_adsp_pil.c => qcom_q6v5_pas.c} (98%) > > > > > > diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig > > > index 052d4dd347f9..c98c0b2a2237 100644 > > > --- a/drivers/remoteproc/Kconfig > > > +++ b/drivers/remoteproc/Kconfig > > > @@ -84,8 +84,16 @@ config KEYSTONE_REMOTEPROC > > > It's safe to say N here if you're not interested in the Keystone > > > DSPs or just want to use a bare minimum kernel. > > > > > > -config QCOM_ADSP_PIL > > > - tristate "Qualcomm ADSP Peripheral Image Loader" > > > +config QCOM_RPROC_COMMON > > > + tristate > > > + > > > +config QCOM_Q6V5_COMMON > > > + tristate > > > + depends on ARCH_QCOM > > > + depends on QCOM_SMEM > > > + > > > +config QCOM_Q6V5_PAS > > > + tristate "Qualcomm Hexagon v5 Peripheral Authentication Service support" > > > depends on OF && ARCH_QCOM > > > depends on QCOM_SMEM > > > depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n) > > > @@ -98,15 +106,7 @@ config QCOM_ADSP_PIL > > > select QCOM_SCM > > > help > > > Say y here to support the TrustZone based Peripherial Image Loader > > > > Since you are editing this help text, yoy may just as well s/Peripherial/Peripheral. > > > > Thanks, will do. > > Regards, > Bjorn > > > Kind regards, > > Niklas > > > > > - for the Qualcomm ADSP remote processors. > > > - > > > -config QCOM_RPROC_COMMON > > > - tristate > > > - > > > -config QCOM_Q6V5_COMMON > > > - tristate > > > - depends on ARCH_QCOM > > > - depends on QCOM_SMEM > > > + for the Qualcomm Hexagon v5 based remote processors. > > > > > > config QCOM_Q6V5_PIL > > > tristate "Qualcomm Hexagon V5 Peripherial Image Loader" > > > diff --git a/drivers/remoteproc/Makefile b/drivers/remoteproc/Makefile > > > index 03332fa7e2ee..eb86c8ba5a87 100644 > > > --- a/drivers/remoteproc/Makefile > > > +++ b/drivers/remoteproc/Makefile > > > @@ -14,9 +14,9 @@ obj-$(CONFIG_OMAP_REMOTEPROC) += omap_remoteproc.o > > > obj-$(CONFIG_WKUP_M3_RPROC) += wkup_m3_rproc.o > > > obj-$(CONFIG_DA8XX_REMOTEPROC) += da8xx_remoteproc.o > > > obj-$(CONFIG_KEYSTONE_REMOTEPROC) += keystone_remoteproc.o > > > -obj-$(CONFIG_QCOM_ADSP_PIL) += qcom_adsp_pil.o > > > obj-$(CONFIG_QCOM_RPROC_COMMON) += qcom_common.o > > > obj-$(CONFIG_QCOM_Q6V5_COMMON) += qcom_q6v5.o > > > +obj-$(CONFIG_QCOM_Q6V5_PAS) += qcom_q6v5_pas.o > > > obj-$(CONFIG_QCOM_Q6V5_PIL) += qcom_q6v5_pil.o > > > obj-$(CONFIG_QCOM_Q6V5_WCSS) += qcom_q6v5_wcss.o > > > obj-$(CONFIG_QCOM_SYSMON) += qcom_sysmon.o > > > diff --git a/drivers/remoteproc/qcom_adsp_pil.c b/drivers/remoteproc/qcom_q6v5_pas.c > > > similarity index 98% > > > rename from drivers/remoteproc/qcom_adsp_pil.c > > > rename to drivers/remoteproc/qcom_q6v5_pas.c > > > index d4339a6da616..2478ef3cd519 100644 > > > --- a/drivers/remoteproc/qcom_adsp_pil.c > > > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > > > @@ -364,11 +364,11 @@ static struct platform_driver adsp_driver = { > > > .probe = adsp_probe, > > > .remove = adsp_remove, > > > .driver = { > > > - .name = "qcom_adsp_pil", > > > + .name = "qcom_q6v5_pas", > > > .of_match_table = adsp_of_match, > > > }, > > > }; > > > > > > module_platform_driver(adsp_driver); > > > -MODULE_DESCRIPTION("Qualcomm MSM8974/MSM8996 ADSP Peripherial Image Loader"); > > > +MODULE_DESCRIPTION("Qualcomm Hexagon v5 Peripheral Authentication Service driver"); > > > MODULE_LICENSE("GPL v2"); > > > -- > > > 2.18.0 > > >