From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1QJPk7-0002ge-1J for kexec@lists.infradead.org; Mon, 09 May 2011 12:39:19 +0000 Date: Mon, 9 May 2011 08:39:02 -0400 From: Vivek Goyal Subject: Re: [Bug] Kdump does not work when panic triggered due to MCE Message-ID: <20110509123902.GA5975@redhat.com> References: <20110506165412.GB2719@in.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110506165412.GB2719@in.ibm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: "K.Prasad" Cc: Andi Kleen , kexec@lists.infradead.org, Linux Kernel Mailing List , "Luck, Tony" On Fri, May 06, 2011 at 10:24:12PM +0530, K.Prasad wrote: > Hi All, > I wanted to test the behaviour of kdump when panic is triggered > due to MCE on x86 and found that kdump is not captured. > > While the kdump service is configured and running and non-MCE panics > (such as those triggered through to /proc/sysrq-trigger) successfully > capture a kdump, any fatal MCE error injected through the mce-inject > tool causes a reboot of the machine. > > The code has been traced (using early_serial_putc()) to enter the kexec > path i.e. panic()->crash_kexec()->machine_kexec()->relocate_kernel() > but is untraceable further. > > Kdump works fine when the same the similar test is carried out inside a > KVM guest. > > Has anybody tested this before? Or have found kdump working when fatal > MCEs have actually occurred? Prasad, I have never tried taking dump in MCE situation. Does kdump work on this machine with normal panic()? Use --debug and --serial option in kexec-tools to print some debug message and look for "I am in purgatory". This will tell you whether you hanged in first kernel or second kernel. Then put "outb()" messages in the kernel to trace what happened. Thanks Vivek _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec