From: David Brownell <david-b@pacbell.net>
To: James Bottomley <James.Bottomley@hansenpartnership.com>
Cc: bugme-daemon@bugzilla.kernel.org,
Russell King <rmk@arm.linux.org.uk>,
Greg Kroah-Hartman <gregkh@suse.de>,
linux-scsi@vger.kernel.org
Subject: Re: [Bug 9880] dma_free_coherent in arcmsr when calling areca tools
Date: Sun, 3 Feb 2008 20:36:30 -0800 [thread overview]
Message-ID: <200802032036.31016.david-b@pacbell.net> (raw)
In-Reply-To: <1202097337.3318.143.camel@localhost.localdomain>
On Sunday 03 February 2008, James Bottomley wrote:
> That's caused by this commit:
>
> commit aa24886e379d2b641c5117e178b15ce1d5d366ba
> Author: David Brownell <david-b@pacbell.net>
> Date: Fri Aug 10 13:10:27 2007 -0700
>
> dma_free_coherent() needs irqs enabled (sigh)
>
> I've cc'd the people responsible for this apparent bit of idiocy. Since
> the API addition to dma_alloc_coherent() was the GFP flags so you could
> call it from interrupt context with GFP_ATOMIC if so desired,
> (pci_dma_alloc_consistent always has GFP_ATOMIC semantics), why on earth
> would the corresponding free routine require non-atomic semantics?
That was my reaction ... but I was told this would not be fixed.
See also 8a3c1f573c771e60f67ef172d2392d1a28385b4a ... several other
controller drivers needed similar logic at one point. (I eventually
ripped that programming interface out, or *EVERY* driver would have
needed crap like that. The interface was mostly misused anyway, so
it was no big loss.)
> Is it seriously true that you can call dma_alloc_coherent() from atomic
> context on arm, but not dma_free_coherent()?
Lacking a tasklet in dma_free_coherent() analagous to that omap_udc commit
I referenced ...
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-02-04 4:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-9880-11613@http.bugzilla.kernel.org/>
2008-02-04 3:00 ` [Bug 9880] dma_free_coherent in arcmsr when calling areca tools bugme-daemon
2008-02-04 3:55 ` James Bottomley
2008-02-04 4:36 ` David Brownell [this message]
2008-02-04 8:19 ` Russell King
2008-02-09 16:51 ` James Bottomley
2008-02-09 17:21 ` Russell King
2008-02-09 17:33 ` James Bottomley
2008-02-04 3:55 ` bugme-daemon
2008-02-04 4:36 ` bugme-daemon
2008-02-04 8:20 ` bugme-daemon
2008-02-09 16:52 ` bugme-daemon
2008-02-09 17:24 ` bugme-daemon
2008-02-09 17:34 ` bugme-daemon
[not found] <bug-9880-11613@https.bugzilla.kernel.org/>
2012-05-17 15:32 ` bugzilla-daemon
2012-05-17 15:32 ` bugzilla-daemon
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=200802032036.31016.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=James.Bottomley@hansenpartnership.com \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=gregkh@suse.de \
--cc=linux-scsi@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.