From: ebiederm@xmission.com (Eric W. Biederman)
To: Grant Grundler <grundler@parisc-linux.org>
Cc: Morton Andrew Morton <akpm@osdl.org>,
awilliam@fc.hp.com, greg@kroah.com,
Fastboot mailing list <fastboot@lists.osdl.org>,
linux kernel mailing list <linux-kernel@vger.kernel.org>,
Bodo Eggert <7eggert@gmx.de>,
stern@rowland.harvard.edu, bjorn.helgaas@hp.com
Subject: Re: [Fastboot] Re: [RFC/PATCH] Kdump: Disabling PCI interrupts in capture kernel
Date: 07 Jun 2005 12:42:42 -0600 [thread overview]
Message-ID: <m1acm2vwil.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20050607162143.GE29220@colo.lackof.org>
Grant Grundler <grundler@parisc-linux.org> writes:
> On Tue, Jun 07, 2005 at 03:59:18AM -0600, Eric W. Biederman wrote:
> > > *lots* of PCI devices predate PCI2.3. Possibly even the majority.
> >
> > In general generic hardware bits for disabling DMA, disabling interrupts
> > and the like are all advisory. With the current architecture things
> > will work properly even if you don't manage to disable DMA (assuming
> > you don't reassign IOMMU entries at least).
>
> ISTR, pSeries (IBM), some alpha, some sparc64, and parisc (64-bit) require
> use of the IOMMU for *any* DMA. ie IOMMU entries need to be programmed.
> Probably want to make a choice to ignore those arches for now
> or sort out how to deal with an IOMMU.
The howto deal with an IOMMU has been sorted out but so far no one
has actually done it. What has been discussed previously is simply
reserving a handful of IOMMU entries, and then only using those
in the crash recover kernel. This is essentially what we do with DMA
on architectures that don't have an IOMMU and it seems quite safe
enough there.
> > Shared interrupts are an interesting case. The simplest solution I can
> > think of for a crash dump capture kernel is to periodically poll
> > the hardware, as if all interrupts are shared. At that level
> > I think we could get away with ignoring all hardware interrupt sources.
>
> Yes, that's perfectly ok. We are no longer in a multitasking env.
Well we are at least capable of multitasking but that is no longer the
primary focus. Having polling as at least an option should make
debugging easier. Last I looked Andrews kernel hand an irqpoll option
to do something very like this.
> > Does anyone know of a anything that would break by always polling
> > the hardware? I guess there could be a problem with drivers
> > that don't understand shared interrupts, are there enough of those
> > to be an issue.
>
> PCI requires drivers support Shared IRQs.
> A few oddballs might be broken but I expect networking/mass storage
> drivers get this right.
Agreed. Which means any drivers we really need for dumping the system
should be fine. If the drivers don't work in that mode at least the
concept of fixing it won't be controversial.
Eric
next prev parent reply other threads:[~2005-06-07 18:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-07 3:07 [RFC/PATCH] Kdump: Disabling PCI interrupts in capture kernel Vivek Goyal
2005-06-07 5:07 ` Grant Grundler
2005-06-07 9:59 ` Eric W. Biederman
2005-06-07 16:21 ` Grant Grundler
2005-06-07 18:42 ` Eric W. Biederman [this message]
2005-06-08 4:02 ` [Fastboot] " Grant Grundler
2005-06-08 4:38 ` Eric W. Biederman
2005-06-08 6:38 ` Vivek Goyal
2005-06-08 11:23 ` Vivek Goyal
-- strict thread matches above, loose matches on Subject: below --
2005-06-04 10:31 Maneesh Soni
2005-06-03 11:25 Vivek Goyal
2005-06-03 18:21 ` Greg KH
2005-06-03 18:36 ` Eric W. Biederman
2005-06-04 13:18 ` Denis Vlasenko
2005-06-04 13:43 ` [Fastboot] " Dipankar Sarma
2005-06-04 14:03 ` Dipankar Sarma
2005-06-04 21:14 ` 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=m1acm2vwil.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=7eggert@gmx.de \
--cc=akpm@osdl.org \
--cc=awilliam@fc.hp.com \
--cc=bjorn.helgaas@hp.com \
--cc=fastboot@lists.osdl.org \
--cc=greg@kroah.com \
--cc=grundler@parisc-linux.org \
--cc=linux-kernel@vger.kernel.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