Re: [PATCH] kdump: Fix for boot problems on SMP

Akinobu Mita
2004-11-19T17:55:04Z

On Thursday 18 November 2004 23:08, Hariprasad Nellitheertha wrote:

> There was a buggy (and unnecessary) reserve_bootmem call in the kdump
> call which was causing hangs during early on some SMP machines. The
> attached patch removes that.

Thanks! I also had the same problem.

BTW, If the first kernel enabled CONFIG_DISCONTIGMEM, the second kernel could
not boot. since crash_reserve_bootmem() never called anywhere.

--- 2.6-mm/arch/i386/mm/discontig.c.orig 2004-11-20 00:14:42.000000000 +0900
+++ 2.6-mm/arch/i386/mm/discontig.c 2004-11-20 00:39:38.000000000 +0900
@@ -32,6 +32,7 @@
#include <asm/e820.h>
#include <asm/setup.h>
#include <asm/mmzone.h>
+#include <asm/crash_dump.h>
#include <bios_ebda.h>

struct pglist_data *node_data[MAX_NUMNODES];
@@ -363,6 +364,9 @@ unsigned long __init setup_memory(void)
}
}
#endif
+
+ crash_reserve_bootmem();
+
return system_max_low_pfn;
}