Re: [PATCH 0/2][concept RFC] x86: BIOS-save kernel log to diskupon panic

From: Tejun Heo
Date: Tue Jan 25 2011 - 09:49:15 EST


Hello,

On Tue, Jan 25, 2011 at 03:47:48PM +0200, Ahmed S. Darwish wrote:
> The main problem, it seems, is that the BIOS "Reset controller" command is not
> enough to restore disk hardware to a state understandable by the BIOS code.

I doubt many BIOSen would implement this properly. It's something no
one ever uses and modern controllers have a lot more states and are
more complex to reset.

> - Is it possible to re-initialize the disk hardware to its POST
> state (thus make the BIOS services work reliably) while keeping
> system RAM unmodified?

I'm afraid this can't be made reliable. Nobody uses it and the stuff
we do during pci initialization is enough to leave some BIOSen
clueless.

> - If not, can we do it manually by reprogramming the controllers?

It would be only theoretically possible. We'll basically have to
write deinitialization routine for different controllers, which of
course would be super-cold path and not many people would test.

I'm afraid this is gonna be something which works sometimes (or even
more times than not) but can't ever be made reliable. I think it
would be better to head toward usb or other kind of early console.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/