* [PATCH] cpufreq: intel_pstate: disable HWP notifications
@ 2016-02-25 23:09 Srinivas Pandruvada
2016-02-25 23:18 ` Rafael J. Wysocki
0 siblings, 1 reply; 5+ messages in thread
From: Srinivas Pandruvada @ 2016-02-25 23:09 UTC (permalink / raw)
To: rjw, len.brown; +Cc: linux-pm, Srinivas Pandruvada
Disable HWP Interrupt notification before enabling HWP. Since we don't
have HWP interrupt handling for possible performance interrupts, there
is not much use of enabling HWP interrupts.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
drivers/cpufreq/intel_pstate.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index f4d85c2..80ea548 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -532,6 +532,9 @@ static void __init intel_pstate_sysfs_expose_params(void)
static void intel_pstate_hwp_enable(struct cpudata *cpudata)
{
+ /* First disable HWP notification interrupt as we don't process them */
+ wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00);
+
wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1);
}
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] cpufreq: intel_pstate: disable HWP notifications
2016-02-25 23:09 [PATCH] cpufreq: intel_pstate: disable HWP notifications Srinivas Pandruvada
@ 2016-02-25 23:18 ` Rafael J. Wysocki
2016-02-25 23:20 ` Srinivas Pandruvada
0 siblings, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki @ 2016-02-25 23:18 UTC (permalink / raw)
To: Srinivas Pandruvada; +Cc: len.brown, linux-pm
On Thursday, February 25, 2016 03:09:31 PM Srinivas Pandruvada wrote:
> Disable HWP Interrupt notification before enabling HWP. Since we don't
> have HWP interrupt handling for possible performance interrupts, there
> is not much use of enabling HWP interrupts.
>
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
The patch is fine, but are there any known systems where it fixes any
functional issues just for the record?
Rafael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cpufreq: intel_pstate: disable HWP notifications
2016-02-25 23:18 ` Rafael J. Wysocki
@ 2016-02-25 23:20 ` Srinivas Pandruvada
2016-02-26 1:28 ` Rafael J. Wysocki
0 siblings, 1 reply; 5+ messages in thread
From: Srinivas Pandruvada @ 2016-02-25 23:20 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: len.brown, linux-pm
On Fri, 2016-02-26 at 00:18 +0100, Rafael J. Wysocki wrote:
> On Thursday, February 25, 2016 03:09:31 PM Srinivas Pandruvada wrote:
> > Disable HWP Interrupt notification before enabling HWP. Since we
> > don't
> > have HWP interrupt handling for possible performance interrupts,
> > there
> > is not much use of enabling HWP interrupts.
> >
> > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel
> > .com>
>
> The patch is fine, but are there any known systems where it fixes any
> functional issues just for the record?
We don't know whether it fixes any functional issue. But it was set on
some system on boot. I worry that this may cause flooding of interrupt
during boot if there are some thermal issues.
Thanks,
Srinivas
>
> Rafael
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cpufreq: intel_pstate: disable HWP notifications
2016-02-25 23:20 ` Srinivas Pandruvada
@ 2016-02-26 1:28 ` Rafael J. Wysocki
2016-02-27 0:01 ` Rafael J. Wysocki
0 siblings, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki @ 2016-02-26 1:28 UTC (permalink / raw)
To: Srinivas Pandruvada; +Cc: len.brown, linux-pm
On Thursday, February 25, 2016 03:20:42 PM Srinivas Pandruvada wrote:
> On Fri, 2016-02-26 at 00:18 +0100, Rafael J. Wysocki wrote:
> > On Thursday, February 25, 2016 03:09:31 PM Srinivas Pandruvada wrote:
> > > Disable HWP Interrupt notification before enabling HWP. Since we
> > > don't
> > > have HWP interrupt handling for possible performance interrupts,
> > > there
> > > is not much use of enabling HWP interrupts.
> > >
> > > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel
> > > .com>
> >
> > The patch is fine, but are there any known systems where it fixes any
> > functional issues just for the record?
>
> We don't know whether it fixes any functional issue.
OK
> But it was set on some system on boot. I worry that this may cause flooding
> of interrupt during boot if there are some thermal issues.
It obviously may lead to problems, which is why the patch is needed.
Thanks,
Rafael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cpufreq: intel_pstate: disable HWP notifications
2016-02-26 1:28 ` Rafael J. Wysocki
@ 2016-02-27 0:01 ` Rafael J. Wysocki
0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2016-02-27 0:01 UTC (permalink / raw)
To: Srinivas Pandruvada; +Cc: len.brown, linux-pm
On Friday, February 26, 2016 02:28:00 AM Rafael J. Wysocki wrote:
> On Thursday, February 25, 2016 03:20:42 PM Srinivas Pandruvada wrote:
> > On Fri, 2016-02-26 at 00:18 +0100, Rafael J. Wysocki wrote:
> > > On Thursday, February 25, 2016 03:09:31 PM Srinivas Pandruvada wrote:
> > > > Disable HWP Interrupt notification before enabling HWP. Since we
> > > > don't
> > > > have HWP interrupt handling for possible performance interrupts,
> > > > there
> > > > is not much use of enabling HWP interrupts.
> > > >
> > > > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel
> > > > .com>
> > >
> > > The patch is fine, but are there any known systems where it fixes any
> > > functional issues just for the record?
> >
> > We don't know whether it fixes any functional issue.
>
> OK
>
> > But it was set on some system on boot. I worry that this may cause flooding
> > of interrupt during boot if there are some thermal issues.
>
> It obviously may lead to problems, which is why the patch is needed.
I've queued it up for 4.6, thanks!
Rafael
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-02-27 0:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 23:09 [PATCH] cpufreq: intel_pstate: disable HWP notifications Srinivas Pandruvada
2016-02-25 23:18 ` Rafael J. Wysocki
2016-02-25 23:20 ` Srinivas Pandruvada
2016-02-26 1:28 ` Rafael J. Wysocki
2016-02-27 0:01 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).