All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: Small Fix for cmci threashold set value
@ 2010-03-30  6:08 Ke, Liping
  0 siblings, 0 replies; only message in thread
From: Ke, Liping @ 2010-03-30  6:08 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel


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

Hi, Keir

Below is a small patch for fixing CMCI Threshold set problem. When generating
new threshold value, we must firstly clean old value before or the new set value.

Thanks& Regards,
Criping


Small fix for CMCI Threshold set problem. When generating new threshold value,
we must firstly clean old value before or the new set value since the new
value might be different with the old (BIOS might pre-set some threshold).

Signed-off-by: Liping Ke<liping.ke@intel.com>
Signed-off-by: Ying Huang<ying.huang@intel.com>

diff -r 02e9bafc1f62 xen/arch/x86/cpu/mcheck/mce_intel.c
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c  Tue Mar 30 13:29:53 2010 +0800
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c        Tue Mar 30 13:41:03 2010 +0800
@@ -824,6 +824,8 @@
         clear_bit(i, __get_cpu_var(mce_banks_owned));
         goto out;
     }
+
+    val &= ~CMCI_THRESHOLD_MASK;
     wrmsrl(msr, val | CMCI_EN | CMCI_THRESHOLD);
     rdmsrl(msr, val);


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

[-- Attachment #2: cmci_fix.patch --]
[-- Type: application/octet-stream, Size: 739 bytes --]

Small fix for CMCI Threshold set problem. When generating new threshold value,
we must firstly clean old value before or the new set value since the new
value might be different with the old (BIOS might pre-set some threshold).

Signed-off-by: Liping Ke<liping.ke@intel.com>
Signed-off-by: Ying Huang<ying.huang@intel.com>

diff -r 02e9bafc1f62 xen/arch/x86/cpu/mcheck/mce_intel.c
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c	Tue Mar 30 13:29:53 2010 +0800
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c	Tue Mar 30 13:41:03 2010 +0800
@@ -824,6 +824,8 @@
         clear_bit(i, __get_cpu_var(mce_banks_owned));
         goto out;
     }
+
+    val &= ~CMCI_THRESHOLD_MASK;
     wrmsrl(msr, val | CMCI_EN | CMCI_THRESHOLD);
     rdmsrl(msr, val);
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-30  6:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30  6:08 [PATCH] x86: Small Fix for cmci threashold set value Ke, Liping

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.