Skip to contentSkip to conversation

Add DT bindings with dynamic-power-coefficient for Mali GPUs

PATCH In review Lukasz Luba 2 participants 5 messages Dec 9, 2020 – Dec 14, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Add DT bindings with dynamic-power-coefficient for Mali GPUs

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(+)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/2 dt-bindings: mali-midgard: Add dynamic-power-coefficient

Add a property dynamic-power-coefficient which allows to register Energy Model for the Mali Midgard devices.

---
 .../bindings/gpu/arm,mali-midgard.yaml          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml +17 -0
index e9c42b59f30f..696c17aedbbe 100644
@@ -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
Signature · 1 line
2.17.1
maintainer
#2 lore raw

Re: [PATCH 1/2] dt-bindings: mali-midgard: Add dynamic-power-coefficient

Quoted 8 lines · Lukasz Luba

Add a property dynamic-power-coefficient which allows to register Energy Model for the Mali Midgard devices.

---
 .../bindings/gpu/arm,mali-midgard.yaml          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Applied, thanks!
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

PATCH 2/2 dt-bindings: mali-bifrost: Add dynamic-power-coefficient

In reply to Lukasz Luba

Add a property dynamic-power-coefficient which allows to register Energy Model for the Mali Bifrost devices.

---
 .../bindings/gpu/arm,mali-bifrost.yaml          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +17 -0
index b1844b9c295d..184492162e7e 100644
@@ -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
Signature · 1 line
2.17.1
maintainer
#4 lore raw

Re: [PATCH 2/2] dt-bindings: mali-bifrost: Add dynamic-power-coefficient

Quoted 8 lines · Lukasz Luba

Add a property dynamic-power-coefficient which allows to register Energy Model for the Mali Bifrost devices.

---
 .../bindings/gpu/arm,mali-bifrost.yaml          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Applied, thanks!
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel