From: Rob Herring <robh@kernel.org>
To: Punit Agrawal <punit.agrawal@arm.com>
Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org, edubezval@gmail.com,
dawei.chien@mediatek.com, javi.merino@arm.com,
Mark Rutland <mark.rutland@arm.com>
Subject: Re: [PATCH v4 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property
Date: Mon, 16 Nov 2015 17:23:01 -0600 [thread overview]
Message-ID: <20151116232301.GA3223@rob-hp-laptop> (raw)
In-Reply-To: <1447702225-13323-2-git-send-email-punit.agrawal@arm.com>
On Mon, Nov 16, 2015 at 07:30:23PM +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.
>
> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
> ---
> 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 3a07a87..6aca64f 100644
> --- a/Documentation/devicetree/bindings/arm/cpus.txt
> +++ b/Documentation/devicetree/bindings/arm/cpus.txt
> @@ -242,6 +242,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.6.2
>
next prev parent reply other threads:[~2015-11-16 23:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-16 19:30 [PATCH v4 0/3] Dynamic power model from device tree Punit Agrawal
2015-11-16 19:30 ` [PATCH v4 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property Punit Agrawal
2015-11-16 23:23 ` Rob Herring [this message]
2015-11-17 4:36 ` Viresh Kumar
[not found] ` <1447702225-13323-1-git-send-email-punit.agrawal-5wv7dgnIgG8@public.gmane.org>
2015-11-16 19:30 ` [PATCH v4 2/3] cpufreq-dt: Supply power coefficient when registering cooling devices Punit Agrawal
2015-11-16 19:30 ` [PATCH v4 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device Punit Agrawal
[not found] ` <1447702225-13323-4-git-send-email-punit.agrawal-5wv7dgnIgG8@public.gmane.org>
2015-11-17 4:43 ` Viresh Kumar
2015-11-17 10:58 ` Punit Agrawal
2015-11-17 4:35 ` [PATCH v4 0/3] Dynamic power model from device tree Viresh Kumar
2015-11-17 10:05 ` Punit Agrawal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151116232301.GA3223@rob-hp-laptop \
--to=robh@kernel.org \
--cc=dawei.chien@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=javi.merino@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=punit.agrawal@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox