[PATCH v7 2/3] SMAF: add CMA allocator

2016-05-17 Thread Benjamin Gaignard
Hi Emil, 2016-05-17 1:05 GMT+02:00 Emil Velikov : > Hi Benjamin, > > On 9 May 2016 at 16:07, Benjamin Gaignard > wrote: >> SMAF CMA allocator implement helpers functions to allow SMAF >> to allocate contiguous memory. >> >> match() each if at least one of the attached devices have coherent_dma_m

[PATCH v7 2/3] SMAF: add CMA allocator

2016-05-17 Thread Emil Velikov
Hi Benjamin, On 9 May 2016 at 16:07, Benjamin Gaignard wrote: > SMAF CMA allocator implement helpers functions to allow SMAF > to allocate contiguous memory. > > match() each if at least one of the attached devices have coherent_dma_mask > set to DMA_BIT_MASK(32). > What is the idea behind the h

[PATCH v7 2/3] SMAF: add CMA allocator

2016-05-09 Thread Benjamin Gaignard
SMAF CMA allocator implement helpers functions to allow SMAF to allocate contiguous memory. match() each if at least one of the attached devices have coherent_dma_mask set to DMA_BIT_MASK(32). For allocation it use dma_alloc_attrs() with DMA_ATTR_WRITE_COMBINE and not dma_alloc_writecombine to be