From: akepner@sgi.com
To: Grant Grundler <grundler@parisc-linux.org>
Cc: linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz,
gregkh@suse.de,
James Bottomley <James.Bottomley@HansenPartnership.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
Jes Sorensen <jes@sgi.com>,
Randy Dunlap <randy.dunlap@oracle.com>,
David Miller <davem@davemloft.net>
Subject: Re: [PATCH 0/3] pci: let devices flush DMA to host memory
Date: Mon, 27 Aug 2007 15:20:27 -0700 [thread overview]
Message-ID: <20070827222027.GD29161@sgi.com> (raw)
In-Reply-To: <20070827220548.GB22484@colo.lackof.org>
On Mon, Aug 27, 2007 at 04:05:48PM -0600, Grant Grundler wrote:
> .....
> After reading the thread, my take is we need a more elegant way for a
> device driver to handle registration of DMA regions allocated by user
> space. The API would "make this page/region act like dma_alloc_coherent()".
> That implies strong ordering between CPU and DMA to/from the device.
> Maybe the code is the right thing and I want a name that makes
> sense in the context of current DMA API.
Need to think about this...
>
> On IRC, willy suggested an mmap() flag and that sounds reasonable too
> though I don't know if it's feasible.
>
Yeah, we're doing something like this now as a band-aid solution.
Not a flag to mmap(), but a magic offset value. But it wasn't
acceptable to the maintainer of the mthca IB driver (Roland
Dreier), hence the new proposal....
--
Arthur
prev parent reply other threads:[~2007-08-27 22:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 18:02 [PATCH 0/3] pci: let devices flush DMA to host memory akepner
2007-08-27 22:05 ` Grant Grundler
2007-08-27 22:20 ` akepner [this message]
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=20070827222027.GD29161@sgi.com \
--to=akepner@sgi.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--cc=grundler@parisc-linux.org \
--cc=jbarnes@virtuousgeek.org \
--cc=jes@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=randy.dunlap@oracle.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