Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp358683pxb; Thu, 17 Feb 2022 05:49:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNiODLeDsEoUWO9mdjVxBmM/IEo6mZn0FnXaP4jtWlDWGCt/o7dq6boMM/T5coVKxsVYVo X-Received: by 2002:a17:90b:4a50:b0:1b9:50b8:2b8b with SMTP id lb16-20020a17090b4a5000b001b950b82b8bmr7420898pjb.45.1645105758104; Thu, 17 Feb 2022 05:49:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645105758; cv=none; d=google.com; s=arc-20160816; b=sg5pk7HUFBMfuC5nmoKiljkoUoGbxaTef+BIwwyn45gFqnnf/Rgaqiy9SiSg+DDa40 hw2Aow0kqkPcv+pxSnYWcljYamr0p24mf3tKHEKpYe3YJi8D8sZtYMrZjQ6fHYEo1gge u1LDPgxh5whXqGOMSotRMu2i9YnWrIfMNBJv+BPgHkFli1hC6rgCoPEQvTf6iD15nP6C 0PmBwFPoZeDF/5tCzdEfygtenHrU9ThWrOHbr30oc+Jt3LejrfsmXNcFaszTeqcIoUbp qZdIsgYYpIwTv0s56I2CSea3bTzphpjuOaGNSMKJLODOAkYzd1Ag1ZWrV8fO0TLvDBj1 E4RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=sLlxthnYCimFF/LRS2XaXfSzdd8vwqzihBKSw7kUGbs=; b=fxkSQX+v7xhUP4Fwr+rQAgKPEyz7uoYwK3ZPm4fQvXzHNK4EDSSbdw/ZCoSYioynsP yhG1DYnMkUvtdv8zGZ7kK9ZVHb33udgVPqllM6b8WEEqntejiLrmJrDzcS1q4AcYbuX8 9qS4rnX2e5prXaGxxFZVPlJKLmyWmbNbhgIXNW3t04GJMEyPH08/Tu93TUmBTxyPGdbf X93y3b5btPecFTBc4ULyNz9apErhepmsSOJNiVU6LZ+y0oNbVGAIv6ExnG2FIs01AVbI 12MfAlVQCeLYmq5xiHnn4a/PGsuz8185QqgCdMF+OAe855eGSiQrbttDmA5yUIzJAvyS kVCg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a65si8422882pge.169.2022.02.17.05.49.01; Thu, 17 Feb 2022 05:49:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232797AbiBQNNU (ORCPT + 99 others); Thu, 17 Feb 2022 08:13:20 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiBQNNS (ORCPT ); Thu, 17 Feb 2022 08:13:18 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5342929E956; Thu, 17 Feb 2022 05:13:03 -0800 (PST) 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 1DDCC1515; Thu, 17 Feb 2022 05:13:00 -0800 (PST) Received: from e120937-lin.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 362F03F66F; Thu, 17 Feb 2022 05:12:58 -0800 (PST) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, f.fainelli@gmail.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com, peter.hilber@opensynergy.com, igor.skalkin@opensynergy.com, cristian.marussi@arm.com, Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v5 4/8] dt-bindings: firmware: arm,scmi: Add atomic-threshold-us optional property Date: Thu, 17 Feb 2022 13:12:30 +0000 Message-Id: <20220217131234.50328-5-cristian.marussi@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220217131234.50328-1-cristian.marussi@arm.com> References: <20220217131234.50328-1-cristian.marussi@arm.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 SCMI protocols in the platform can optionally signal to the OSPM agent the expected execution latency for a specific resource/operation pair. Introduce an SCMI system wide optional property to describe a global time threshold which can be configured on a per-platform base to determine the opportunity, or not, for an SCMI command advertised to have a higher latency than the threshold, to be considered for atomic operations: high-latency SCMI synchronous commands should be preferably issued in the usual non-atomic mode. Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Cristian Marussi --- v4 --> v5: - fixed example and removed dtschema warnings/errors : arm,scmi.yaml: properties:atomic-threshold-us: '$ref' should not be valid under {'const': '$ref'} - added default: 0 clause v3 --> v4 - renamed property to atomic-threshold-us v1 --> v2 - rephrased the property description --- .../devicetree/bindings/firmware/arm,scmi.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index eae15df36eef..590743883802 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -81,6 +81,14 @@ properties: '#size-cells': const: 0 + atomic-threshold-us: + description: + An optional time value, expressed in microseconds, representing, on this + platform, the threshold above which any SCMI command, advertised to have + an higher-than-threshold execution latency, should not be considered for + atomic mode of operation, even if requested. + default: 0 + arm,smc-id: $ref: /schemas/types.yaml#/definitions/uint32 description: @@ -264,6 +272,8 @@ examples: #address-cells = <1>; #size-cells = <0>; + atomic-threshold-us = <10000>; + scmi_devpd: protocol@11 { reg = <0x11>; #power-domain-cells = <1>; -- 2.17.1