From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: Qian Cai <cai@lca.pw>, "Rafael J. Wysocki" <rafael@kernel.org>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Chen Yu <yu.c.chen@intel.com>, Len Brown <lenb@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>,
Borislav Petkov <bp@alien8.de>,
Thomas Gleixner <tglx@linutronix.de>,
Linux PM <linux-pm@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: "Force HWP min perf before offline" triggers unchecked MSR access errors
Date: Tue, 29 Oct 2019 15:13:30 -0700 [thread overview]
Message-ID: <53fc01bf9ef25012a1a43b87954b62a02101d85c.camel@linux.intel.com> (raw)
In-Reply-To: <A94C23C3-E6B9-4390-B380-C49D87731D81@lca.pw>
[-- Attachment #1: Type: text/plain, Size: 712 bytes --]
On Tue, 2019-10-29 at 18:01 -0400, Qian Cai wrote:
> > On Oct 29, 2019, at 5:47 PM, Rafael J. Wysocki <rafael@kernel.org>
> > wrote:
> >
> > The MSR_IA32_ENERGY_PERF_BIAS MSR appears to be not present, which
> > should be caught by the X86_FEATURE_EPB check in
> > intel_pstate_set_epb().
> >
> > Do you run this in a guest perchance?
>
> No, it is a baremetal HPE server. The dmesg does say something like
> energy perf bias changed from performance to normal, and the cpuflag
> contains epb which I thought that would pass the feature check? I
> could upload the whole dmesg a bit later if that helps.
Try the attached change. You have a Skylake server with no EPP support.
This is odd.
Thanks,
Srinivas
[-- Attachment #2: epb_power.diff --]
[-- Type: text/x-patch, Size: 1025 bytes --]
diff --git a/drivers/acpi/processor_thermal.c b/drivers/acpi/processor_thermal.c
index ec2638f1df4f..f70f746ed58d 100644
--- a/drivers/acpi/processor_thermal.c
+++ b/drivers/acpi/processor_thermal.c
@@ -130,6 +130,7 @@ void acpi_thermal_cpufreq_init(int cpu)
struct acpi_processor *pr = per_cpu(processors, cpu);
int ret;
+ memset(&pr->thermal_req, 0, sizeof(pr->thermal_req));
ret = dev_pm_qos_add_request(get_cpu_device(cpu),
&pr->thermal_req, DEV_PM_QOS_MAX_FREQUENCY,
INT_MAX);
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 9f02de9a1b47..eab8b048dc9f 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -851,7 +851,7 @@ static void intel_pstate_hwp_force_min_perf(int cpu)
if (boot_cpu_has(X86_FEATURE_HWP_EPP))
value |= HWP_ENERGY_PERF_PREFERENCE(HWP_EPP_POWERSAVE);
else
- intel_pstate_set_epb(cpu, HWP_EPP_BALANCE_POWERSAVE);
+ intel_pstate_set_epb(cpu, 0x0F);
wrmsrl_on_cpu(cpu, MSR_HWP_REQUEST, value);
}
next prev parent reply other threads:[~2019-10-29 22:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-29 20:55 "Force HWP min perf before offline" triggers unchecked MSR access errors Qian Cai
2019-10-29 21:47 ` Rafael J. Wysocki
2019-10-29 22:01 ` Qian Cai
2019-10-29 22:13 ` Srinivas Pandruvada [this message]
2019-10-29 22:15 ` 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=53fc01bf9ef25012a1a43b87954b62a02101d85c.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=bp@alien8.de \
--cc=cai@lca.pw \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=rafael@kernel.org \
--cc=tglx@linutronix.de \
--cc=viresh.kumar@linaro.org \
--cc=yu.c.chen@intel.com \
/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