Mailing List Archive

[xen-unstable] mcheck: Small fix for CMCI Threshold set problem.
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1269934354 -3600
# Node ID af86222ddaeb157c4149afcb228078ec9908d963
# Parent 4715e8e7eca6a741d171bf26d880d72c3a0878e8
mcheck: 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>
---
xen/arch/x86/cpu/mcheck/mce_intel.c | 2 ++
1 files changed, 2 insertions(+)

diff -r 4715e8e7eca6 -r af86222ddaeb xen/arch/x86/cpu/mcheck/mce_intel.c
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c Tue Mar 30 08:31:52 2010 +0100
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c Tue Mar 30 08:32:34 2010 +0100
@@ -824,6 +824,8 @@ static int do_cmci_discover(int i)
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);


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