Return-path: Received: from ebiederm.dsl.xmission.com ([166.70.28.69]) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1JQ1Ca-0003UX-2r for kexec@lists.infradead.org; Fri, 15 Feb 2008 14:06:14 +0000 From: ebiederm@xmission.com (Eric W. Biederman) Subject: Re: [PATCH], issue EOI to APIC prior to calling crash_kexec in die_nmi path References: <20080206192555.GA24910@hmsendeavour.rdu.redhat.com> <20080206220001.GA15155@elte.hu> <20080206224805.GD11886@redhat.com> <47AA3B16.7000507@zytor.com> <20080206233657.GB12393@elte.hu> <20080207121719.GA29279@hmsreliant.think-freely.org> <20080207122404.GA8195@elte.hu> <20080208161422.GA32204@hmsreliant.think-freely.org> <20080208164544.GA23772@redhat.com> <20080212210816.GA1862@hmsreliant.think-freely.org> Date: Fri, 15 Feb 2008 07:02:28 -0700 In-Reply-To: <20080212210816.GA1862@hmsreliant.think-freely.org> (Neil Horman's message of "Tue, 12 Feb 2008 16:08:16 -0500") Message-ID: MIME-Version: 1.0 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=infradead.org+dwmw2=infradead.org@lists.infradead.org To: Neil Horman Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, mingo@redhat.com, "H. Peter Anvin" , Ingo Molnar , tglx@linutronix.de, Vivek Goyal Neil Horman writes: >> >> Neil, is it possible to do some serial console debugging to find out >> where exactly we are hanging? Beats me, what's that operation which can >> not be executed while being in NMI handler and makes system to hang. I am >> also curious to know if it is nested NMI case. >> >> Thanks >> Vivek >> > > > Hey- > Some intermediate results: > > I've instrumented head.S in the kernel with the following code: > #define SEROUT(z) \ > mov $0x3F8,%dx;\ > movb z,%al;\ > outb %dx > > > And peppered different ascii characters throughout the startup code from > startup_32 to right before the jump to start_kernel. When I panic the system > via an: > echo c > /proc/sysrq_trigger > I see an appropriate sequence of characters on the serial console > > When I panic the box by forcing an NMI watchdog timeout however, I see nothing. > The machine will either hang, or reset into the bios. I think this is > reasonably conclusive in its indication that we're not getting into the second > kernel when this problem occurs. Next I'll instrument the purgatory code in a > simmilar way. My apologies for the late reply. You should be able to use the --console-serial option to kexec to get output from purgatory, which will catch everything except a little bit of the assembly stub. purgatory even has a stripped down version of printf you can call. Eric _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec