Re: Memory-mapped I/O barriers, state of affairs?

From: Andreas Bombe
Date: Mon Mar 22 2010 - 16:48:49 EST


On Mon, Mar 22, 2010 at 08:18:49PM +0100, Leon Woestenberg wrote:
> What is the current solution for that particular problem, i.e. how
> should I make sure host memory writes are committed before I have an
> external DMA device act on it?

The dma_sync_* functions, if you reuse DMA buffers without unmapping,
take care of that. Otherwise the process of mapping them handles it.

Documentation/DMA-API.txt and Documentation/PCI/PCI-DMA-mapping.txt
document those functions.
--
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/