On 11/12/2014 11:18 PM, Gioh Kim wrote:
Hi,
I'm wondering why dma_alloc_coherent needs GFP_HIGHUSER | __GFP_ZERO flags in
ion_cma_allocate().
I think dma_alloc_coherent can go to __dma_alloc if the system has CMA area.
If __GFP_WAIT flag is set, it allocates memory from atomic pool.
So
2014-11-14 오전 10:24에 Laura Abbott 이(가) 쓴 글:
On 11/12/2014 11:18 PM, Gioh Kim wrote:
Hi,
I'm wondering why dma_alloc_coherent needs GFP_HIGHUSER | __GFP_ZERO flags
in ion_cma_allocate().
I think dma_alloc_coherent can go to __dma_alloc if the system has CMA area.
If __GFP_WAIT flag is
Hi,
I'm wondering why dma_alloc_coherent needs GFP_HIGHUSER | __GFP_ZERO flags in
ion_cma_allocate().
I think dma_alloc_coherent can go to __dma_alloc if the system has CMA area.
If __GFP_WAIT flag is set, it allocates memory from atomic pool.
So I think calling dma_alloc_coherent with