WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] x86: Small Fix for cmci threashold set value

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] x86: Small Fix for cmci threashold set value
From: "Ke, Liping" <liping.ke@xxxxxxxxx>
Date: Tue, 30 Mar 2010 14:08:19 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 29 Mar 2010 23:10:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcrPz2TO9+/Vhon7RoeHy8hAMiFE6w==
Thread-topic: [PATCH] x86: Small Fix for cmci threashold set value

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@xxxxxxxxx>

Signed-off-by: Ying Huang<ying.huang@xxxxxxxxx>

 

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: cmci_fix.patch
Description: cmci_fix.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86: Small Fix for cmci threashold set value, Ke, Liping <=