* [PATCH 0/2] Add DT bindings with dynamic-power-coefficient for Mali GPUs
@ 2020-12-09 11:51 ` Lukasz Luba
0 siblings, 0 replies; 10+ messages in thread
From: Lukasz Luba @ 2020-12-09 11:51 UTC (permalink / raw)
To: linux-kernel, devicetree, dri-devel; +Cc: lukasz.luba, robh, airlied, daniel
Hi all,
The patch set aims to add a new property dynamic-power-coefficient to Mali GPU
DT bindings. This property is known from CPUs and they are both aligned. It
is used for Energy Model registration.
Regards,
Lukasz Luba
Lukasz Luba (2):
dt-bindings: mali-midgard: Add dynamic-power-coefficient
dt-bindings: mali-bifrost: Add dynamic-power-coefficient
.../bindings/gpu/arm,mali-bifrost.yaml | 17 +++++++++++++++++
.../bindings/gpu/arm,mali-midgard.yaml | 17 +++++++++++++++++
2 files changed, 34 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/2] Add DT bindings with dynamic-power-coefficient for Mali GPUs
@ 2020-12-09 11:51 ` Lukasz Luba
0 siblings, 0 replies; 10+ messages in thread
From: Lukasz Luba @ 2020-12-09 11:51 UTC (permalink / raw)
To: linux-kernel, devicetree, dri-devel; +Cc: airlied, lukasz.luba
Hi all,
The patch set aims to add a new property dynamic-power-coefficient to Mali GPU
DT bindings. This property is known from CPUs and they are both aligned. It
is used for Energy Model registration.
Regards,
Lukasz Luba
Lukasz Luba (2):
dt-bindings: mali-midgard: Add dynamic-power-coefficient
dt-bindings: mali-bifrost: Add dynamic-power-coefficient
.../bindings/gpu/arm,mali-bifrost.yaml | 17 +++++++++++++++++
.../bindings/gpu/arm,mali-midgard.yaml | 17 +++++++++++++++++
2 files changed, 34 insertions(+)
--
2.17.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] dt-bindings: mali-midgard: Add dynamic-power-coefficient
2020-12-09 11:51 ` Lukasz Luba
@ 2020-12-09 11:51 ` Lukasz Luba
-1 siblings, 0 replies; 10+ messages in thread
From: Lukasz Luba @ 2020-12-09 11:51 UTC (permalink / raw)
To: linux-kernel, devicetree, dri-devel; +Cc: lukasz.luba, robh, airlied, daniel
Add a property dynamic-power-coefficient which allows to register Energy
Model for the Mali Midgard devices.
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
---
.../bindings/gpu/arm,mali-midgard.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
index e9c42b59f30f..696c17aedbbe 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
@@ -90,6 +90,23 @@ properties:
dma-coherent: true
+ dynamic-power-coefficient:
+ $ref: '/schemas/types.yaml#/definitions/uint32'
+ description:
+ A u32 value that represents the running time dynamic
+ power coefficient in units of uW/MHz/V^2. The
+ coefficient can either be calculated from power
+ measurements or derived by analysis.
+
+ The dynamic power consumption of the GPU is
+ proportional to the square of the Voltage (V) and
+ the clock frequency (f). The coefficient is used to
+ calculate the dynamic power as below -
+
+ Pdyn = dynamic-power-coefficient * V^2 * f
+
+ where voltage is in V, frequency is in MHz.
+
required:
- compatible
- reg
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 1/2] dt-bindings: mali-midgard: Add dynamic-power-coefficient
@ 2020-12-09 11:51 ` Lukasz Luba
0 siblings, 0 replies; 10+ messages in thread
From: Lukasz Luba @ 2020-12-09 11:51 UTC (permalink / raw)
To: linux-kernel, devicetree, dri-devel; +Cc: airlied, lukasz.luba
Add a property dynamic-power-coefficient which allows to register Energy
Model for the Mali Midgard devices.
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
---
.../bindings/gpu/arm,mali-midgard.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
index e9c42b59f30f..696c17aedbbe 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
@@ -90,6 +90,23 @@ properties:
dma-coherent: true
+ dynamic-power-coefficient:
+ $ref: '/schemas/types.yaml#/definitions/uint32'
+ description:
+ A u32 value that represents the running time dynamic
+ power coefficient in units of uW/MHz/V^2. The
+ coefficient can either be calculated from power
+ measurements or derived by analysis.
+
+ The dynamic power consumption of the GPU is
+ proportional to the square of the Voltage (V) and
+ the clock frequency (f). The coefficient is used to
+ calculate the dynamic power as below -
+
+ Pdyn = dynamic-power-coefficient * V^2 * f
+
+ where voltage is in V, frequency is in MHz.
+
required:
- compatible
- reg
--
2.17.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] dt-bindings: mali-bifrost: Add dynamic-power-coefficient
2020-12-09 11:51 ` Lukasz Luba
@ 2020-12-09 11:51 ` Lukasz Luba
-1 siblings, 0 replies; 10+ messages in thread
From: Lukasz Luba @ 2020-12-09 11:51 UTC (permalink / raw)
To: linux-kernel, devicetree, dri-devel; +Cc: lukasz.luba, robh, airlied, daniel
Add a property dynamic-power-coefficient which allows to register Energy
Model for the Mali Bifrost devices.
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
---
.../bindings/gpu/arm,mali-bifrost.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
index b1844b9c295d..184492162e7e 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
@@ -52,6 +52,23 @@ properties:
"#cooling-cells":
const: 2
+ dynamic-power-coefficient:
+ $ref: '/schemas/types.yaml#/definitions/uint32'
+ description:
+ A u32 value that represents the running time dynamic
+ power coefficient in units of uW/MHz/V^2. The
+ coefficient can either be calculated from power
+ measurements or derived by analysis.
+
+ The dynamic power consumption of the GPU is
+ proportional to the square of the Voltage (V) and
+ the clock frequency (f). The coefficient is used to
+ calculate the dynamic power as below -
+
+ Pdyn = dynamic-power-coefficient * V^2 * f
+
+ where voltage is in V, frequency is in MHz.
+
required:
- compatible
- reg
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] dt-bindings: mali-bifrost: Add dynamic-power-coefficient
@ 2020-12-09 11:51 ` Lukasz Luba
0 siblings, 0 replies; 10+ messages in thread
From: Lukasz Luba @ 2020-12-09 11:51 UTC (permalink / raw)
To: linux-kernel, devicetree, dri-devel; +Cc: airlied, lukasz.luba
Add a property dynamic-power-coefficient which allows to register Energy
Model for the Mali Bifrost devices.
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
---
.../bindings/gpu/arm,mali-bifrost.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
index b1844b9c295d..184492162e7e 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
@@ -52,6 +52,23 @@ properties:
"#cooling-cells":
const: 2
+ dynamic-power-coefficient:
+ $ref: '/schemas/types.yaml#/definitions/uint32'
+ description:
+ A u32 value that represents the running time dynamic
+ power coefficient in units of uW/MHz/V^2. The
+ coefficient can either be calculated from power
+ measurements or derived by analysis.
+
+ The dynamic power consumption of the GPU is
+ proportional to the square of the Voltage (V) and
+ the clock frequency (f). The coefficient is used to
+ calculate the dynamic power as below -
+
+ Pdyn = dynamic-power-coefficient * V^2 * f
+
+ where voltage is in V, frequency is in MHz.
+
required:
- compatible
- reg
--
2.17.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mali-midgard: Add dynamic-power-coefficient
2020-12-09 11:51 ` Lukasz Luba
@ 2020-12-14 22:06 ` Rob Herring
-1 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2020-12-14 22:06 UTC (permalink / raw)
To: Lukasz Luba; +Cc: dri-devel, linux-kernel, airlied, devicetree
On Wed, 09 Dec 2020 11:51:42 +0000, Lukasz Luba wrote:
> Add a property dynamic-power-coefficient which allows to register Energy
> Model for the Mali Midgard devices.
>
> Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
> ---
> .../bindings/gpu/arm,mali-midgard.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mali-midgard: Add dynamic-power-coefficient
@ 2020-12-14 22:06 ` Rob Herring
0 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2020-12-14 22:06 UTC (permalink / raw)
To: Lukasz Luba; +Cc: airlied, devicetree, linux-kernel, dri-devel
On Wed, 09 Dec 2020 11:51:42 +0000, Lukasz Luba wrote:
> Add a property dynamic-power-coefficient which allows to register Energy
> Model for the Mali Midgard devices.
>
> Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
> ---
> .../bindings/gpu/arm,mali-midgard.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
Applied, thanks!
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] dt-bindings: mali-bifrost: Add dynamic-power-coefficient
2020-12-09 11:51 ` Lukasz Luba
@ 2020-12-14 22:06 ` Rob Herring
-1 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2020-12-14 22:06 UTC (permalink / raw)
To: Lukasz Luba; +Cc: devicetree, airlied, dri-devel, linux-kernel
On Wed, 09 Dec 2020 11:51:43 +0000, Lukasz Luba wrote:
> Add a property dynamic-power-coefficient which allows to register Energy
> Model for the Mali Bifrost devices.
>
> Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
> ---
> .../bindings/gpu/arm,mali-bifrost.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] dt-bindings: mali-bifrost: Add dynamic-power-coefficient
@ 2020-12-14 22:06 ` Rob Herring
0 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2020-12-14 22:06 UTC (permalink / raw)
To: Lukasz Luba; +Cc: airlied, devicetree, linux-kernel, dri-devel
On Wed, 09 Dec 2020 11:51:43 +0000, Lukasz Luba wrote:
> Add a property dynamic-power-coefficient which allows to register Energy
> Model for the Mali Bifrost devices.
>
> Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
> ---
> .../bindings/gpu/arm,mali-bifrost.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
Applied, thanks!
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-12-14 22:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 11:51 [PATCH 0/2] Add DT bindings with dynamic-power-coefficient for Mali GPUs Lukasz Luba
2020-12-09 11:51 ` Lukasz Luba
2020-12-09 11:51 ` [PATCH 1/2] dt-bindings: mali-midgard: Add dynamic-power-coefficient Lukasz Luba
2020-12-09 11:51 ` Lukasz Luba
2020-12-14 22:06 ` Rob Herring
2020-12-14 22:06 ` Rob Herring
2020-12-09 11:51 ` [PATCH 2/2] dt-bindings: mali-bifrost: " Lukasz Luba
2020-12-09 11:51 ` Lukasz Luba
2020-12-14 22:06 ` Rob Herring
2020-12-14 22:06 ` Rob Herring
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.