From: David Brownell <david-b@pacbell.net>
To: "David S. Miller" <davem@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
"Albert D. Cahalan" <acahalan@cs.uml.edu>,
Pete Zaitcev <zaitcev@redhat.com>,
johannes@erdfelt.com, rmk@arm.linux.org.uk,
linux-kernel@vger.kernel.org
Subject: Re: pci_pool_free from IRQ
Date: Tue, 08 May 2001 20:09:46 -0700 [thread overview]
Message-ID: <059e01c0d835$819eace0$6800000a@brownell.org> (raw)
In-Reply-To: <200105082108.f48L8X1154536@saturn.cs.uml.edu> <E14xFD5-0000hh-00@the-village.bc.nu> <15096.27479.707679.544048@pizda.ninka.net> <050701c0d80f$8f876ca0$6800000a@brownell.org> <15096.38109.228916.621891@pizda.ninka.net>
> > Pete's patch to pci_pool_free() is fine with me, and I'd be glad
> > to see that bit of pci interface cleaned up. Any changes needed
> > other than the pci.txt doc update?
>
> Ummm... What Alan's saying is:
(consistent with what I said -- those are two separate issues!)
> 1) Whatever driver is trying to shut down from IRQ context
> is broken must be fixed. pci_pool is fine.
In _that_ respect, yes. pci_pool_destroy() called in shutdown
context "should" be OK. Getting rid of pages then is fine.
> 2) The Documentation/ files which suggest that such device
> removal from IRQs is "OK" must be fixed because it is not
> "OK" to handle device removal from IRQ context.
All agreed.
> So Pete's change is not needed. A fix for the documentation and
> broken drivers is needed instead.
Two issues are mixed up there. Doc should address both:
Documentation/pci.txt
... that remove() is never called in_interrupt
point (2) above
Documentation/DMA-mapping.txt
pci_free_consistent() -- do not call in_interrupt
... unless we bugfix the ARM behavior "soon"
pci_pool_destroy() -- do not call in_interrupt
... normally called on device remove()
pci_pool_free() -- may be called in_interrupt
... often called in device interrupt handling
Pete's patch deferred some pci_free_consistent calls from
pci_pool_free() where they're unsafe (on ARM) to where
they're safe (all architectures, as discussed above).
- Dave
next prev parent reply other threads:[~2001-05-09 3:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-08 21:01 pci_pool_free from IRQ Pete Zaitcev
2001-05-08 21:08 ` Albert D. Cahalan
2001-05-08 21:39 ` Alan Cox
2001-05-08 21:55 ` David S. Miller
2001-05-08 22:38 ` David Brownell
2001-05-09 0:52 ` David S. Miller
2001-05-09 3:09 ` David Brownell [this message]
2001-05-09 18:30 ` Pete Zaitcev
2001-05-09 19:27 ` David S. Miller
2001-05-10 20:05 ` Pete Zaitcev
2001-05-11 17:37 ` David Brownell
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='059e01c0d835$819eace0$6800000a@brownell.org' \
--to=david-b@pacbell.net \
--cc=acahalan@cs.uml.edu \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=davem@redhat.com \
--cc=johannes@erdfelt.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
--cc=zaitcev@redhat.com \
/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