From: James Bottomley <James.Bottomley@steeleye.com>
To: "David S. Miller" <davem@redhat.com>
Cc: James.Bottomley@SteelEye.com, linux-kernel@vger.kernel.org
Subject: Re: [BK-2.5] Update the generic DMA API to take GFP_ flags on
Date: Tue, 14 Jan 2003 10:51:01 -0500 [thread overview]
Message-ID: <200301141551.h0EFp1602455@localhost.localdomain> (raw)
In-Reply-To: Message from "David S. Miller" <davem@redhat.com> of "Tue, 14 Jan 2003 07:30:23 PST." <20030114.073023.89921980.davem@redhat.com>
davem@redhat.com said:
> Now what about the corollary, a platform that needs to sleep to setup
> the cpu mapings in a race-free manner?
This one is the big bug bear. The DMA-mapping.txt doc says
pci_alloc_consistent "may be called in interrupt context". Thus if the
dma_alloc with GFP_ATOMIC uses the same code path, it should be safe.
However, there are indications that pci_alloc_consistent wasn't interrupt safe
on certain platforms (see other email re PA-RISC).
In any event, we're no worse off than we were with the pci_ API. Passing in
the flags will hopefully allow us to create GFP_ATOMIC safe paths in the arch
implementations which look iffy.
James
next prev parent reply other threads:[~2003-01-14 15:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-14 15:30 James Bottomley
2003-01-14 15:30 ` David S. Miller
2003-01-14 15:51 ` James Bottomley [this message]
2003-01-14 15:51 ` Russell King
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=200301141551.h0EFp1602455@localhost.localdomain \
--to=james.bottomley@steeleye.com \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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®