Re: [RFC] dma: passing "attributes" to dma_map_* routines

From: akepner
Date: Thu Dec 20 2007 - 14:08:21 EST


On Tue, Dec 18, 2007 at 09:59:24PM +0100, Stefan Richter wrote:
>
> From its purpose it sounds like you need this only for few special
> memory regions which would typically be mapped by dma_map_single()

We need the _sg versions too, as Roland already mentioned.

> .... and
> furthermore that drivers who need this behavior will be changed to
> explicitly demand it. If so, a nonintrusive API extension could simply
> be to add an
>
> dma_addr_t dma_map_single_write_last(struct device *dev, void *ptr,
> size_t size, enum dma_data_direction direction);
> ...

This is the easiest thing to do, and therefore it'd be my
preference. But I'm concerned that the keepers of the dma
interface will object to this. So far they've been silent
in this thread - maybe they need to see a patch before
they'll get engaged....

--
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/