Skip to contentSkip to conversation

Intel/vpmu: Use Intel VPMU quirk on all family 6 processors

PATCH In review Boris Ostrovsky 4 participants 9 messages May 9, 2013 – May 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Intel/vpmu: Use Intel VPMU quirk on all family 6 processors

Currently only a few Intel models have VPMU workaround turned on. It appears, however, that this issue exists on more models than what is covered by check_pmc_quirk(). Since we don't know exactly which cpus are affected we should turn this workaround on for all family 6 processors.

---
 xen/arch/x86/hvm/vmx/vpmu_core2.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
xen/arch/x86/hvm/vmx/vpmu_core2.c +5 -11
index 9f152b4..15b2036 100644
@@ -65,8 +65,7 @@
 #define PMU_FIXED_WIDTH_MASK     (((1 << PMU_FIXED_WIDTH_BITS) -1) << PMU_FIXED_WIDTH_SHIFT)
 
 /*
- * QUIRK to workaround an issue on Nehalem processors currently seen
- * on family 6 cpus E5520 (model 26) and X7542 (model 46).
+ * QUIRK to workaround an issue on various family 6 cpus.
  * The issue leads to endless PMC interrupt loops on the processor.
  * If the interrupt handler is running and a pmc reaches the value 0, this
  * value remains forever and it triggers immediately a new interrupt after
@@ -79,15 +78,10 @@ bool_t __read_mostly is_pmc_quirk;
 
 static void check_pmc_quirk(void)
 {
-    u8 family = current_cpu_data.x86;
-    u8 cpu_model = current_cpu_data.x86_model;
-    is_pmc_quirk = 0;
-    if ( family == 6 )
-    {
-        if ( cpu_model == 47 || cpu_model == 46 || cpu_model == 42 ||
-             cpu_model == 26 )
-            is_pmc_quirk = 1;
-    }
+    if ( current_cpu_data.x86 == 6 )
+        is_pmc_quirk = 1;
+    else
+        is_pmc_quirk = 0;    
 }
 
 static int core2_get_pmc_count(void);
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 5 lines · Boris Ostrovsky

Currently only a few Intel models have VPMU workaround turned on. It appears, however, that this issue exists on more models than what is covered by check_pmc_quirk(). Since we don't know exactly which cpus are affected we should turn this workaround on for all family 6 processors.

Haitao,

A few weeks ago we had an email thread about this issue
(http://lists.xen.org/archives/html/xen-devel/2013-03/msg02618.html)
Did you have a chance to clarify with your HW folks what this is?

We kept hitting this on various models which is why I am suggesting this patch (and I think it should be considered for 4.3).

-boris

Quoted 40 lines
---
  xen/arch/x86/hvm/vmx/vpmu_core2.c | 16 +++++-----------
  1 file changed, 5 insertions(+), 11 deletions(-)
xen/arch/x86/hvm/vmx/vpmu_core2.c +5 -11
index 9f152b4..15b2036 100644
@@ -65,8 +65,7 @@
  #define PMU_FIXED_WIDTH_MASK     (((1 << PMU_FIXED_WIDTH_BITS) -1) << PMU_FIXED_WIDTH_SHIFT)
 
  /*
- * QUIRK to workaround an issue on Nehalem processors currently seen
- * on family 6 cpus E5520 (model 26) and X7542 (model 46).
+ * QUIRK to workaround an issue on various family 6 cpus.
   * The issue leads to endless PMC interrupt loops on the processor.
   * If the interrupt handler is running and a pmc reaches the value 0, this
   * value remains forever and it triggers immediately a new interrupt after
@@ -79,15 +78,10 @@ bool_t __read_mostly is_pmc_quirk;
 
  static void check_pmc_quirk(void)
  {
-    u8 family = current_cpu_data.x86;
-    u8 cpu_model = current_cpu_data.x86_model;
-    is_pmc_quirk = 0;
-    if ( family == 6 )
-    {
-        if ( cpu_model == 47 || cpu_model == 46 || cpu_model == 42 ||
-             cpu_model == 26 )
-            is_pmc_quirk = 1;
-    }
+    if ( current_cpu_data.x86 == 6 )
+        is_pmc_quirk = 1;
+    else
+        is_pmc_quirk = 0;
  }
 
  static int core2_get_pmc_count(void);
#2 lore raw
Quoted 9 lines · Boris Ostrovsky
Quoted 6 lines · Boris Ostrovsky

Currently only a few Intel models have VPMU workaround turned on. It appears, however, that this issue exists on more models than what is covered by check_pmc_quirk(). Since we don't know exactly which cpus are affected we should turn this workaround on for all family 6 processors.

Quoted 8 lines

Haitao,

A few weeks ago we had an email thread about this issue
(http://lists.xen.org/archives/html/xen-devel/2013-03/msg02618.html)
Did you have a chance to clarify with your HW folks what this is?

We kept hitting this on various models which is why I am suggesting this patch (and I think it should be considered for 4.3).

In principle it's a bug fix, and fine for 4.3. But it would be good to get some feedback from someone at Intel.

-George

#3 lore raw
Quoted 18 lines
Quoted 1 line
Quoted 1 line · George Dunlap
Quoted 15 lines · Boris Ostrovsky
Quoted 6 lines · Boris Ostrovsky

Currently only a few Intel models have VPMU workaround turned on. It appears, however, that this issue exists on more models than what is covered by check_pmc_quirk(). Since we don't know exactly which cpus are affected we should turn this workaround on for all family 6 processors.

Haitao,

A few weeks ago we had an email thread about this issue
(http://lists.xen.org/archives/html/xen-devel/2013-03/msg02618.html)
Did you have a chance to clarify with your HW folks what this is?

Quoted 5 lines
Quoted 2 lines

We kept hitting this on various models which is why I am suggesting this patch (and I think it should be considered for 4.3).

In principle it's a bug fix, and fine for 4.3. But it would be good to get some feedback from someone at Intel.

Intel, anyone???

Thanks, Jan

#4 lore raw
Quoted 16 lines · Jan Beulich
Quoted 16 lines
Quoted 1 line
Quoted 1 line · George Dunlap
Quoted 13 lines · Boris Ostrovsky
Quoted 5 lines · Boris Ostrovsky

Currently only a few Intel models have VPMU workaround turned on. It appears, however, that this issue exists on more models than what is covered by check_pmc_quirk(). Since we don't know exactly which cpus are affected we should turn this workaround on for all family 6 processors.

Haitao,

A few weeks ago we had an email thread about this issue
(http://lists.xen.org/archives/html/xen-devel/2013-03/msg02618.html)
Did you have a chance to clarify with your HW folks what this is?

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

We kept hitting this on various models which is why I am suggesting this patch (and I think it should be considered for 4.3).

In principle it's a bug fix, and fine for 4.3. But it would be good to get some feedback from someone at Intel.

Intel, anyone???

Thanks, Jan

I haven't seen any responses from Intel folks about this issue.

Do we wait for post-4.3?

-boris

#5 lore raw
Quoted 23 lines · Boris Ostrovsky
Quoted 22 lines · Jan Beulich
Quoted 22 lines
Quoted 2 lines
Quoted 2 lines

On 10.05.13 at 11:46, George Dunlap <[email protected]> wrote:

Quoted 9 lines · Boris Ostrovsky
Quoted 5 lines · Boris Ostrovsky

Currently only a few Intel models have VPMU workaround turned on. It appears, however, that this issue exists on more models than what is covered by check_pmc_quirk(). Since we don't know exactly which cpus are affected we should turn this workaround on for all family 6 processors.

Haitao,

Quoted 7 lines

A few weeks ago we had an email thread about this issue
(http://lists.xen.org/archives/html/xen-devel/2013-03/msg02618.html)
Did you have a chance to clarify with your HW folks what this is?

We kept hitting this on various models which is why I am suggesting this
patch (and I think it should be considered for 4.3).

In principle it's a bug fix, and fine for 4.3. But it would be good to get some feedback from someone at Intel.

Quoted 8 lines
Quoted 4 lines

Intel, anyone???

Thanks, Jan

I haven't seen any responses from Intel folks about this issue.

Do we wait for post-4.3?

Our goals at this point:
- Bug-free release
- Awesome release
- On-time release

I take it that the main risk here is that vcpu for some models which would have otherwise worked will not work anymore?

But at his point you *know* many models which don't work without it; so on the whole I'm inclined to say that it's an "accept" on the cost/benefits analysis.

-George

#6 lore raw
Quoted 31 lines · George Dunlap
Quoted 30 lines · Boris Ostrovsky
Quoted 17 lines · Jan Beulich
Quoted 17 lines
Quoted 2 lines
Quoted 2 lines

On 10.05.13 at 11:46, George Dunlap <[email protected]> wrote:

Quoted 13 lines · Boris Ostrovsky
Quoted 5 lines · Boris Ostrovsky

Currently only a few Intel models have VPMU workaround turned on. It appears, however, that this issue exists on more models than what is covered by check_pmc_quirk(). Since we don't know exactly which cpus are affected we should turn this workaround on for all family 6 processors.

Haitao,

A few weeks ago we had an email thread about this issue
(http://lists.xen.org/archives/html/xen-devel/2013-03/msg02618.html)
Did you have a chance to clarify with your HW folks what this is?

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

We kept hitting this on various models which is why I am suggesting this
patch (and I think it should be considered for 4.3).

In principle it's a bug fix, and fine for 4.3. But it would be good to get some feedback from someone at Intel.

Intel, anyone???

Thanks, Jan

I haven't seen any responses from Intel folks about this issue.

Quoted 8 lines
Quoted 1 line

Do we wait for post-4.3?

Our goals at this point:
- Bug-free release
- Awesome release
- On-time release

I take it that the main risk here is that vcpu for some models which would have otherwise worked will not work anymore?

(I assume you meant vpmu, not vcpu). Yes, that would be the main risk.

-boris

Quoted 4 lines

But at his point you *know* many models which don't work without it; so on the whole I'm inclined to say that it's an "accept" on the cost/benefits analysis.

-George

#7 lore raw
In reply to Boris Ostrovsky
Quoted 7 lines
Quoted 1 line
Quoted 1 line

Boris Ostrovsky <[email protected]> 05/30/13 6:32 PM >>>

Quoted 1 line · Jan Beulich

Intel, anyone???

I haven't seen any responses from Intel folks about this issue.

Do we wait for post-4.3?

I'd commit this whenever we get an ack.

Jan

#8 lore raw

Working on getting people's attention, I hope to have a response by tomorrow.

--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
Ph: 303/443-3786

-----Original Message-----
From: Jan Beulich [mailto:[email protected]]
Sent: Thursday, May 30, 2013 10:44 AM
To: [email protected]
Cc: [email protected]; [email protected]; Dugger, Donald D; Dong, Eddie; Nakajima, Jun; [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] [PATCH] Intel/vpmu: Use Intel VPMU quirk on all family 6 processors

Quoted 7 lines
Quoted 1 line
Quoted 1 line

Boris Ostrovsky <[email protected]> 05/30/13 6:32 PM >>>

Quoted 1 line · Jan Beulich

Intel, anyone???

I haven't seen any responses from Intel folks about this issue.

Do we wait for post-4.3?

I'd commit this whenever we get an ack.

Jan