From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Josh Boyer <jwboyer@fedoraproject.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Philippe Longepe <philippe.longepe@linux.intel.com>,
Len Brown <lenb@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>,
Linux PM list <linux-pm@vger.kernel.org>,
"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c
Date: Fri, 18 Mar 2016 01:20:59 +0100 [thread overview]
Message-ID: <10670722.U2p4NnYGsS@vostro.rjw.lan> (raw)
In-Reply-To: <CA+5PVA4iMHGEhSjDOwR_JB2i+wL2o6v7-aTErfsJ5nqFHp+JMA@mail.gmail.com>
On Thursday, March 17, 2016 12:44:54 PM Josh Boyer wrote:
> On Thu, Mar 17, 2016 at 10:07 AM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > On Thursday, March 17, 2016 09:02:29 AM Josh Boyer wrote:
> >> Hello,
> >
> > Hi,
> >
> >> I have an Intel Atom based NUC that is producing the following
> >> backtraces on boot of Linus' tree as of last evening. This does not
> >> happen with a tree with top level commit 271ecc5253e2, but does happen
> >> when using the tree mentioned in the subject with top level commit
> >> 63e30271b04c.
> >>
> >> The first backtrace appears to be a warning because the intel_pstate
> >> driver is calling wrmsrl_on_cpu when interrupts are disabled? Not
> >> sure on that one.
> >>
> >> The second backtrace is a lockdep report. Both are from the same boot.
> >
> > OK, thanks for the report.
> >
> > Can you please try the patch below?
> >
> > I'm actually unsure if we can do that safely in general for Atom because
> > of the initialization, but that's what Core does anyway.
> >
> > Srinivas, Philippe, why exactly do we need the wrmsrl_on_cpu() in
> > atom_set_pstate()? core_set_pstate() uses wrmsrl() and seems to be doing fine.
> >
> > ---
> > drivers/cpufreq/intel_pstate.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > Index: linux-pm/drivers/cpufreq/intel_pstate.c
> > ===================================================================
> > --- linux-pm.orig/drivers/cpufreq/intel_pstate.c
> > +++ linux-pm/drivers/cpufreq/intel_pstate.c
> > @@ -587,7 +587,7 @@ static void atom_set_pstate(struct cpuda
> >
> > val |= vid;
> >
> > - wrmsrl_on_cpu(cpudata->cpu, MSR_IA32_PERF_CTL, val);
> > + wrmsrl(MSR_IA32_PERF_CTL, val);
> > }
> >
> > static int silvermont_get_scaling(void)
> >
>
> I applied this on top of commit 09fd671ccb24 and the backtrace and
> lockdep report both go away. So yes, this seems to clear up the
> issue. I tested it on a variety of different CPU types and didn't
> notice anything wrong on them either.
The problems may show up during initialization and cleanup where one CPU
may be running code trying to configure a different one. In those cases
wrmsrl_on_cpu() needs to be used.
Let me cut a patch taking that into account.
Thanks,
Rafael
next prev parent reply other threads:[~2016-03-18 0:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 13:02 Josh Boyer
2016-03-17 14:07 ` Rafael J. Wysocki
2016-03-17 14:34 ` Philippe Longepe
2016-03-17 16:44 ` Josh Boyer
2016-03-18 0:20 ` Rafael J. Wysocki [this message]
2016-03-18 12:37 ` Josh Boyer
2016-03-18 14:36 ` Rafael J. Wysocki
2016-03-18 16:13 ` Stephane Gasparini
2016-03-18 17:52 ` Srinivas Pandruvada
2016-03-18 18:32 ` Stephane Gasparini
2016-03-18 21:44 ` Rafael J. Wysocki
2016-03-21 9:31 ` Stephane Gasparini
2016-03-21 14:09 ` Rafael J. Wysocki
2016-03-21 9:28 ` Stephane Gasparini
2016-03-21 14:11 ` Rafael J. Wysocki
2016-03-21 18:58 ` Srinivas Pandruvada
2016-03-21 22:02 ` Rafael J. Wysocki
2016-03-18 17:35 ` Josh Boyer
2016-03-18 22:23 ` 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=10670722.U2p4NnYGsS@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=jwboyer@fedoraproject.org \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=philippe.longepe@linux.intel.com \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=viresh.kumar@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
all inboxes | Powered by JetHome®