public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bluesmoke/MCE support optional
@ 2002-02-28 15:01 Paul Gortmaker
  2002-03-01  0:11 ` Alan Cox
  2002-03-01  2:47 ` Mike Fedyk
  0 siblings, 2 replies; 12+ messages in thread
From: Paul Gortmaker @ 2002-02-28 15:01 UTC (permalink / raw)
  To: marcelo, alan; +Cc: linux-kernel


Meant to do this a while ago.  Could do it via adding "nosmoke.c"  :-)
(similar to fs/noquot.c) instead of #ifdef in bluesmoke.c, if somebody
had a strong preference one way or the other.

Patch is against 2.4.18, complete with Aunt Tillie(tm) help text, etc.

Paul.


--- Documentation/Configure.help~	Sat Feb  2 06:50:31 2002
+++ Documentation/Configure.help	Thu Feb 28 09:01:28 2002
@@ -17450,6 +17450,17 @@
   The module is called shwdt.o. If you want to compile it as a module,
   say M here and read Documentation/modules.txt.
 	      
+Machine Check Exception
+CONFIG_X86_MCE
+  Machine Check Exception support allows the processor to notify the
+  kernel if it detects a problem (e.g. overheating, component failure).
+  The action the kernel takes depends on the severity of the problem, 
+  ranging from a warning message on the console, to halting the machine.
+  Your processor must be a Pentium or newer to support this - check the 
+  flags in /proc/cpuinfo for mce.  Note that some older Pentium systems
+  have a design flaw which leads to false MCE events - for these and
+  old non-MCE processors (386, 486), say N.  Otherwise say Y.
+
 Toshiba Laptop support
 CONFIG_TOSHIBA
   This adds a driver to safely access the System Management Mode of
--- arch/i386/defconfig~	Sat Feb  2 06:43:29 2002
+++ arch/i386/defconfig	Thu Feb 28 08:38:53 2002
@@ -49,6 +49,7 @@
 CONFIG_X86_GOOD_APIC=y
 CONFIG_X86_PGE=y
 CONFIG_X86_USE_PPRO_CHECKSUM=y
+CONFIG_X86_MCE=y
 # CONFIG_TOSHIBA is not set
 # CONFIG_I8K is not set
 # CONFIG_MICROCODE is not set
--- arch/i386/config.in~	Sat Feb  2 06:50:32 2002
+++ arch/i386/config.in	Thu Feb 28 08:37:25 2002
@@ -154,6 +154,9 @@
    define_bool CONFIG_X86_TSC y
    define_bool CONFIG_X86_USE_PPRO_CHECKSUM y
 fi
+
+bool 'Machine Check Exception' CONFIG_X86_MCE
+
 tristate 'Toshiba Laptop support' CONFIG_TOSHIBA
 tristate 'Dell laptop support' CONFIG_I8K
 
--- arch/i386/kernel/bluesmoke.c~	Sat Feb  2 06:43:30 2002
+++ arch/i386/kernel/bluesmoke.c	Thu Feb 28 09:18:35 2002
@@ -3,9 +3,12 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
+#include <linux/config.h>
 #include <asm/processor.h> 
 #include <asm/msr.h>
 
+#ifdef CONFIG_X86_MCE
+
 static int mce_disabled __initdata = 0;
 
 /*
@@ -247,3 +250,8 @@
 
 __setup("nomce", mcheck_disable);
 __setup("mce", mcheck_enable);
+
+#else
+asmlinkage void do_machine_check(struct pt_regs * regs, long error_code) {}
+void __init mcheck_init(struct cpuinfo_x86 *c) {}
+#endif



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

end of thread, other threads:[~2002-03-03 13:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-28 15:01 [PATCH] bluesmoke/MCE support optional Paul Gortmaker
2002-03-01  0:11 ` Alan Cox
2002-03-01  7:18   ` Paul Gortmaker
2002-03-01 11:51     ` Alan Cox
2002-03-01  9:56   ` Dave Jones
2002-03-01  2:47 ` Mike Fedyk
2002-03-01 12:31   ` Alan Cox
2002-03-01 12:55     ` Dave Jones
2002-03-03 10:57       ` Paul Gortmaker
2002-03-03 13:53         ` Alan Cox
2002-03-01 15:10     ` Marcelo Tosatti
2002-03-01 17:29       ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox