mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
[PATCH] x86_64: Make it clear in machine checks that it's an hardware problem
Hopefully the users will take the hint. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
2cbc9ee35c
commit
4855170f98
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,7 @@ void mce_log(struct mce *mce)
|
||||||
static void print_mce(struct mce *m)
|
static void print_mce(struct mce *m)
|
||||||
{
|
{
|
||||||
printk(KERN_EMERG "\n"
|
printk(KERN_EMERG "\n"
|
||||||
|
KERN_EMERG "HARDWARE ERROR\n"
|
||||||
KERN_EMERG
|
KERN_EMERG
|
||||||
"CPU %d: Machine Check Exception: %16Lx Bank %d: %016Lx\n",
|
"CPU %d: Machine Check Exception: %16Lx Bank %d: %016Lx\n",
|
||||||
m->cpu, m->mcgstatus, m->bank, m->status);
|
m->cpu, m->mcgstatus, m->bank, m->status);
|
||||||
|
@ -110,6 +111,9 @@ static void print_mce(struct mce *m)
|
||||||
if (m->misc)
|
if (m->misc)
|
||||||
printk("MISC %Lx ", m->misc);
|
printk("MISC %Lx ", m->misc);
|
||||||
printk("\n");
|
printk("\n");
|
||||||
|
printk(KERN_EMERG "This is not a software problem!\n");
|
||||||
|
printk(KERN_EMERG
|
||||||
|
"Run through mcelog --ascii to decode and contact your hardware vendor\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mce_panic(char *msg, struct mce *backup, unsigned long start)
|
static void mce_panic(char *msg, struct mce *backup, unsigned long start)
|
||||||
|
|
Loading…
Add table
Reference in a new issue