* [PATCH] i386 mce check capability
@ 2007-04-03 12:49 Joachim Deguara
0 siblings, 0 replies; only message in thread
From: Joachim Deguara @ 2007-04-03 12:49 UTC (permalink / raw)
To: discuss, Langsdorf, Mark, linux-kernel, Nagendra, Bhavana
[-- Attachment #1: Type: text/plain, Size: 181 bytes --]
Currently the i386 architecture checks the family for mce capability and this removes that and uses the CPUID information. Tested on a K8 revE and a family10h processor.
-Joachim
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: i386_mce_check_capability.patch --]
[-- Type: text/x-patch; name=i386_mce_check_capability.patch, Size: 1188 bytes --]
This eliminates checking of a set AMD procesor family if mce is
allowed and relies on the information being in CPUID.
Signed-off-by: Joachim Deguara <joachim.deguara@amd.com>
Index: 2.6-linus-git/arch/i386/kernel/cpu/mcheck/mce.c
===================================================================
--- 2.6-linus-git.orig/arch/i386/kernel/cpu/mcheck/mce.c
+++ 2.6-linus-git/arch/i386/kernel/cpu/mcheck/mce.c
@@ -38,8 +38,7 @@ void mcheck_init(struct cpuinfo_x86 *c)
switch (c->x86_vendor) {
case X86_VENDOR_AMD:
- if (c->x86==6 || c->x86==15)
- amd_mcheck_init(c);
+ amd_mcheck_init(c);
break;
case X86_VENDOR_INTEL:
Index: 2.6-linus-git/arch/i386/kernel/cpu/mcheck/k7.c
===================================================================
--- 2.6-linus-git.orig/arch/i386/kernel/cpu/mcheck/k7.c
+++ 2.6-linus-git/arch/i386/kernel/cpu/mcheck/k7.c
@@ -75,6 +75,9 @@ void amd_mcheck_init(struct cpuinfo_x86
machine_check_vector = k7_machine_check;
wmb();
+ if (!cpu_has(c, X86_FEATURE_MCE))
+ return;
+
printk (KERN_INFO "Intel machine check architecture supported.\n");
rdmsr (MSR_IA32_MCG_CAP, l, h);
if (l & (1<<8)) /* Control register present ? */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-03 12:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-03 12:49 [PATCH] i386 mce check capability Joachim Deguara
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.