linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Todor Tomov <todor.tomov@linaro.org>
To: Jon Hunter <jonathanh@nvidia.com>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Kevin Hilman <khilman@kernel.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Cc: Rajendra Nayak <rnayak@codeaurora.org>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Stanimir Varbanov <stanimir.varbanov@linaro.org>,
	Stephen Boyd <sboyd@codeaurora.org>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	viresh.kumar@linaro.org
Subject: Re: Re: [RFC PATCH 0/4] PM / Domains: Add support for explicit control of PM domains
Date: Mon, 9 Oct 2017 19:36:49 +0300	[thread overview]
Message-ID: <72397ec8-d169-c5b1-2120-459031b35d48@linaro.org> (raw)
In-Reply-To: <5fcfeda6-f95c-cdaa-73a5-5c7499a3f9f5@codeaurora.org>

Hi,

On 30.05.2017 06:41, Rajendra Nayak wrote:
> []..
> 
>>>> I was proposing to have such a lower-layer by splitting the existing
>>>> genpd framework so the drivers would have the option of calling the
>>>> lower-level power control functions to look-up pm-domains and control
>>>> them directly from their rpm callbacks (if they need to). Same as we do
>>>> for clocks. This way you would not need to mess with the genpd ->start()
>>>> callback and leave it to the driver to handle itself as it knows what
>>>> needs to be done. This assumes that the device is never bound to the
>>>> pm-domain by the genpd core.
>>>
>>> Yes, agree! To me this is the only solution what would really work.
>>
>> I agree! :-)
>>
>>> Perhaps Rafael can confirm that he is fine with a solution like this?
>>
>> Yes and Rafael, please can you also elaborate on what you meant by
>> "allow genpd to use either a list of power resources or the on/off
>> callbacks provided by itself to cover different use cases"?
>>
>> I would like to understand exactly what you meant by allowing genpd to
>> use a list of power resources (ie. how you envisioned we could achieve
>> this).
> 
> While thinking through the problem of devices associated with multiple Power
> domains (or power resources) and controlling them individually (or together)
> I was wondering if something like a PM domain governor (with PM resource 
> level constraints) could help.
> 
> So with just one set of PM domain callbacks, its quite easy to control multiple power
> resources, if they need to be *all* turned on/off together, using something similar to
> what Jon proposed in his RFC [1]
> 
> However, there could be instances where in we might need to control them individually
> and in such cases we could hook up a PM domain governor which decides if an individual
> PM resource can be turned on or off while the device is runtime suspended/resumed.
> We can expose some PM resource level QoS APIs which the drivers can use to express their
> needs, which the PM domain governor then takes into account during the decision making.
> 
> if this seems worth pursuing further, I can post some RFCs on these lines and
> get the discussion going.
> 
> thanks,
> Rajendra
> 
> [1] https://lkml.org/lkml/2016/9/20/173
> 

I have come to a similar case with multiple power domains on Qualcomm APQ8096 - the
camera subsystem has two VFE modules (Video Front End - these are image processing modules)
and each of them has a separate power domain but we might want to control these from
a single driver.

So I wanted to ask if there have been any news on this topic lately?

Thank you.
Best regards,
Todor

  reply	other threads:[~2017-10-09 16:36 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28 14:13 [RFC PATCH 0/4] PM / Domains: Add support for explicit control of PM domains Jon Hunter
2017-03-28 14:14 ` [RFC PATCH 1/4] PM / Domains: Prepare for supporting explicit PM domain control Jon Hunter
2017-03-28 14:14 ` [RFC PATCH 2/4] PM / Domains: Add support for explicit control of PM domains Jon Hunter
2017-04-10  4:09   ` Rajendra Nayak
2017-04-10  8:24     ` Jon Hunter
2017-04-10 10:02       ` Rajendra Nayak
2017-04-10 19:48         ` Jon Hunter
2017-03-28 14:14 ` [RFC PATCH 3/4] PM / Domains: Add OF helpers for getting " Jon Hunter
2017-03-28 14:14 ` [RFC PATCH 4/4] dt-bindings: Add support for devices with multiple " Jon Hunter
2017-04-10  4:12   ` Rajendra Nayak
2017-04-10  8:24     ` Jon Hunter
2017-04-25 11:13 ` [RFC PATCH 0/4] PM / Domains: Add support for explicit control of " Jon Hunter
2017-04-25 19:34   ` Ulf Hansson
2017-04-25 21:17     ` Rafael J. Wysocki
2017-05-02 10:10       ` Jon Hunter
2017-05-02 21:51         ` Rafael J. Wysocki
2017-05-03  8:12           ` Ulf Hansson
2017-05-03  8:32             ` Jon Hunter
2017-05-03 13:43               ` Ulf Hansson
2017-05-03 14:57                 ` Jon Hunter
2017-05-03 17:12                   ` Ulf Hansson
2017-05-04  8:44                     ` Jon Hunter
2017-05-30  3:41                       ` Rajendra Nayak
2017-10-09 16:36                         ` Todor Tomov [this message]
2017-10-10  9:13                           ` Jon Hunter
2017-05-03  8:12           ` Jon Hunter
2017-04-26  8:06     ` Geert Uytterhoeven
2017-04-26  9:04       ` Ulf Hansson
2017-04-26  9:17         ` Geert Uytterhoeven
2017-04-26  9:55           ` Ulf Hansson
2017-05-03  6:43             ` Geert Uytterhoeven
2017-05-03  8:54               ` Geert Uytterhoeven

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=72397ec8-d169-c5b1-2120-459031b35d48@linaro.org \
    --to=todor.tomov@linaro.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=geert@linux-m68k.org \
    --cc=jonathanh@nvidia.com \
    --cc=khilman@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=rnayak@codeaurora.org \
    --cc=sboyd@codeaurora.org \
    --cc=stanimir.varbanov@linaro.org \
    --cc=ulf.hansson@linaro.org \
    --cc=viresh.kumar@linaro.org \
    /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).