Re: [PATCH] CMA: fix CONFIG_CMA_SIZE_MBYTES overflow in 64bit

2015-09-13 Thread Tan Xiaojun
Hi, please review and give some suggestions. Any suggestion by anyone is fine to me. Thanks Xiaojun On 2015/9/7 12:21, Tan Xiaojun wrote: > In 64bit system, if you set CONFIG_CMA_SIZE_MBYTES>=2048, it will > overflow and size_bytes will be a big wrong number. > > Set CONFIG_CMA_SIZE_MBYTES=2048

[PATCH] CMA: fix CONFIG_CMA_SIZE_MBYTES overflow in 64bit

2015-09-06 Thread Tan Xiaojun
In 64bit system, if you set CONFIG_CMA_SIZE_MBYTES>=2048, it will overflow and size_bytes will be a big wrong number. Set CONFIG_CMA_SIZE_MBYTES=2048 and you will get an info below during system boot: * cma: Failed to reserve 17592186042368 MiB * Signed-off-by: Tan Xiaojun ---