Re: malloc() size in CMA region seems to be aligned to CMA_ALIGNMENT

2016-05-18 Thread Joonsoo Kim
On Wed, May 18, 2016 at 09:15:13PM +0800, lunar12 lunartwix wrote: > 2016-05-18 16:48 GMT+08:00 Michal Hocko : > > [CC linux-mm and some usual suspects] Michal, Thanks. > > > > On Tue 17-05-16 23:37:55, lunar12 lunartwix wrote: > >> A 4MB dma_alloc_coherent in kernel after malloc(2*1024) 40 time

Re: malloc() size in CMA region seems to be aligned to CMA_ALIGNMENT

2016-05-18 Thread lunar12 lunartwix
2016-05-18 16:48 GMT+08:00 Michal Hocko : > [CC linux-mm and some usual suspects] > > On Tue 17-05-16 23:37:55, lunar12 lunartwix wrote: >> A 4MB dma_alloc_coherent in kernel after malloc(2*1024) 40 times in >> CMA region by user space will cause an error on our ARM 3.18 kernel >> platform with a

Re: malloc() size in CMA region seems to be aligned to CMA_ALIGNMENT

2016-05-18 Thread Michal Hocko
[CC linux-mm and some usual suspects] On Tue 17-05-16 23:37:55, lunar12 lunartwix wrote: > A 4MB dma_alloc_coherent in kernel after malloc(2*1024) 40 times in > CMA region by user space will cause an error on our ARM 3.18 kernel > platform with a 32MB CMA. > > It seems that the malloc in CMA reg