Message ID | 1447090163-13700-2-git-send-email-punit.agrawal@arm.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Mon, Nov 09, 2015 at 05:29:21PM +0000, Punit Agrawal wrote: > The dynamic power consumption of a device is proportional to the > square of voltage (V) and the clock frequency (f). It can be expressed as > > Pdyn = dynamic-power-coefficient * V^2 * f. > > The coefficient represents the running time dynamic power consumption in > units of mw/MHz/uVolt^2 and can be used in the above formula to > calculate the dynamic power in mW. I have no issue with the binding, but I wonder if a single value is really sufficient to model this. Don't you also need a static component? Rob > > Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> > Cc: Rob Herring <robh+dt@kernel.org> > Cc: Mark Rutland <mark.rutland@arm.com> > --- > Documentation/devicetree/bindings/arm/cpus.txt | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt > index 91e6e5c..c33362d 100644 > --- a/Documentation/devicetree/bindings/arm/cpus.txt > +++ b/Documentation/devicetree/bindings/arm/cpus.txt > @@ -240,6 +240,23 @@ nodes to be present and contain the properties described below. > Definition: Specifies the syscon node controlling the cpu core > power domains. > > + - dynamic-power-coefficient > + Usage: optional > + Value type: <prop-encoded-array> > + Definition: A u32 value that represents the running time dynamic > + power coefficient in units of mW/MHz/uVolt^2. The > + coefficient can either be calculated from power > + measurements or derived by analysis. > + > + The dynamic power consumption of the CPU 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 uV, frequency is in MHz. > + > Example 1 (dual-cluster big.LITTLE system 32-bit): > > cpus { > -- > 2.5.3 > -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Rob Herring <robh@kernel.org> writes: > On Mon, Nov 09, 2015 at 05:29:21PM +0000, Punit Agrawal wrote: >> The dynamic power consumption of a device is proportional to the >> square of voltage (V) and the clock frequency (f). It can be expressed as >> >> Pdyn = dynamic-power-coefficient * V^2 * f. >> >> The coefficient represents the running time dynamic power consumption in >> units of mw/MHz/uVolt^2 and can be used in the above formula to >> calculate the dynamic power in mW. > > I have no issue with the binding, but I wonder if a single value is > really sufficient to model this. Don't you also need a static > component? In general, power consumption does consist of the static and dynamic power. Here we are only modelling the dynamic component. For CPUs, we found that a single-coefficient model using frequency and voltages gives a reasonable estimation of dynamic power consumption. For thermal management, because of using closed loop control providing the dynamic consumption is good enough as long as static power for your platform is not significant. On the other hand, there isn't a generally applicable model for static power - it has complex relationships with temperature, voltages, etc which make it hard to express as a simple formula. For platforms where static power is significant, providing it via platform code is the only option for now. This patchset enables platforms where dynamic power works well to setup their power model for thermal management via device tree. > > Rob > >> >> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> >> Cc: Rob Herring <robh+dt@kernel.org> >> Cc: Mark Rutland <mark.rutland@arm.com> >> --- >> Documentation/devicetree/bindings/arm/cpus.txt | 17 +++++++++++++++++ >> 1 file changed, 17 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt >> index 91e6e5c..c33362d 100644 >> --- a/Documentation/devicetree/bindings/arm/cpus.txt >> +++ b/Documentation/devicetree/bindings/arm/cpus.txt >> @@ -240,6 +240,23 @@ nodes to be present and contain the properties described below. >> Definition: Specifies the syscon node controlling the cpu core >> power domains. >> >> + - dynamic-power-coefficient >> + Usage: optional >> + Value type: <prop-encoded-array> >> + Definition: A u32 value that represents the running time dynamic >> + power coefficient in units of mW/MHz/uVolt^2. The >> + coefficient can either be calculated from power >> + measurements or derived by analysis. >> + >> + The dynamic power consumption of the CPU 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 uV, frequency is in MHz. >> + >> Example 1 (dual-cluster big.LITTLE system 32-bit): >> >> cpus { >> -- >> 2.5.3 >> > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt index 91e6e5c..c33362d 100644 --- a/Documentation/devicetree/bindings/arm/cpus.txt +++ b/Documentation/devicetree/bindings/arm/cpus.txt @@ -240,6 +240,23 @@ nodes to be present and contain the properties described below. Definition: Specifies the syscon node controlling the cpu core power domains. + - dynamic-power-coefficient + Usage: optional + Value type: <prop-encoded-array> + Definition: A u32 value that represents the running time dynamic + power coefficient in units of mW/MHz/uVolt^2. The + coefficient can either be calculated from power + measurements or derived by analysis. + + The dynamic power consumption of the CPU 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 uV, frequency is in MHz. + Example 1 (dual-cluster big.LITTLE system 32-bit): cpus {
The dynamic power consumption of a device is proportional to the square of voltage (V) and the clock frequency (f). It can be expressed as Pdyn = dynamic-power-coefficient * V^2 * f. The coefficient represents the running time dynamic power consumption in units of mw/MHz/uVolt^2 and can be used in the above formula to calculate the dynamic power in mW. Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> --- Documentation/devicetree/bindings/arm/cpus.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)