Re: [RFC PATCH] drivers: base: dma-coherent: find free region without alignment

2017-11-15 Thread Jaewon Kim
Hello Marek On 2017년 11월 14일 20:07, Marek Szyprowski wrote: > Hi Jaewon, > > On 2017-11-14 09:42, Jaewon Kim wrote: >> dma-coherent uses bitmap API which internally consider align based on the >> requested size. Depending on some usage pattern, using align, I think, may >> be good for fast search

[RFC PATCH] drivers: base: dma-coherent: find free region without alignment

2017-11-14 Thread Jaewon Kim
dma-coherent uses bitmap API which internally consider align based on the requested size. Depending on some usage pattern, using align, I think, may be good for fast search and anti-fragmentation. But with the align, an allocation may be failed. This is a example, total size is 30MB, only few memo

Re: [RFC PATCH] drivers: base: dma-coherent: find free region without alignment

2017-11-14 Thread Marek Szyprowski
Hi Jaewon, On 2017-11-14 09:42, Jaewon Kim wrote: dma-coherent uses bitmap API which internally consider align based on the requested size. Depending on some usage pattern, using align, I think, may be good for fast search and anti-fragmentation. But with the align, an allocation may be failed.