Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2699489rdb; Wed, 4 Oct 2023 08:53:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSRl0XmARMhGLWdUZughIFePzb83maNv0Alc6mUgZB+FjVAiQhRsTYka9XcyQeEKP4az0x X-Received: by 2002:a05:6a00:39a2:b0:691:2d4:23b2 with SMTP id fi34-20020a056a0039a200b0069102d423b2mr3144327pfb.15.1696434809917; Wed, 04 Oct 2023 08:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696434809; cv=none; d=google.com; s=arc-20160816; b=mSv/24dC/rDIA5378QQHKgQSj9mCCIKpsMuQ79aPc0t5g9r3v/2sCZdh83WgK1/yNm DS34IShNuc2cJ7+8Gj7HXD7x5L9XUm9VP7YezXnonzCLGGAA/GVgeW0jQ3HtJYjRPEzf IpltoYnMae7DZ4VVn7Pz2RA3dnqzyixKACHTOu1fkToB/zTBp05DCoBufHx+2OXBIj8q lNrD/LuQLNS8G27lzOFe8X2JOUYMnuhfoJzpVAk/7sqzZ9tzkPAdLgaRqVw02MmHmVpM mA3CMg+ZqiPu0IRGV33HGyhfjuGuxr2MboUTeI/Lgm0HfRrbFXk9+rLPzLl8KuXeE3CU 1XmQ== 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; bh=4Ij2tajo/qdNTz4NocFbgfYIzNPAlYXjU68BRQ4JiSk=; fh=Rrb4hNmmv9IN0ONQgB+GVb8aFKrreZFkj8VxHalTACw=; b=W3l/vVRxk/ABS17x0B0F5aBh7t8PYqLIy4lXDSdKrVxd/nAAiAza41uxGS7Xt4Mi5L dTcvVXSRYJrKY9DV2AWGlA/0n5x2Cw0pCKigXoFsfZN/c1cp9BRtGXJlWur8uqCOhtVC saJEu+lMHCHpuz95nhJ2JxoKvPJwYwLk8NU5UY/xrNTnhkxCglhtcGT5E19eD0oF0E6E /Dk2iW7K3JiD93ASgCIhkwgDOSoQtjWkxCToKL2hBFgChkjkpJ1LNE0OD8apLWnYjgt8 7GOG5psH4QnMU6qmgOVWV5qkTx1m3yuB4yf7T8j55r4KVDs8g0VghbiAAxmvfV4Rx15L H6wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 201-20020a6300d2000000b0057017abe776si3909228pga.677.2023.10.04.08.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 08:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 85B13826C4D6; Wed, 4 Oct 2023 08:53:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243085AbjJDPxS (ORCPT + 99 others); Wed, 4 Oct 2023 11:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233661AbjJDPxR (ORCPT ); Wed, 4 Oct 2023 11:53:17 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5880CA6; Wed, 4 Oct 2023 08:53:14 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B0F11C15; Wed, 4 Oct 2023 08:53:52 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8C5B23F762; Wed, 4 Oct 2023 08:53:12 -0700 (PDT) Date: Wed, 4 Oct 2023 16:53:10 +0100 From: Sudeep Holla To: Nikunj Kela Cc: cristian.marussi@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Sudeep Holla , andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v4 3/4] dt-bindings: arm: Add new compatible for smc/hvc transport for SCMI Message-ID: <20231004155310.zqwlj6boy65atoyq@bogus> References: <20230718160833.36397-1-quic_nkela@quicinc.com> <20230911194359.27547-1-quic_nkela@quicinc.com> <20230911194359.27547-4-quic_nkela@quicinc.com> <20231003104404.o7yxg3y7dn7uhrq4@bogus> <7c871b23-5544-6604-257d-f0c8fd5afd06@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c871b23-5544-6604-257d-f0c8fd5afd06@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 08:53:28 -0700 (PDT) On Tue, Oct 03, 2023 at 08:59:45AM -0700, Nikunj Kela wrote: > > On 10/3/2023 3:44 AM, Sudeep Holla wrote: > > On Mon, Sep 11, 2023 at 12:43:58PM -0700, Nikunj Kela wrote: > > > Introduce compatible "qcom,scmi-hvc-shmem" for SCMI smc/hvc > > > transport channel for Qualcomm virtual platforms. > > > The compatible mandates a shared memory channel. > > > > > > Signed-off-by: Nikunj Kela > > > Acked-by: Krzysztof Kozlowski > > > --- > > > .../devicetree/bindings/firmware/arm,scmi.yaml | 12 ++++++++++++ > > > 1 file changed, 12 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > > index 8d54ea768d38..4090240f45b1 100644 > > > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > > @@ -45,6 +45,9 @@ properties: > > > - description: SCMI compliant firmware with OP-TEE transport > > > items: > > > - const: linaro,scmi-optee > > > + - description: SCMI compliant firmware with Qualcomm hvc/shmem transport > > > + items: > > > + - const: qcom,scmi-hvc-shmem > > Can it be simply "qcom,scmi-smc" for 2 reasons ? > > 1. We don't support SMC/HVC without shmem, so what is your argument to add > > '-shmem' in the compatible here ? > > In our platforms, there are multiple ways to allocate memory. One is > preallocated shmem as used here, another is dynamically by hypervisor APIs. > shmem was to just to indicate it is preallocated. > Let us keep it without shmem. If it is dynamically allocated, you must not need another compatible as you can check it at the runtime. > > > 2. The exact conduit(SMC/HVC) used is detected runtime, so I prefer to keep > > '-smc' instead of '-hvc' in the compatible just to avoid giving an illusion > > that HVC is the conduit chosen here based on the compatible. It can be true > > for other reason but I don't want to mislead here by using HVC. > > IUUC, currently, conduit comes from PSCI dt node. We have been using smc for > PSCI but want to use hvc here. That being said, I am fine to explore if we > can change PSCI to use hvc too. > I think only OPTEE has explicit conduit other than PSCI and it is continued for legacy/compatibility reasons IIUC and IIRC. Anything else depends on the conduit used by PSCI to be consistent. So yes you need to use what the PSCI conduit is and you don't need the extra information from the DT either as new property or in the compatible. -- Regards, Sudeep