From: Axel Haslam <ahaslam@baylibre.com>
To: Zhaoyang Huang <zhaoyang.huang@linaro.org>
Cc: Kevin Hilman <khilman@linaro.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Lina Iyer <lina.iyer@linaro.org>,
geert@glider.be, k.kozlowski.k@gmail.com, rjw@rjwysocki.net,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
bcousson@baylibre.com, mturquette@baylibre.com,
Axel Haslam <ahaslam+renesas@baylibre.com>
Subject: Re: [PATCH v10 2/6] PM / Domains: core changes for multiple states
Date: Tue, 10 Nov 2015 12:02:28 +0100 [thread overview]
Message-ID: <5641CEC4.3080800@baylibre.com> (raw)
In-Reply-To: <CAN2waFuQ+72zstgdD7GbxOr=d1T1wkqRvRePfL8KJbTceEGdzA@mail.gmail.com>
Hi Zhaoyang,
> @@ -576,6 +584,8 @@ static void pm_genpd_sync_poweroff(struct
> generic_pm_domain *genpd,
> || atomic_read(&genpd->sd_count) > 0)
> return;
>
> + /* Choose the deepest state when suspending */
> + genpd->state_idx = genpd->state_count - 1;
>
> if there is no governor configured, does it mean that we just try the
> deepest one here?
>
If a governor is not configured, there is no way to choose between the
states, and the state_idx will not change. so it will remain the one set
at the genpd init function wich is the same as here: the deepest state.
(state_count -1). In other words, if there is no governor, there
is only one state: the deepest.
About setting the deepest state in this particular place, My
understanding is that this code will be called in suspend path,
and in this case genpd_poweroff is not called, hence the genpd governor
is not called either. Because there are many other things happening
during suspend/resume, i think that suspend/resume is a slow procedure
that will most likely not honor the device qos constraints, so i set the
genpd to its deepest state.
Regards
Axel
> genpd_power_off(genpd, timed);
>
> genpd->status = GPD_STATE_POWER_OFF;
next prev parent reply other threads:[~2015-11-10 11:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 13:26 [PATCH v10 0/6] Multiple intermediate states for genpd ahaslam
2015-10-20 13:26 ` [PATCH v10 1/6] PM / Domains: prepare for multiple states ahaslam
2015-10-27 14:33 ` Ulf Hansson
2015-10-27 17:04 ` Axel Haslam
2015-10-20 13:26 ` [PATCH v10 2/6] PM / Domains: core changes " ahaslam
[not found] ` <CAN2waFuQ+72zstgdD7GbxOr=d1T1wkqRvRePfL8KJbTceEGdzA@mail.gmail.com>
2015-11-10 11:02 ` Axel Haslam [this message]
2015-10-20 13:26 ` [PATCH v10 3/6] PM / Domains: make governor select deepest state ahaslam
2015-11-10 9:42 ` Zhaoyang Huang
2015-11-10 13:58 ` Axel Haslam
2015-10-20 13:26 ` [PATCH v10 4/6] ARM: imx6: pm: declare pm domain latency on power_state struct ahaslam
2015-10-20 13:26 ` [PATCH v10 5/6] PM / Domains: remove old power on/off latencies ahaslam
2015-10-20 13:26 ` [PATCH v10 6/6] PM / Domains: add debugfs 'states' and 'timings' seq files ahaslam
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=5641CEC4.3080800@baylibre.com \
--to=ahaslam@baylibre.com \
--cc=ahaslam+renesas@baylibre.com \
--cc=bcousson@baylibre.com \
--cc=geert@glider.be \
--cc=k.kozlowski.k@gmail.com \
--cc=khilman@linaro.org \
--cc=lina.iyer@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=rjw@rjwysocki.net \
--cc=ulf.hansson@linaro.org \
--cc=zhaoyang.huang@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).