On Mon, Aug 27, 2007 at 04:05:48PM -0600, Grant Grundler wrote: > ..... > 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.
Need to think about this... > > On IRC, willy suggested an mmap() flag and that sounds reasonable too > though I don't know if it's feasible. > Yeah, we're doing something like this now as a band-aid solution. Not a flag to mmap(), but a magic offset value. But it wasn't acceptable to the maintainer of the mthca IB driver (Roland Dreier), hence the new proposal.... -- Arthur - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/