All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Intel/vpmu: Use Intel VPMU quirk on all family 6 processors
@ 2013-05-09 20:34 Boris Ostrovsky
  2013-05-09 20:45 ` Boris Ostrovsky
  0 siblings, 1 reply; 12+ messages in thread
From: Boris Ostrovsky @ 2013-05-09 20:34 UTC (permalink / raw)
  To: dietmar.hahn, maillists.shan, jun.nakajima, jbeulich
  Cc: boris.ostrovsky, xen-devel, donald.d.dugger, konrad.wilk

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.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
 xen/arch/x86/hvm/vmx/vpmu_core2.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/xen/arch/x86/hvm/vmx/vpmu_core2.c b/xen/arch/x86/hvm/vmx/vpmu_core2.c
index 9f152b4..15b2036 100644
--- a/xen/arch/x86/hvm/vmx/vpmu_core2.c
+++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c
@@ -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);
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread
* Re: [PATCH] Intel/vpmu: Use Intel VPMU quirk on all family 6 processors
@ 2013-05-31  3:53 Auld, Will
  2013-05-31  8:04 ` Jan Beulich
  0 siblings, 1 reply; 12+ messages in thread
From: Auld, Will @ 2013-05-31  3:53 UTC (permalink / raw)
  To: George.Dunlap@eu.citrix.com, boris.ostrovsky@oracle.com,
	JBeulich@suse.com, Dugger, Donald D, Dong, Eddie, Nakajima, Jun,
	Shan, Haitao
  Cc: Auld, Will, xen-devel@lists.xensource.com


[-- Attachment #1.1: Type: text/plain, Size: 706 bytes --]

Jan, George, et. al.,



Regarding the recent discussion on "[Xen-devel] [PATCH] Intel/vpmu: Use Intel VPMU quirk on all family 6 processors" I believe that George's suggestion is the proper approach for Xen 4.3. Extending the check_pmc_quirk() to return true for all P6 family processors may be overkill but should cover the issue until we have a better handle on it.



Internally, we are beginning some characterization work but the outcome is uncertain and is likely to take some time. In addition it is unlikely to materially change current issues. So regardless of the outcome, if any, we should move forward with the expanded coverage in check_pmc_quirk().



Thanks,



Will




[-- Attachment #1.2: Type: text/html, Size: 3148 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-05-31  8:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 20:34 [PATCH] Intel/vpmu: Use Intel VPMU quirk on all family 6 processors Boris Ostrovsky
2013-05-09 20:45 ` Boris Ostrovsky
2013-05-10  9:46   ` George Dunlap
2013-05-16 12:30     ` Jan Beulich
2013-05-30 16:33       ` Boris Ostrovsky
2013-05-30 16:38         ` George Dunlap
2013-05-30 16:44           ` Boris Ostrovsky
2013-05-30 16:44         ` Jan Beulich
2013-05-30 16:50           ` Dugger, Donald D
  -- strict thread matches above, loose matches on Subject: below --
2013-05-31  3:53 Auld, Will
2013-05-31  8:04 ` Jan Beulich
2013-05-31  8:11   ` Auld, Will

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.