lkml.org 
[lkml]   [2016]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectmalloc() size in CMA region seems to be aligned to CMA_ALIGNMENT
From
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 region will be aligned to
CMA_ALIGNMENT everytime even if the requested malloc size is very
small so the CMA region is not available after the malloc operations.

Is there any configuraiton that can change this behavior??

Thanks

Cheers
Ken

\
 
 \ /
  Last update: 2016-05-17 17:41    [W:0.083 / U:1.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site