Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4403596rwl; Mon, 10 Apr 2023 10:28:29 -0700 (PDT) X-Google-Smtp-Source: AKy350aOgGrPFC8Ww1MvHx7F0G9lSJEc7fKciPTonQdhBAfi6UW9tzcy2m8E5Oxr9megPZM9H5JK X-Received: by 2002:a17:902:eccc:b0:1a2:4921:f9a1 with SMTP id a12-20020a170902eccc00b001a24921f9a1mr17391271plh.44.1681147709356; Mon, 10 Apr 2023 10:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681147709; cv=none; d=google.com; s=arc-20160816; b=npLtKhgPZ0MxGnvc8nGZHEryJtGUbPnZPj7vr8nMyNXC0ilzZrxFmx8O9hhlGqgz44 jj6hjPr79IpzKF4QFx1jwb8uOiXMlNsm/UcF33SuwFGArBdggn35+5PJ5wCgqN0gxBaE nAz5xRjss3uaTlEYdThu0hWI34LGmNToyqaGPDdgsgTfKk7D/rjNzNexx0pNJTQ4V/bg GLbRJyoQkHtv5pfAWOFBUin2g3ntmsEs5ELp+Lr1EbXTKqJeEdw9YCC3Pb+pPGXISqMb +F5NzCwpXJ9LlynRe5lAWZAwgDdOFhtWVgwkjjENQQGqHmtDqx5gjxGBP5XQYrenvInR JkKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uiGkVZuP4SKipoXqig3t+i70oWcmpQUiQnrzBe9N9p8=; b=M9ArILB4szGYP0lzrqfZ9iN+YSeQyqUx6xybwy8XH8ezIcv3P/CJb2/xrsEPA6nzo+ pC58H51r1vU9nfIbgY4KvxdPeeJ/XozXlPzNZdEvcfOjDuAcw/jlrVzJUwhq4BK8e0Y+ 6p1ou6cyWgoB4RjUMVOXUAmez7Tml8tR7J0kz2juQ5guhkeCZaDwDHvpkHboS1OQpZ8x qANufq+PHRnsU4LFUXx76CkxshlCHgfUOSqRMlUsVB9hlV6zAHa518KcS0r82ki4xGFE csZ2oyF3n135CAGlLIXHMcqgj4gqyeJ2hXF3KPq+z5bIjQRqMHvKyr4p2714X+yCLIka Atag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XY9PmTQF; 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 s8-20020a632c08000000b00513a4ba9ca0si10979473pgs.722.2023.04.10.10.28.03; Mon, 10 Apr 2023 10:28:29 -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=@linaro.org header.s=google header.b=XY9PmTQF; 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 S229904AbjDJRUb (ORCPT + 99 others); Mon, 10 Apr 2023 13:20:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbjDJRU3 (ORCPT ); Mon, 10 Apr 2023 13:20:29 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9F8D2116 for ; Mon, 10 Apr 2023 10:20:27 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id sg7so25437725ejc.9 for ; Mon, 10 Apr 2023 10:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681147226; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uiGkVZuP4SKipoXqig3t+i70oWcmpQUiQnrzBe9N9p8=; b=XY9PmTQFGXLKphdbRxca8qtQziW/zeEMFu4EGtG/reD0qqja3WrlyFWkeoMPU5a2Bw TqJSoG3DpY4mAdD1k9K/xerwkmuS+DN2fE/UZ7vq4iB0hr+D8Ix88jc4nTJfh+NGqHKw geL4vh7/73w5K4RsJDWkjiMBncCxhx3AOHD7BjSzgfE2eB7ibfMgRBsE2K1OCD/MUL+y 5xgjU4Va1Shl9G0r9gbGU57yvf5LQKwZMBWbYjQSdrQxqSFEhR0t2cIKaeLGqFSAim7r 51KORrDgJfh5cxh881gvERllMEPan9rzpu3c2XzHJ5+8a3dFg5+DVC3HnDnqgjd/O9U6 O9tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681147226; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uiGkVZuP4SKipoXqig3t+i70oWcmpQUiQnrzBe9N9p8=; b=XjcvF+5fiXLMMN93v9JDzqLqpd1wVH0ju/lkiQLdfeq7b3vhUApfnp2yCoHjuIPrUX 184ksIdWfPAU+rKHeZqDRqsuILcdqlmmnYam6w3CRbQOWzSMRpG2yXWiC9PFvBKCBezb w8uNq6voE0fFV1dApdYHYg+sdvF2rFJ9UOlp9tYdYTdxxiPu8pbTY6xm/2keFTy/mcY9 VyYne20G+ziv2Ily6YNjP+hmNHnM98Rim6qP5CGYXWsMfvDDb2i6+QhQHKioCLAkwNJ3 55nkZmvgyZ/doixi9D8Pi27lQBe3t8nXbCAl3HG0wFHs/Hy0At9xBxzfqTeSH69/VGLc ywcQ== X-Gm-Message-State: AAQBX9eDNJaUsSwN29jDWSbt0XZtpcvucz/Q5T/GmhzugiTEvsN6Tg1L J0K5ysK6AkDFAsKA/gVNfrZlOQ== X-Received: by 2002:a17:906:3843:b0:93a:353d:e38b with SMTP id w3-20020a170906384300b0093a353de38bmr7223420ejc.37.1681147226436; Mon, 10 Apr 2023 10:20:26 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:1a6c:6968:e633:48df? ([2a02:810d:15c0:828:1a6c:6968:e633:48df]) by smtp.gmail.com with ESMTPSA id e23-20020a170906375700b0094da6a90107sm302005ejc.73.2023.04.10.10.20.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Apr 2023 10:20:25 -0700 (PDT) Message-ID: <5d264f46-b9e8-62ec-9bce-9d666fd1eaa8@linaro.org> Date: Mon, 10 Apr 2023 19:20:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 1/2] dt-bindings: firmware: arm,scmi: support parameter passing in smc/hvc Content-Language: en-US To: Nikunj Kela , sudeep.holla@arm.com Cc: cristian.marussi@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230409181918.29270-1-quic_nkela@quicinc.com> <20230409181918.29270-2-quic_nkela@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <20230409181918.29270-2-quic_nkela@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org On 09/04/2023 20:19, Nikunj Kela wrote: > Currently, smc/hvc calls are made with smc-id only. The parameters are > all set to zeros. This patch defines two optional device tree bindings, > that can be used to pass parameters in smc/hvc calls. > > This is useful when multiple scmi instances are used with common smc-id. > > Signed-off-by: Nikunj Kela > --- > .../devicetree/bindings/firmware/arm,scmi.yaml | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > index 5824c43e9893..08c331a79b80 100644 > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > @@ -115,6 +115,22 @@ properties: > description: > SMC id required when using smc or hvc transports > > + arm,smc32-params: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: > + An optional parameter list passed in smc32 or hvc32 calls > + default: 0 > + minItems: 1 > + maxItems: 6 > + > + arm,smc64-params: > + $ref: /schemas/types.yaml#/definitions/uint64-array > + description: > + An optional parameter list passed in smc64 or hvc64 calls > + default: 0 > + minItems: 1 > + maxItems: 6 These do not look like hardware properties and the fact that you need two properties for the same also points that you tied it to specific SW interface. Why this should be board-specific? Actually better question - why this should be fixed per board? Doesn't my software want to have different parameters, depending on some other condition? You also did not provide any DTS user for this, so difficult to judge usefulness. Best regards, Krzysztof