From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Lord Subject: Re: [PATCH 0/2][concept RFC] x86: BIOS-save kernel log to disk upon panic Date: Tue, 25 Jan 2011 17:10:49 -0500 Message-ID: <4D3F4A69.7090702@teksavvy.com> References: <20110125134748.GA10051@laptop> <20110125140948.GA26762@elte.hu> <20110125153649.GA11386@laptop> <1295971355.4955.104.camel@mulgrave.site> <20110125170522.GA16285@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from ironport2-out.teksavvy.com ([206.248.154.181]:16313 "EHLO ironport2-out.pppoe.ca" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753113Ab1AYWKx (ORCPT ); Tue, 25 Jan 2011 17:10:53 -0500 In-Reply-To: <20110125170522.GA16285@laptop> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: "Ahmed S. Darwish" Cc: James Bottomley , Tejun Heo , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , X86-ML , Tony Luck , Dave Jones , Andrew Morton , Randy Dunlap , Willy Tarreau , Willy Tarreau , Dirk Hohndel , Dirk.Hohndel@intel.com, IDE-ML , LKML , Linus Torvalds , Peter Zijlstra , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Borislav Petkov , Arjan van de Ven , Jeff Garzik On 11-01-25 12:05 PM, Ahmed S. Darwish wrote: > > My current x86 laptop includes the very common ATA PIIX controller. ata_piix is just about ideal for this sort of thing. Except, don't use the BIOS to write the logs, but rather code/use a very simple set of polling-PIO functions to talk directly through the PIIX to the drive. Really really simple code to do that, and it would likely work with anything ata-piix, and most other non-AHCI chipsets too. Not perfect, but probably good enough for a lot of scenarios. The old hd.c driver shows how to read/write a sector at a time, and that kind of code is easily converted to simply poll for completion. Cheers