Re: Regression: turbostat stops working after suspend/resume cycle

From: Ingo Molnar
Date: Mon May 18 2015 - 02:46:12 EST



* Gabriele Mazzotta <gabriele.mzt@xxxxxxxxx> wrote:

> Hi,
>
> I've recently noticed that if I suspend and resume my laptop, I can no
> longer execute turbostat. This is what I get when I try to start it:
> # turbostat
> Could not migrate to CPU 1
> turbostat: re-initialized with num_cpus 4
> Could not migrate to CPU 1
>
> Since everything works as expected with v4.0, I ran a bisection and
> found that commit 3c18d447b3b36a8d ("sched/core: Check for available
> DL bandwidth in cpuset_cpu_inactive()") is the cause of the regression.
>
> I don't know if there's something else affected by that change, but
> I can consistently reproduce the bug with turbostat.
>
> I can provide more info if needed.

Does this commit:

533445c6e533 sched/core: Fix regression in cpuset_cpu_inactive() for suspend

which is already in Linus's tree, and which should be part of -rc4,
fix it? Also attached below.

Thanks,

Ingo

====================>