lkml.org 
[lkml]   [2002]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] bluesmoke/MCE support optional

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.062 / U:0.064 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site