From: Ingo Molnar Subject: Re: [PATCH 0/2][concept RFC] x86: BIOS-save kernel log to disk upon panic Date: Wed, 26 Jan 2011 15:00:30 +0100 Message-ID: <20110126140030.GB30064@elte.hu> References: <20110125134748.GA10051@laptop> <20110126124954.GC24527@laptop> <20110126125813.GA26952@elte.hu> <20110126133400.GA3399@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20110126133400.GA3399@laptop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kexec-bounces-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Errors-To: kexec-bounces+glkk-kexec=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: "Ahmed S. Darwish" Cc: Willy Tarreau , Dirk Hohndel , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , FBDEV-ML , IDE-ML , Randy Dunlap , James Bottomley , "H. Peter Anvin" , X86-ML , Ingo Molnar , Jeff Garzik , Vivek Goyal , Peter Zijlstra , Dirk.Hohndel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, Borislav Petkov , Dave Jones , Thomas Gleixner , Andrew Morton , Arjan van de Ven , Tony Luck , KEXEC-ML , LKML , Haren Myneni , Eric Biederman List-Id: linux-ide@vger.kernel.org * Ahmed S. Darwish wrote: > > Also, have you tried BIOS warm reset vector, which is supposed to reboot without > > clearing RAM contents - how well does it work in practice on typical laptops? If > > on crash we could reboot without memory getting cleared that would open up a > > vast area of space to store the kernel log into (RAM). > > AFAIK, the lmode->rmode transition is more forward-compatible. > > It seems the only place warm boot was documented is in the Intel MP spec, a > 12-years old document long obsoleted by ACPI. Meanwhile, the real-mode transition > is rigorously documented in the current Intel and AMD manuals, albeit in kind of a > holier-than-thou approach. I mean, use the warm reset vector to truly reset the box. Then, once a stable known-good kernel boots, *that* kernel can then recover all the log data which is sitting in a well-known place in RAM, automatically and transparently. Basically a bit like kexec, just more convenient and it also goes through the BIOS warm reset, so it might work better than kexec ... Thanks, Ingo