login
Header Space

 
 

[PATCH] x86: print out buggy mptable

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>
Cc: kernel list <linux-kernel@...>
Date: Monday, April 7, 2008 - 2:36 pm

print out buggy mptable, instead of skipping it quietly

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

Index: linux-2.6/arch/x86/kernel/mpparse.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/mpparse.c
+++ linux-2.6/arch/x86/kernel/mpparse.c
@@ -391,6 +391,10 @@ static int __init smp_read_mpc(struct mp
 			}
 		default:
 			{
+				/* wrong mptable */
+				printk(KERN_ERR "type %x\n", *mpt);
+				printk(KERN_ERR "Your mptable is wrong, contact your HW vendor!\n");
+				print_hex_dump(KERN_ERR, "  ", DUMP_PREFIX_ADDRESS, 16, 1, mpc, mpc->mpc_length, 1);
 				count = mpc->mpc_length;
 				break;
 			}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: print out buggy mptable, Yinghai Lu, (Mon Apr 7, 2:36 pm)
Re: [PATCH] x86: print out buggy mptable, Ingo Molnar, (Mon Apr 7, 2:47 pm)
speck-geostationary