linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: Lukasz Luba <lukasz.luba@arm.com>,
	linux-pm@vger.kernel.org, edubezval@gmail.com
Cc: javi.merino@arm.com, orjan.eide@arm.com
Subject: Re: [PATCH 0/4] devfreq_cooling: let the driver supply the dynamic power every time we need it
Date: Wed, 28 Sep 2016 09:26:39 +0800	[thread overview]
Message-ID: <1475025999.4284.15.camel@intel.com> (raw)
In-Reply-To: <7767c8d3-6ee7-427d-b709-0e98279e313a@arm.com>

On 二, 2016-09-27 at 15:43 +0100, Lukasz Luba wrote:
> Hello Eduardo, Rui,
> 
> I just want to ask you about your concerns regarding this patch set.
> What do you think about it? Is there any chance to merge it?
> 
It's 4.8-rc8 now, thus it's too late for this patch set to be included
in this merge window. Will review it after merge windows closed. :)

thanks,
rui

> Regards,
> Lukasz
> 
> On 15/09/16 15:44, Lukasz Luba wrote:
> > 
> > Hello,
> > 
> > This patchset introduces a new interface for devfreq cooling in
> > thermal
> > framework. I am resending it without the RFC tag.
> > It supports direct call to driver's functions registered as
> > 'get_dynamic_power' and 'power2state'.
> > 
> > 
> > The current implementation in the thermal devfreq cooling subsystem
> > uses
> > precalculated power table for each device to make a decision about
> > allowed
> > running state. When the driver registers itself to the thermal
> > devfreq cooling
> > subsystem, the framework creates the power table. The table is then
> > used by the
> > thermal subsystem to keep the device in the thermal envelope. The
> > current
> > implementation uses a fixed assumption of the complexity of the
> > logic in the
> > cooling_device and assumes power consumption varies directly in
> > proportion to
> > the frequency/voltage
> > 
> > The proposed implementation provides the possibility to register a
> > driver to
> > thermal devfreq cooling subsystem and use the driver's code during
> > the
> > calculation of the power in runtime. You can still use
> > precalculated power
> > table when the GET_DIRECT_DYNAMIC_POWER flag is not set (the new
> > extension can
> > co-exist with the current implementation).
> > 
> > This idea meets the expectations of the devices which know better
> > the power
> > they consume (and the power is not strictly related to OPP table
> > entries
> > (frequency, voltage) (i.e. some parts/features of the device can be
> > unused)).
> > 
> > The first patch is just for fixing some compiler warnings.  The
> > second patch is
> > the same as the one sent already to the linux-pm list which adds
> > passing the
> > devfreq pointer to the driver functions
> > 'get_static|dynamic_power'.  The third
> > one implements the main change in the devfreq cooling
> > subsystem.  The last one
> > is a simple fix for an unnecessary check.
> > 
> > Best Regards,
> > Lukasz Luba
> > 
> > Javi Merino (1):
> >   devfreq_cooling: pass a pointer to devfreq in the power model
> >     callbacks
> > 
> > Lukasz Luba (3):
> >   devfreq_cooling: make the structs devfreq_cooling_xxx visible for
> > all
> >   devfreq_cooling: let the driver supply the dynamic power every
> > time we
> >     need it
> >   devfreq_cooling: fix unnecessary check of unsigned long value
> > 
> >  drivers/thermal/devfreq_cooling.c | 193
> > +++++++++++++++++++++++++++-----------
> >  include/linux/devfreq_cooling.h   |  34 +++++--
> >  2 files changed, 165 insertions(+), 62 deletions(-)
> > 

      reply	other threads:[~2016-09-28  1:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-15 14:44 [PATCH 0/4] devfreq_cooling: let the driver supply the dynamic power every time we need it Lukasz Luba
2016-09-15 14:44 ` [PATCH 1/4] devfreq_cooling: make the structs devfreq_cooling_xxx visible for all Lukasz Luba
2016-09-15 14:44 ` [PATCH 2/4] devfreq_cooling: pass a pointer to devfreq in the power model callbacks Lukasz Luba
2016-09-15 14:44 ` [PATCH 3/4] devfreq_cooling: let the driver supply the dynamic power every time we need it Lukasz Luba
2016-11-17  3:13   ` Eduardo Valentin
2016-11-17 15:26     ` Lukasz Luba
2016-09-15 14:44 ` [PATCH 4/4] devfreq_cooling: fix unnecessary check of unsigned long value Lukasz Luba
2016-09-27 14:43 ` [PATCH 0/4] devfreq_cooling: let the driver supply the dynamic power every time we need it Lukasz Luba
2016-09-28  1:26   ` Zhang Rui [this message]

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=1475025999.4284.15.camel@intel.com \
    --to=rui.zhang@intel.com \
    --cc=edubezval@gmail.com \
    --cc=javi.merino@arm.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=orjan.eide@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;
as well as URLs for NNTP newsgroup(s).