From: Nicholas Piggin <npiggin@gmail.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: "Rafael J . Wysocki" <rjw@rjwysocki.net>,
Linux PM <linux-pm@vger.kernel.org>,
Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>,
"Gautham R . Shenoy" <ego@linux.vnet.ibm.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] cpuidle: menu: allow state 0 to be disabled
Date: Fri, 30 Jun 2017 18:35:17 +1000 [thread overview]
Message-ID: <20170630183517.4852583d@roar.ozlabs.ibm.com> (raw)
In-Reply-To: <CAJZ5v0iSX9yweQNiQ1UnnHVLt-iFZ3gJ1VyRxSOvq2+DEkWa6g@mail.gmail.com>
On Thu, 29 Jun 2017 22:57:33 +0200
"Rafael J. Wysocki" <rafael@kernel.org> wrote:
> On Mon, Jun 26, 2017 at 7:38 AM, Nicholas Piggin <npiggin@gmail.com> wrote:
> > The menu driver does not allow state0 to be disabled completely.
> > If it is disabled but other enabled states don't meet latency
> > requirements, it is still used.
> >
> > Fix this by starting with the first enabled idle state. Fall back
> > to state 0 if no idle states are enabled (arguably this should be
> > -EINVAL if it is attempted, but this is the minimal fix).
> >
> > Acked-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
> > Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> > ---
> >
> > Hi Rafael,
>
> Hi Nick,
>
> > This patch is helpful when measuring power draw of polling,
> > latency cost of idle states, etc. Please consider merging if
> > you agree.
>
> I have a slight concern about x86 where state0 is mapped to polling
> and the way it is used in general stems from that.
>
> Still, I guess we can try and see if this causes any problems to
> happen in practice, so I'm going to apply it.
Hi Rafael,
I tried to avoid changing the logic for x86, but let me know if you
spot anything or run into a problem, I will try to help fix it.
I still think it may be worth investigating whether x86 can be fixed
instead of with this special case then by adjusting its idle state
parameters (e.g., in the case of Atom). Anyway that's for another
time and doesn't affect powerpc.
Thanks,
Nick
prev parent reply other threads:[~2017-06-30 8:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-26 5:38 Nicholas Piggin
2017-06-29 20:57 ` Rafael J. Wysocki
2017-06-30 8:35 ` Nicholas Piggin [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=20170630183517.4852583d@roar.ozlabs.ibm.com \
--to=npiggin@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=ego@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=svaidy@linux.vnet.ibm.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
all inboxes | Powered by JetHome®