Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3724559pxb; Fri, 4 Feb 2022 15:09:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGWrjpKHlebbVVQ0YQuj/S36Lyok/bYMtt+xvX/IW+KTg0z3vrF3uem10XNclrWZT1Ft5L X-Received: by 2002:a17:902:7603:: with SMTP id k3mr5675184pll.166.1644016144414; Fri, 04 Feb 2022 15:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644016144; cv=none; d=google.com; s=arc-20160816; b=lzOVLCUr8kYWJxI09c5T1MH55Y5MTqHGGrc1enXSd56kUmH289vUC7re+YdvoZuQNT Z7T1bDsHwtTRS3EOfmmyOslzNEbtFOdO5w4En/91m5/tsT1sO9mSM7jYW8K1oYgb76Vs MXxLAiXsS7inU8Muyw1lXQ15YnRa4II+7oAY4aFNiaPz7kik/OCuCwTAheeG3qw1WzXE pl1ix9knG3S7LpxIdzV0ASJn30O7Hhkok7ueN1Z6hX3DQhWaHz/eYEikwJ3lugubOTxp xoH6LUlqOYDwoq5NFuh+m3Kzt3M4GGPymQmTiyJD1FUzYPGDWSZVFBzdqWnVlZJyd2NG smmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FCGv/qYKeyIfFckxFA2H8QoH1f78f7u1cBQ9C1Sjl3M=; b=efzG9eF4yQG/ecpZm9zcwKovF3GzPlFdKLk+2TjXrT7OniereNKfIwHYn6bZjRWkYD dOyodwBpY8bCN7L27dudsvuYIeZRv3fCCvXETUyu/4RaCPJuk2V2lnOZczThFRWeBMdk xQLtfNXz6DuP67hlHh9IcnvBFRT+vqMG9H9QgnVsu6h6hAqe82D7Ghn1r/3hZ63GmAZw Qk7SW+lMQUCq1IH8DgDHyuHFOQ5LJiXWXIrdU7mVxrZTdgFDT0i9wIwBFH/VXXr/l2Le 5c5qCiuMD83FwK4oFJgZbDth0mUaL5O/Bmf34uPB2qDiLu2Tv5b9xm3gzzjfo8pB+Wf5 56bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eF5N1ay0; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa8si12705468pjb.53.2022.02.04.15.08.52; Fri, 04 Feb 2022 15:09:04 -0800 (PST) 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=@linaro.org header.s=google header.b=eF5N1ay0; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353345AbiBCSUI (ORCPT + 99 others); Thu, 3 Feb 2022 13:20:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353338AbiBCSUF (ORCPT ); Thu, 3 Feb 2022 13:20:05 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7102C06173D for ; Thu, 3 Feb 2022 10:20:04 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id o9-20020a9d7189000000b0059ee49b4f0fso3285555otj.2 for ; Thu, 03 Feb 2022 10:20:04 -0800 (PST) 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; bh=FCGv/qYKeyIfFckxFA2H8QoH1f78f7u1cBQ9C1Sjl3M=; b=eF5N1ay0x01zbCkcH51YulCjlbhEz3kuA1OuFLPpYD06veDb//xhGfkMg66RE1E7cM RXivflDbMlN/+L96DUHKvaL/WzBE+5OQwylRvm5Nr8Nz6bfZHtBrn51QRqndqNBUOqmY XNLOYbDTOC6rIydYZgoJWdk7zx8nzbetY1GzohlLLRh+VqdnKO6TqsPQT8nqZ9YJ4FWq ibNHoEZ3MyBsTJVKaIfyZlHW/zHh5dOnWTgg9YcNZdDdHUc+v/thpYW5HfkanOU7QYxZ 5vWVO5umEUNLp4nbmCXz1wcRoutZfkOM/wN48fx/yQ97mmaWp7h9qb0GIJ9VVhig+9WE KL/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FCGv/qYKeyIfFckxFA2H8QoH1f78f7u1cBQ9C1Sjl3M=; b=tyRV/Kr4t4896HuR6HugzuVhLv9vg17MckYB+zGA64EK4sALuBgJ3nQLePYhZFOcE/ /VoOx2YEvscWerSx7E6CFMIQMQwQRK+I/NFoUUthhRbRyPDi7ZQYP7YgZA478sOfxYQ1 xoJ6mWC1T9tJCJI91wOn4Bk7/OCXQZn1BpQfSxCj6hgAUC+6xpLWPziBXqKYIxJ5Rdrl yPy3p/s/KWJ0DhZR4uvUrR3BMtaSaSrVXzPZ5FgygEJ1fuTwyN0QoycNqauyOPG3ef0W pzamQ3To5Ybb4e5yBdS7rt1/AUelL+IOjw/dPezidttFXuOX36VVSYW5Lfxe/GbbCTX2 iBiw== X-Gm-Message-State: AOAM531kkhsvYkVlazkyCAxcBUibfH4VcDJ+v+r83jy1HYgzau/Wak9y 4w2KIIl8/lOM293IYfkWxSpxxA== X-Received: by 2002:a05:6830:42:: with SMTP id d2mr19692222otp.27.1643912404228; Thu, 03 Feb 2022 10:20:04 -0800 (PST) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id r186sm13107645oie.23.2022.02.03.10.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 10:20:03 -0800 (PST) Date: Thu, 3 Feb 2022 10:20:20 -0800 From: Bjorn Andersson To: Dmitry Baryshkov Cc: Mathieu Poirier , Rob Herring , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/13] soc: qcom: mdt_loader: Support Qualcomm SM8450 Message-ID: References: <20220128025513.97188-1-bjorn.andersson@linaro.org> <8ee1cea3-00f3-7a9c-dbd9-aaf8160db006@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ee1cea3-00f3-7a9c-dbd9-aaf8160db006@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 03 Feb 07:11 PST 2022, Dmitry Baryshkov wrote: > On 28/01/2022 05:55, Bjorn Andersson wrote: > > The Qualcomm SM8450 platform comes with both some smaller changes in the > > firmware packaging and a new requirement to hold onto the metadata buffer until > > PAS auth_and_reset has been completed. > > > > Extend the PAS api and rework the mdt_loader to meet these new requirements, > > then wire this up with the PAS remoteproc driver and finally add the SM8450 > > remoteproc instances. > > > > Bjorn Andersson (13): > > firmware: qcom: scm: Introduce pas_metadata context > > soc: qcom: mdt_loader: Split out split-file-loader > > soc: qcom: mdt_loader: Allow hash segment to be split out > > soc: qcom: mdt_loader: Allow hash to reside in any segment > > soc: qcom: mdt_loader: Extend check for split firmware > > soc: qcom: mdt_loader: Reorder parts of __qcom_mdt_load() > > soc: qcom: mdt_loader: Always invoke PAS mem_setup > > soc: qcom: mdt_loader: Extract PAS operations > > remoteproc: qcom: pas: Carry PAS metadata context > > dt-bindings: remoteproc: qcom: pas: Add SM8450 PAS compatibles > > remoteproc: qcom: pas: Add SM8450 remoteproc support > > arm64: dts: qcom: sm8450: Add remoteproc enablers and instances > > arm64: dts: qcom: sm8450-qrd: Enable remoteproc instances > > Reviewed-by: Dmitry Baryshkov > Thanks. > Minor nitpicks: > - I'd reorder the series by moving patch 1 (pas_metadata) closer to patch > 8&9 (pas metadata usage) For a while the design where such that I would merge the first patch into a immutable branch and then merge the soc/qcom and remoteproc changes separately. But as you can see, in the end the remoteproc patch ended up depending on the mdt_loader changes. I like your suggestion, so I can move the scm change down to keep things together. > - I would have added pas_metadata as an argument to qcom_mdt_load(). > However I see, why you didn't want to add another argument to the list. > I looked at that, but I was already unhappy with the argument explosion in that function prototype. By splitting out the difference between qcom_mdt_load() and qcom_mdt_load_no_init() into a separate function will allow some cleanup and better reuse in the client drivers. As we bring up the various clients on SM8450 we will need to perform the same modifications that was done to the remoteproc driver, by doing it like this we don't need to change the prototype twice. Regards, Bjorn > > > > .../bindings/remoteproc/qcom,adsp.yaml | 16 + > > arch/arm64/boot/dts/qcom/sm8450-qrd.dts | 20 ++ > > arch/arm64/boot/dts/qcom/sm8450.dtsi | 297 ++++++++++++++++++ > > drivers/firmware/qcom_scm.c | 39 ++- > > drivers/remoteproc/qcom_q6v5_mss.c | 7 +- > > drivers/remoteproc/qcom_q6v5_pas.c | 36 ++- > > drivers/soc/qcom/mdt_loader.c | 232 +++++++++----- > > include/linux/qcom_scm.h | 10 +- > > include/linux/soc/qcom/mdt_loader.h | 17 +- > > 9 files changed, 579 insertions(+), 95 deletions(-) > > > > > -- > With best wishes > Dmitry