linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Osipenko <digetx@gmail.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
	linux-pm@vger.kernel.org, Kevin Hilman <khilman@kernel.org>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Rajendra Nayak <rnayak@codeaurora.org>,
	Dong Aisheng <aisheng.dong@nxp.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] PM: domains: Prevent power off for parent unless child is in deepest state
Date: Thu, 17 Feb 2022 13:02:04 +0300	[thread overview]
Message-ID: <25e6658c-3241-198b-4240-1055c8a6c630@gmail.com> (raw)
In-Reply-To: <CAPDyKFoDP-LT9nKwa0oKF0jW9DD3tZh4+v9zE0uS_KpJeFC-MQ@mail.gmail.com>

16.02.2022 12:45, Ulf Hansson пишет:
> On Tue, 15 Feb 2022 at 22:49, Dmitry Osipenko <digetx@gmail.com> wrote:
>>
>> 04.02.2022 13:16, Ulf Hansson пишет:
>>> A PM domain managed by genpd may support multiple idlestates. During
>>> genpd_power_off() a genpd governor may be asked to select one of the
>>> idlestates based upon the dev PM QoS constraints, for example.
>>>
>>> However, there is a problem with the behaviour around this in genpd. More
>>> precisely, a parent-domain is allowed to be powered off, no matter of what
>>> idlestate that has been selected for the child-domain.
>>>
>>> So far, we have not received any reports about errors from the current
>>> behaviour. However, there is an STMicro platform that is being worked on,
>>> which can't cope with this.
>>
>> Could you please provide some technical info about why STMicro platform
>> can't cope with that?
> 
> There is a parent domain with one power-off state. The parent domain
> has a few devices attached to it, which means they need to be managed
> to together. The parent domain is controlling a shared power rail.
> 
> The child domain, which has multiple idle states to choose from, also
> has some devices attached to it. The child domain is controlling a
> system clock, but also relies on the shared power rail that is managed
> by the parent domain.
> 
> Obviously, these idle states are managed by firmware.
> 
> I hope that made it a bit more clear?

Yes, I see now what this patch does.

So "deepest state" in the code's comment means powered off state. Maybe
the comment could clarify it better a tad.

- * The children must be in their deepest states to allow the parent to
+ * The children must be in their deepest (powered-off) states to allow
the parent to

  reply	other threads:[~2022-02-17 10:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04 10:16 [PATCH v2] PM: domains: Prevent power off for parent unless child is in deepest state Ulf Hansson
2022-02-15 21:49 ` Dmitry Osipenko
2022-02-16  9:45   ` Ulf Hansson
2022-02-17 10:02     ` Dmitry Osipenko [this message]
2022-02-17 12:49 Ulf Hansson
2022-02-17 23:11 ` Dmitry Osipenko
2022-02-28  8:56   ` Ulf Hansson
2022-03-01 14:56     ` Rafael J. Wysocki

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=25e6658c-3241-198b-4240-1055c8a6c630@gmail.com \
    --to=digetx@gmail.com \
    --cc=aisheng.dong@nxp.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=geert+renesas@glider.be \
    --cc=khilman@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rnayak@codeaurora.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;
as well as URLs for NNTP newsgroup(s).