opensubscriber
   Find in this group all groups
 
Unknown more information…

l : linux-ia64@vger.kernel.org 15 April 2008 • 5:59PM -0400

[PATCH] ia64 kdump: Add crash_save_vmcoreinfo for INIT
by Takao Indoh

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi,

This patch fixes the problem that kdump by INIT does not work if we use
makedumpfile. The problem is that after INIT is issued, 2nd kernel
starts and makedumpfile fails with the following error message.

/proc/vmcore doesn't contain vmcoreinfo.
'-x' or '-i' must be specified.

makedumpfile Failed.

The cause of this problem is that kernel does not call
crash_save_vmcoreinfo. When kdump starts by panic or sysrq-trigger,
crash_save_vmcoreinfo is called by crash_kexec. But this function is not
called when kdump starts by INIT. The Attached patch fixes this.

This patch just adds crash_save_vmcoreinfo into machine_kdump_on_init so
that crash_save_vmcoreinfo can be called when kdump starts by INIT.
I tested this patch with linux-2.6.25-rc9 and I confirmed it worked.

Thanks,
Takao Indoh

Signed-off-by: Takao Indoh <indou.takao@jp.f...>

---
arch/ia64/kernel/crash.c |    1 +
1 file changed, 1 insertion(+)

diff -Nurp linux-2.6.25-rc9.org/arch/ia64/kernel/crash.c linux-2.6.25-rc9/arch/ia64/kernel/crash.c
--- linux-2.6.25-rc9.org/arch/ia64/kernel/crash.c 2008-04-14 18:23:13.000000000 -0400
+++ linux-2.6.25-rc9/arch/ia64/kernel/crash.c 2008-04-14 18:25:46.000000000 -0400
@@ -118,6 +118,7 @@ machine_crash_shutdown(struct pt_regs *p
static void
machine_kdump_on_init(void)
{
+ crash_save_vmcoreinfo();
local_irq_disable();
kexec_disable_iosapic();
machine_kexec(ia64_kimage);

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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.