All of lore.kernel.org
 help / color / mirror / Atom feed
* is 'dynamic-power-coefficient' expected to be based on 'real' power measurements?
@ 2020-09-15  5:44 Rajendra Nayak
  2020-09-15 17:24 ` Matthias Kaehlcke
  2020-09-15 19:53 ` Doug Anderson
  0 siblings, 2 replies; 18+ messages in thread
From: Rajendra Nayak @ 2020-09-15  5:44 UTC (permalink / raw)
  To: Rob Herring, DTML, Doug Anderson, Matthias Kaehlcke

Hi Rob,

There has been some discussions on another thread [1] around the DPC (dynamic-power-coefficient) values
for CPU's being relative vs absolute (based on real power) and should they be used to derive 'real' power
at various OPPs in order to calculate things like 'sustainable-power' for thermal zones.
I believe relative values work perfectly fine for scheduling decisions, but with others using this for
calculating power values in mW, is there a need to document the property as something that *has* to be
based on real power measurements?

Looking at the bindings,

   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 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 V, frequency is in MHz.

.. the 'can either be calculated from power measurements or derived by analysis'
tells me we don't mandate that this be based on real power measurements.
If we do, then perhaps that needs to be mentioned explicitly?

thanks,
Rajendra

[1] https://lore.kernel.org/patchwork/patch/1287119/#1494073

-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-09-24  8:22 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15  5:44 is 'dynamic-power-coefficient' expected to be based on 'real' power measurements? Rajendra Nayak
2020-09-15 17:24 ` Matthias Kaehlcke
2020-09-15 17:50   ` Daniel Lezcano
2020-09-15 17:58     ` Matthias Kaehlcke
2020-09-15 20:55       ` Daniel Lezcano
2020-09-15 21:13         ` Matthias Kaehlcke
2020-09-15 21:23           ` Daniel Lezcano
2020-09-15 21:36             ` Matthias Kaehlcke
2020-09-16  4:15               ` Rajendra Nayak
2020-09-16 16:40                 ` Matthias Kaehlcke
2020-09-15 21:46         ` Doug Anderson
2020-09-15 21:51           ` Matthias Kaehlcke
2020-09-16  9:53         ` Lukasz Luba
2020-09-16 16:48           ` Matthias Kaehlcke
2020-09-24  6:09             ` Rajendra Nayak
2020-09-24  8:21               ` Lukasz Luba
2020-09-16  9:18       ` Lukasz Luba
2020-09-15 19:53 ` Doug Anderson

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.