From: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-pm@vger.kernel.org, "Rafael J. Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>, Thomas Gleixner <tglx@linutronix.de>,
Viresh Kumar <viresh.kumar@linaro.org>
Subject: Re: intel_pstate_get_hwp_cap on wrong CPU
Date: Fri, 31 May 2024 04:56:04 -0700 [thread overview]
Message-ID: <3eaf90b63edccb3317968101040510c91b5b2f4e.camel@linux.intel.com> (raw)
In-Reply-To: <20240531110200.CtBSN_p4@linutronix.de>
Hi,
On Fri, 2024-05-31 at 13:02 +0200, Sebastian Andrzej Siewior wrote:
> On 2024-05-29 16:08:19 [-0700], srinivas pandruvada wrote:
> > Hi Sebastian,
> Hi,
>
> > On Wed, 2024-05-29 at 17:57 +0200, Sebastian Andrzej Siewior wrote:
> > > Hi,
> > >
> > > this just popped up:
> > > > [ 6538.614568] unchecked MSR access error: RDMSR from 0x771 at
> > > > rIP:
> >
> > Please check if the attached change fixes?
>
> it should based on the callchain. Let me test it in a few…
>
> Would you mind letting
> /sys/devices/system/cpu/intel_pstate/num_pstates
>
> reporting something sane? Not 4294967285 but 0 for instance? Would
> that
> make sense?
>
It should be some good value, usually less than 50. Do you see this
high number without even triggering condition, which caused warning?
In your system, firmware changed performance notifying via ACPI. That
method is deprecated for a while. You are using Haswell, which has this
support. But deprecated from Skylake.
> …
> > From f85a83508ef029bceaf9192cb648d66f32b61d02 Mon Sep 17 00:00:00
> > 2001
> > From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> > Date: Wed, 29 May 2024 15:30:49 -0700
> > Subject: [PATCH] cpufreq: intel_pstate: Fix unchecked HWP MSR
> > access
> >
> > HWP MSR 0x771 can be only read on a CPU which supports HWP and
> > enabled.
> > Hence intel_pstate_get_hwp_cap() can only be called when hwp_active
> > is
> > true.
> >
> > Reported-by: Sebastian Reichel <sebastian.reichel@collabora.com>
>
> Did Sebastian _Reichel_ report it, too?
My mistake. I picked up wrong Sebastian. Sorry.
Thanks,
Srinivas
>
> > Closes:
> > https://lore.kernel.org/linux-pm/20240529155740.Hq2Hw7be@linutronix.de/
>
> Because this my report ;)
>
> > Fixes: e8217b4bece3 ("cpufreq: intel_pstate: Update the maximum CPU
> > frequency consistently")
> > Signed-off-by: Srinivas Pandruvada
> > <srinivas.pandruvada@linux.intel.com>
>
> Sebastian
next prev parent reply other threads:[~2024-05-31 11:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 15:57 intel_pstate_get_hwp_cap on wrong CPU Sebastian Andrzej Siewior
2024-05-29 23:08 ` srinivas pandruvada
2024-05-31 11:02 ` Sebastian Andrzej Siewior
2024-05-31 11:56 ` srinivas pandruvada [this message]
2024-05-31 14:01 ` Sebastian Andrzej Siewior
2024-05-31 22:27 ` srinivas pandruvada
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=3eaf90b63edccb3317968101040510c91b5b2f4e.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=bigeasy@linutronix.de \
--cc=lenb@kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=tglx@linutronix.de \
--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