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

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

From: Marek Szyprowski <m.szyprowski@samsung.com>
Date: 2011-06-27 13:31:07
Also in: linux-arm-kernel, linux-mm

Hello,

On Monday, June 27, 2011 3:22 PM Arnd Bergmann wrote:
On Monday 27 June 2011, Marek Szyprowski wrote:
quoted
quoted
On a related note, do you plan to make the CMA work use this
transparently, or do you want to have a DMA_ATTR_LARGE or
DMA_ATTR_CONTIGUOUS for CMA?
IMHO it will be better to hide the CMA from the drivers. Memory allocated
from CMA doesn't really differ from the one allocated by
dma_alloc_coherent()
quoted
(which internally use alloc_pages()), so I really see no reason for
adding
quoted
additional attribute for it.
Ok, fair enough. On a semi-related topic, IIRC we still need to make sure
that dma_alloc_coherent() pages are unmapped from the linear mapping. I
hope
this is independent of both CMA and this patch.
Right, that's one more big item that is still on the TODO list.

Best regards
-- 
Marek Szyprowski
Samsung Poland R&D Center


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help