Re: [PATCH] mm/cma: fix cma bitmap aligned mask computing

2014-10-10 Thread Michal Nazarewicz
On Fri, Oct 10 2014, Weijie Yang wrote: > The current cma bitmap aligned mask compute way is incorrect, it could > cause an unexpected align when using cma_alloc() if wanted align order > is bigger than cma->order_per_bit. > > Take kvm for example (PAGE_SHIFT = 12), kvm_cma->order_per_bit is set to

[PATCH] mm/cma: fix cma bitmap aligned mask computing

2014-10-09 Thread Weijie Yang
The current cma bitmap aligned mask compute way is incorrect, it could cause an unexpected align when using cma_alloc() if wanted align order is bigger than cma->order_per_bit. Take kvm for example (PAGE_SHIFT = 12), kvm_cma->order_per_bit is set to 6, when kvm_alloc_rma() tries to alloc kvm_rma_p