From: Grant Grundler <grundler@parisc-linux.org>
To: akepner@sgi.com
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 16:05:48 -0600 [thread overview]
Message-ID: <20070827220548.GB22484@colo.lackof.org> (raw)
In-Reply-To: <20070824180232.GP5592@sgi.com>
On Fri, Aug 24, 2007 at 11:02:32AM -0700, akepner@sgi.com wrote:
>
> On Altix, DMA may be reordered within the NUMA interconnect.
> This can be a problem with Infiniband, where DMA to Completion
> Queues can race with data DMA. This patchset allows a driver
> to associate a memory region with a "dmaflush" attribute, so
> that writes to the memory region flush in-flight DMA, preventing
> the CQ/data race.
FYI to linux-pci folks
This patch had previous discussion on LKML:
http://lkml.org/lkml/2007/8/17/336
James Bottomley at one point obliquely referred to
my OLS2003 paper: "DMA Hints on ia64/PARISC"
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.
On IRC, willy suggested an mmap() flag and that sounds reasonable too
though I don't know if it's feasible.
hth,
grant
> There are three patches in this set:
>
> [1/3]: add pci_dma_flags_set_dmaflush() to pci interface
> [2/3]: redefine pci_dma_flags_set_dmaflush() for sn-ia64
> [3/3]: document pci_dma_flags_set_dmaflush()
>
> And there would be additional patches to IB drivers to make use
> of the interface, of course.
>
> --
> Arthur
next prev parent reply other threads:[~2007-08-27 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 18:02 akepner
2007-08-27 22:05 ` Grant Grundler [this message]
2007-08-27 22:20 ` akepner
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=20070827220548.GB22484@colo.lackof.org \
--to=grundler@parisc-linux.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=akepner@sgi.com \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--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
all inboxes | Powered by JetHome®