Re: [PATCH 1/3 v3] dma: document dma_{un}map_{single|sg}_attrs() interface

From: akepner
Date: Wed Mar 19 2008 - 20:42:39 EST


On Fri, Mar 14, 2008 at 03:30:29PM +1100, Michael Ellerman wrote:
>
> I like this better, sorry to keep nitpicking, but just a few comments
> below ..

Comments are appreciated.

> ...
> You say a "DMA to a memory region with the DMA_ATTR_BARRIER attribute
> forces all pending DMA writes to complete". Does it force _all_ DMA
> writes to complete, or just writes to the region, or just writes coming
> from devices? What if something is writing to a device?
>

Yes, forces all writes to complete (as others have already said).


> Does DMA_ATTR_BARRIER have any effect on reads?
>

No, changed the name to DMA_ATTR_WRITE_BARRIER to emphasize this.

--
Arthur

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/