Re: [PATCH] sn-ia64: allow drivers to flush in-flight DMA

2007-08-16 Thread Roland Dreier
The overall approach looks fine to me, although I'm not the arbiter of taste for the DMA API. However, I think this wants to be split into at least three parts for merging: adding the dmaflush flags stuff into the DMA API; adding the dmaflush parameter to the ib_umem_get() API (and fixing every ca

[PATCH] sn-ia64: allow drivers to flush in-flight DMA

2007-08-16 Thread akepner
Altix supports "posted DMA", so that DMA may complete out of order. In some cases it's necessary for a driver to ensure that in-flight DMA has been flushed to memory for correct operation. In particular this can be a problem with Infiniband, where writes to Completion Queues can race with DMA