From: Jon Hunter <jonathanh@nvidia.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
"Rafael J. Wysocki" <rafael@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Kevin Hilman <khilman@kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
"Rajendra Nayak" <rnayak@codeaurora.org>,
Stanimir Varbanov <stanimir.varbanov@linaro.org>,
Stephen Boyd <sboyd@codeaurora.org>,
"Marek Szyprowski" <m.szyprowski@samsung.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [RFC PATCH 0/4] PM / Domains: Add support for explicit control of PM domains
Date: Thu, 4 May 2017 09:44:50 +0100 [thread overview]
Message-ID: <b1c74af3-1943-51ff-0bc9-009ca6c7f217@nvidia.com> (raw)
In-Reply-To: <CAPDyKFqeAWoy-vfN89j8Yv1HTMpNqwcVk3XrTQoXH5JNrQ9Maw@mail.gmail.com>
On 03/05/17 18:12, Ulf Hansson wrote:
> [...]
>
>>>>
>>>>> What is missing, is how a call to pm_runtime_get_sync() by a driver,
>>>>> can inform the ->start() callback about what exact power resource(s)
>>>>> it shall turn on, because it may not always be all of them. Similar
>>>>> problem exists for pm_runtime_put().
>>>>
>>>> Yes that is missing too, but I still don't see how you bind a device to
>>>> more than one power-domain :-(
>>>
>>> I think this is what Rafael wanted us avoid (because of the complexity
>>> involved). Instead the suggestion is to deal with this on top of the
>>> existing PM domain structure, as "power resources" instead. Unless I
>>> missed his point. :-)
>>>
>>> Then *my* point is: To be able to implement that, still only allowing
>>> one PM domain per device, we would anyway need a new layer in-between
>>> the PM domain (genpd) and the driver controlling the device. Simply
>>> because these two entities, needs to be able to exchange information
>>> about which "power resources" that shall be turned off/on, when the
>>> driver do pm_runtime_get|put().
>>
>> Right, but isn't this similar to what I was suggesting above in my
>> previous email?
>
> Perhaps it was, apologize for my ignorance in that case.
No problem, sometimes email is not the clearest medium (or maybe it is
just the author/me who struggles ;-)
> Then, isn't that quite what you already started hacking on in $subject
> series? What's the new thing in your previous reply?
Well this series just adds new APIs, but does not partition the
framework into the two layers we discussed. So it seems we should
partition the code into layers first, then add these new APIs.
> However, I was under the impression that Rafael preferred another way
> - but again I might have missed his point.
>
>>
>> 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).
Cheers
Jon
--
nvpublic
next prev parent reply other threads:[~2017-05-04 8:45 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 14:13 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 [this message]
2017-05-30 3:41 ` Rajendra Nayak
2017-10-09 16:36 ` Todor Tomov
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=b1c74af3-1943-51ff-0bc9-009ca6c7f217@nvidia.com \
--to=jonathanh@nvidia.com \
--cc=geert@linux-m68k.org \
--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 \
/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
all inboxes | Powered by JetHome®