linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] thermal, OPP: move the CPU power estimation to the OPP library
@ 2018-01-09 11:02 Quentin Perret
  2018-01-09 11:02 ` [PATCH 1/2] PM / OPP: introduce an OPP power estimation helper Quentin Perret
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Quentin Perret @ 2018-01-09 11:02 UTC (permalink / raw)
  To: linux-pm
  Cc: rjw, vireshk, nm, sboyd, sudeep.holla, amit.kachhap, javi.merino,
	rui.zhang, edubezval, matthias.bgg, dietmar.eggemann,
	morten.rasmussen, patrick.bellasi, ionela.voinescu

Currently, IPA estimates the power dissipated by a CPU at each available OPP
using its capacitance (the dynamic-power-coefficient DT binding). This series
relocates this feature into the OPP library as a preparation for future
changes. More specifically:

   1. The current DT-based approach for power estimation will need deep
      changes to support SCMI-provided power values. While the thermal
      subsystem is not necessarily the best place to hide multiple power
      estimation methods, the OPP library appears to be a good candidate to
      implement the required platform abstraction.
   2. The energy models of CPUs will be needed by other clients in the future
      (such as the task scheduler or CPUFreq governors for example) in order
      to make energy-aware decisions. The relocation to the OPP library will
      enable code re-use and all clients will benefit form the platform
      abstraction mentioned previously.

Quentin Perret (2):
  PM / OPP: introduce an OPP power estimation helper
  thermal: cpu_cooling: use power models from the OPP library

 drivers/cpufreq/arm_big_little.c   |  2 ++
 drivers/cpufreq/cpufreq-dt.c       |  2 ++
 drivers/cpufreq/mediatek-cpufreq.c |  2 ++
 drivers/opp/core.c                 | 40 +++++++++++++++++++++++++
 drivers/opp/of.c                   | 61 ++++++++++++++++++++++++++++++++++++++
 drivers/opp/opp.h                  |  4 +++
 drivers/thermal/cpu_cooling.c      | 33 ++++++---------------
 include/linux/pm_opp.h             | 20 +++++++++++++
 8 files changed, 140 insertions(+), 24 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-01-16  9:16 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 11:02 [PATCH 0/2] thermal, OPP: move the CPU power estimation to the OPP library Quentin Perret
2018-01-09 11:02 ` [PATCH 1/2] PM / OPP: introduce an OPP power estimation helper Quentin Perret
2018-01-10  4:36   ` Viresh Kumar
2018-01-10 10:20     ` Quentin Perret
2018-01-10 10:25       ` Viresh Kumar
2018-01-10 10:36         ` Quentin Perret
2018-01-09 11:02 ` [PATCH 2/2] thermal: cpu_cooling: use power models from the OPP library Quentin Perret
2018-01-10  4:37   ` Viresh Kumar
2018-01-10 19:34 ` [PATCH 0/2] thermal, OPP: move the CPU power estimation to " Eduardo Valentin
2018-01-11  9:42   ` Viresh Kumar
2018-01-11  9:42   ` Quentin Perret
2018-01-12 17:24     ` Eduardo Valentin
2018-01-12 17:44       ` Quentin Perret
2018-01-12 17:47         ` Eduardo Valentin
2018-01-12 17:50           ` Quentin Perret
2018-01-15  4:26       ` Viresh Kumar
2018-01-15 17:46         ` Eduardo Valentin
2018-01-16  9:16           ` Quentin Perret

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).