Thread (66 messages) 66 messages, 12 authors, 2011-07-26

[PATCH 7/8] common: dma-mapping: change alloc/free_coherent method to more generic alloc/free_attrs

From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-06-24 16:23:19
Also in: linux-arch, linux-mm

On Friday 24 June 2011, James Bottomley wrote:
On Fri, 2011-06-24 at 17:51 +0200, Arnd Bergmann wrote:
quoted
Yes, I think that is good, but the change needs to be done atomically
across all architectures. This should be easy enough as I believe
all other architectures that use dma_map_ops don't even require
dma_alloc_noncoherent
This statement is definitely not true of parisc, and also, I believe,
not true of sh, so that would have to figure in the conversion work too.
As far as I can tell, parisc uses its own hppa_dma_ops, not
dma_map_ops, and arch/sh/include/asm/dma-mapping.h contains an
unconditional

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)

If you want to change parisc to use dma_map_ops then I would suggest
adding another attribute for alloc_noncoherent.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help