From: ebiederm@xmission.com (Eric W. Biederman)
To: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <david-b@pacbell.net>,
<linux-usb-devel@lists.sourceforge.net>,
Randy Dunlap <rddunlap@osdl.org>, <linux-kernel@vger.kernel.org>,
<fastboot@osdl.org>
Subject: Re: kexec and IRQ sharing
Date: 08 Mar 2005 10:48:17 -0700 [thread overview]
Message-ID: <m1fyz6m3ku.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0503081125580.978-100000@ida.rowland.org>
Alan Stern <stern@rowland.harvard.edu> writes:
> I can implement either a shutdown method or a reboot notifier for
> uhci-hcd. Note however that the upcoming changes to the PM core include a
> suspend call (PMSG_FREEZE) that does exactly what you want: quiesce the
> device, disable IRQ and DMA, but don't necessarily switch the power level.
> (See Documentation/power/devices.txt.) Unfortunately it won't be
> implemented until another few kernel releases have gone by.
Thanks.
> The idea of using kexec to recover from a partially-damaged kernel seems
> unreliable. Even attempting to quiesce devices prior to rebooting may
> not work because of locks whose owners have crashed.
There is still a final bit of feeling our way through the weirdness,
in that case. But in that case no devices will be quiesced before
we start the next kernel. Basically very little beyond a jump
jump instruction will be executed at that point. What is loaded must
be a very robust kernel capable of handling the few devices it needs
from an active state. The irq weirdness you just ran into is
something that really hasn't been looked at.
In that case I suspect we will probably simply want to specify irqpoll
on the command line by default. We are as safe as possible from DMA
traffic because we run out of a completely reserved area of memory
that the primary kernel never uses.
And the target is not a complete system recover but rather being able
to do something useful in the event of a crash like write a core
dump.
So in the crash dump case with a non-hardened driver that can't cope
the system may lock up, but I don't see it corrupting your data.
Which is the important bit. And with drivers that have been
sufficiently hardened you will be able to do things like write
to disk etc.
Eric
next parent reply other threads:[~2005-03-08 17:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44L0.0503081125580.978-100000@ida.rowland.org>
2005-03-08 17:48 ` Eric W. Biederman [this message]
[not found] <Pine.LNX.4.44L0.0503071555530.1789-100000@ida.rowland.org>
2005-03-07 22:08 ` Eric W. Biederman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1fyz6m3ku.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=david-b@pacbell.net \
--cc=fastboot@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=rddunlap@osdl.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®