* [PATCH v3 4/8] dt-bindings: firmware: arm,scmi: Add atomic_threshold optional property
[not found] <20220208154452.39428-1-cristian.marussi@arm.com>
@ 2022-02-08 15:44 ` Cristian Marussi
2022-02-08 16:12 ` Florian Fainelli
0 siblings, 1 reply; 3+ messages in thread
From: Cristian Marussi @ 2022-02-08 15:44 UTC (permalink / raw)
To: linux-kernel, linux-arm-kernel
Cc: sudeep.holla, james.quinlan, Jonathan.Cameron, f.fainelli,
etienne.carriere, vincent.guittot, souvik.chakravarty,
peter.hilber, igor.skalkin, cristian.marussi, Rob Herring,
devicetree
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 <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
---
v1 --> v2
- rephrased the property description
---
.../devicetree/bindings/firmware/arm,scmi.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
index eae15df36eef..646bdf2873b5 100644
--- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
+++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
@@ -81,6 +81,15 @@ properties:
'#size-cells':
const: 0
+ atomic_threshold:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ 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.
+ If left unconfigured defaults to zero.
+
arm,smc-id:
$ref: /schemas/types.yaml#/definitions/uint32
description:
@@ -264,6 +273,8 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
+ atomic_threshold = <10000>;
+
scmi_devpd: protocol@11 {
reg = <0x11>;
#power-domain-cells = <1>;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3 4/8] dt-bindings: firmware: arm,scmi: Add atomic_threshold optional property
2022-02-08 15:44 ` [PATCH v3 4/8] dt-bindings: firmware: arm,scmi: Add atomic_threshold optional property Cristian Marussi
@ 2022-02-08 16:12 ` Florian Fainelli
2022-02-08 17:00 ` Cristian Marussi
0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2022-02-08 16:12 UTC (permalink / raw)
To: Cristian Marussi, linux-kernel, linux-arm-kernel
Cc: sudeep.holla, james.quinlan, Jonathan.Cameron, etienne.carriere,
vincent.guittot, souvik.chakravarty, peter.hilber, igor.skalkin,
Rob Herring, devicetree
On 2/8/2022 7:44 AM, Cristian Marussi wrote:
> 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 <robh+dt@kernel.org>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
> ---
> v1 --> v2
> - rephrased the property description
> ---
> .../devicetree/bindings/firmware/arm,scmi.yaml | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
> index eae15df36eef..646bdf2873b5 100644
> --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
> +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
> @@ -81,6 +81,15 @@ properties:
> '#size-cells':
> const: 0
>
> + atomic_threshold:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + 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.
> + If left unconfigured defaults to zero.
Underscores in properties is not usually something that is desired, and
it might be a good idea to put the unit in the property name, how about:
atomic-threshold-us?
> +
> arm,smc-id:
> $ref: /schemas/types.yaml#/definitions/uint32
> description:
> @@ -264,6 +273,8 @@ examples:
> #address-cells = <1>;
> #size-cells = <0>;
>
> + atomic_threshold = <10000>;
> +
> scmi_devpd: protocol@11 {
> reg = <0x11>;
> #power-domain-cells = <1>;
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3 4/8] dt-bindings: firmware: arm,scmi: Add atomic_threshold optional property
2022-02-08 16:12 ` Florian Fainelli
@ 2022-02-08 17:00 ` Cristian Marussi
0 siblings, 0 replies; 3+ messages in thread
From: Cristian Marussi @ 2022-02-08 17:00 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-kernel, linux-arm-kernel, sudeep.holla, james.quinlan,
Jonathan.Cameron, etienne.carriere, vincent.guittot,
souvik.chakravarty, peter.hilber, igor.skalkin, Rob Herring,
devicetree
On Tue, Feb 08, 2022 at 08:12:39AM -0800, Florian Fainelli wrote:
>
>
> On 2/8/2022 7:44 AM, Cristian Marussi wrote:
> > 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.
> >
Hi Florian,
thanks for the feedback first of all.
> > Cc: Rob Herring <robh+dt@kernel.org>
> > Cc: devicetree@vger.kernel.org
> > Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
> > ---
> > v1 --> v2
> > - rephrased the property description
> > ---
> > .../devicetree/bindings/firmware/arm,scmi.yaml | 11 +++++++++++
> > 1 file changed, 11 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
> > index eae15df36eef..646bdf2873b5 100644
> > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
> > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
> > @@ -81,6 +81,15 @@ properties:
> > '#size-cells':
> > const: 0
> > + atomic_threshold:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + 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.
> > + If left unconfigured defaults to zero.
>
> Underscores in properties is not usually something that is desired, and it
> might be a good idea to put the unit in the property name, how about:
> atomic-threshold-us?
>
I was indeed in doubt if it was desirable or not to have the units
embedded in the name ... thanks for the hint about the underscores too,
I'll fix nextV following your advice.
Thanks,
Cristian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-08 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220208154452.39428-1-cristian.marussi@arm.com>
2022-02-08 15:44 ` [PATCH v3 4/8] dt-bindings: firmware: arm,scmi: Add atomic_threshold optional property Cristian Marussi
2022-02-08 16:12 ` Florian Fainelli
2022-02-08 17:00 ` Cristian Marussi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox