lkml.org 
[lkml]   [2011]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/2][concept RFC] x86: BIOS-save kernel log to disk upon panic
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


\
 
 \ /
  Last update: 2011-01-25 15:57    [from the cache]
©2003-2011 Jasper Spaans