lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 30 Jun 2017 18:35:17 +1000
From:   Nicholas Piggin <npiggin@...il.com>
To:     "Rafael J. Wysocki" <rafael@...nel.org>
Cc:     "Rafael J . Wysocki" <rjw@...ysocki.net>,
        Linux PM <linux-pm@...r.kernel.org>,
        Vaidyanathan Srinivasan <svaidy@...ux.vnet.ibm.com>,
        "Gautham R . Shenoy" <ego@...ux.vnet.ibm.com>,
        Daniel Lezcano <daniel.lezcano@...aro.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] cpuidle: menu: allow state 0 to be disabled

On Thu, 29 Jun 2017 22:57:33 +0200
"Rafael J. Wysocki" <rafael@...nel.org> wrote:

> On Mon, Jun 26, 2017 at 7:38 AM, Nicholas Piggin <npiggin@...il.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@...ux.vnet.ibm.com>
> > Signed-off-by: Nicholas Piggin <npiggin@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ