From: Roland Dreier <rdreier@cisco.com>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: akepner@sgi.com, Andrew Morton <akpm@linux-foundation.org>,
grundler@parisc-linux.org, jbarnes@virtuousgeek.org, jes@sgi.com,
randy.dunlap@oracle.com, James.Bottomley@steeleye.com,
davem@davemloft.net, linux-kernel@vger.kernel.org
Subject: Re: [RFC] dma: passing "attributes" to dma_map_* routines
Date: Tue, 18 Dec 2007 11:04:47 -0800 [thread overview]
Message-ID: <adaejdj3ju8.fsf@cisco.com> (raw)
In-Reply-To: <4767FA62.9060002@s5r6.in-berlin.de> (Stefan Richter's message of "Tue, 18 Dec 2007 17:50:42 +0100")
> > Waaay back in October I sent some patches for passing additional
> > attributes to the dma_map_* routines:
> >
> > http://marc.info/?l=linux-kernel&m=119137949604365&w=2
>
> Do I understand correctly?: A device and the CPUs communicate via two
> separate memory areas: A data buffer and a status FIFO. The NUMA
> interconnect may reorder accesses of the device to the areas. (Write
> accesses? Read accesses? Both?)
Yes, that is correct. In-flight DMA writes from the device to system
memory can pass each other, so that the CPU sees a "complete" status
in the completion queue before the operation in question has actually
finished updating CPU memory.
> To ensure synchronization between device and CPUs, you want to mark a
> memory area which is to be dma-mapped with a flag which says: "Writes
> to the memory region will cause in-flight DMA to be flushed". Whose
> writes? A write access from the device or a write access from a CPU?
Write access from the device. The idea is to set the flag on the
completion queue, so that when the device writes the "complete" status
for the operation, all DMAs associated with that operation are flushed
first.
- R.
next prev parent reply other threads:[~2007-12-18 19:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-18 0:17 [RFC] dma: passing "attributes" to dma_map_* routines akepner
2007-12-18 16:50 ` Stefan Richter
2007-12-18 19:04 ` Roland Dreier [this message]
2007-12-18 20:07 ` akepner
2007-12-18 20:59 ` Stefan Richter
2007-12-18 21:09 ` Roland Dreier
2007-12-20 18:51 ` akepner
2007-12-20 19:06 ` akepner
2007-12-20 20:56 ` Benjamin Herrenschmidt
2007-12-21 18:00 ` akepner
2007-12-21 20:24 ` Stefan Richter
2007-12-21 21:31 ` Benjamin Herrenschmidt
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=adaejdj3ju8.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=James.Bottomley@steeleye.com \
--cc=akepner@sgi.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=grundler@parisc-linux.org \
--cc=jbarnes@virtuousgeek.org \
--cc=jes@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=stefanr@s5r6.in-berlin.de \
/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