Loading Documentation/x86_64/boot-options.txt +5 −0 Original line number Original line Diff line number Diff line Loading @@ -11,6 +11,11 @@ Machine check If your BIOS doesn't do that it's a good idea to enable though If your BIOS doesn't do that it's a good idea to enable though to make sure you log even machine check events that result to make sure you log even machine check events that result in a reboot. in a reboot. mce=tolerancelevel (number) 0: always panic, 1: panic if deadlock possible, 2: try to avoid panic, 3: never panic or exit (for testing) default is 1 Can be also set using sysfs which is preferable. nomce (for compatibility with i386): same as mce=off nomce (for compatibility with i386): same as mce=off Loading arch/x86_64/kernel/mce.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include <linux/fs.h> #include <linux/fs.h> #include <linux/cpu.h> #include <linux/cpu.h> #include <linux/percpu.h> #include <linux/percpu.h> #include <linux/ctype.h> #include <asm/processor.h> #include <asm/processor.h> #include <asm/msr.h> #include <asm/msr.h> #include <asm/mce.h> #include <asm/mce.h> Loading Loading @@ -489,6 +490,7 @@ static int __init mcheck_disable(char *str) /* mce=off disables machine check. Note you can reenable it later /* mce=off disables machine check. Note you can reenable it later using sysfs. using sysfs. mce=TOLERANCELEVEL (number, see above) mce=bootlog Log MCEs from before booting. Disabled by default to work mce=bootlog Log MCEs from before booting. Disabled by default to work around buggy BIOS that leave bogus MCEs. */ around buggy BIOS that leave bogus MCEs. */ static int __init mcheck_enable(char *str) static int __init mcheck_enable(char *str) Loading @@ -499,6 +501,8 @@ static int __init mcheck_enable(char *str) mce_dont_init = 1; mce_dont_init = 1; else if (!strcmp(str, "bootlog")) else if (!strcmp(str, "bootlog")) mce_bootlog = 1; mce_bootlog = 1; else if (isdigit(str[0])) get_option(&str, &tolerant); else else printk("mce= argument %s ignored. Please use /sys", str); printk("mce= argument %s ignored. Please use /sys", str); return 0; return 0; Loading Loading
Documentation/x86_64/boot-options.txt +5 −0 Original line number Original line Diff line number Diff line Loading @@ -11,6 +11,11 @@ Machine check If your BIOS doesn't do that it's a good idea to enable though If your BIOS doesn't do that it's a good idea to enable though to make sure you log even machine check events that result to make sure you log even machine check events that result in a reboot. in a reboot. mce=tolerancelevel (number) 0: always panic, 1: panic if deadlock possible, 2: try to avoid panic, 3: never panic or exit (for testing) default is 1 Can be also set using sysfs which is preferable. nomce (for compatibility with i386): same as mce=off nomce (for compatibility with i386): same as mce=off Loading
arch/x86_64/kernel/mce.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include <linux/fs.h> #include <linux/fs.h> #include <linux/cpu.h> #include <linux/cpu.h> #include <linux/percpu.h> #include <linux/percpu.h> #include <linux/ctype.h> #include <asm/processor.h> #include <asm/processor.h> #include <asm/msr.h> #include <asm/msr.h> #include <asm/mce.h> #include <asm/mce.h> Loading Loading @@ -489,6 +490,7 @@ static int __init mcheck_disable(char *str) /* mce=off disables machine check. Note you can reenable it later /* mce=off disables machine check. Note you can reenable it later using sysfs. using sysfs. mce=TOLERANCELEVEL (number, see above) mce=bootlog Log MCEs from before booting. Disabled by default to work mce=bootlog Log MCEs from before booting. Disabled by default to work around buggy BIOS that leave bogus MCEs. */ around buggy BIOS that leave bogus MCEs. */ static int __init mcheck_enable(char *str) static int __init mcheck_enable(char *str) Loading @@ -499,6 +501,8 @@ static int __init mcheck_enable(char *str) mce_dont_init = 1; mce_dont_init = 1; else if (!strcmp(str, "bootlog")) else if (!strcmp(str, "bootlog")) mce_bootlog = 1; mce_bootlog = 1; else if (isdigit(str[0])) get_option(&str, &tolerant); else else printk("mce= argument %s ignored. Please use /sys", str); printk("mce= argument %s ignored. Please use /sys", str); return 0; return 0; Loading