From: Philippe Longepe <philippe.longepe@linux.intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Josh Boyer <jwboyer@fedoraproject.org>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: 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: Thu, 17 Mar 2016 15:34:14 +0100 [thread overview]
Message-ID: <56EAC066.4080203@linux.intel.com> (raw)
In-Reply-To: <1704778.QLUl50G1uZ@vostro.rjw.lan>
Hi,
The wmsrl is supposed to write on the MSR corresponding to the cpu that
is executing it.
However, it seems that the following commit done by Joe Konno already
fixed this bug on BYT.
0dd23f94251f49da99a6cbfb22418b2d757d77d6
Now, we need to figure out why the wmsrl is not executed on the current cpu!
Regards,
Philippe
On 17/03/2016 15:07, Rafael J. Wysocki 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)
>
next prev parent reply other threads:[~2016-03-17 14:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 13:02 intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Josh Boyer
2016-03-17 14:07 ` Rafael J. Wysocki
2016-03-17 14:34 ` Philippe Longepe [this message]
2016-03-17 16:44 ` Josh Boyer
2016-03-18 0:20 ` Rafael J. Wysocki
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=56EAC066.4080203@linux.intel.com \
--to=philippe.longepe@linux.intel.com \
--cc=jwboyer@fedoraproject.org \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--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