RE: [PATCHv22 13/16] drivers: add Contiguous Memory Allocator

2012-02-22 Thread Marek Szyprowski
Hello, On Tuesday, February 21, 2012 10:30 PM Aaro Koskinen wrote: > On Fri, 17 Feb 2012, Marek Szyprowski wrote: > > +/** > > + * dma_release_from_contiguous() - release allocated pages > > + * @dev: Pointer to device for which the pages were allocated. > > + * @pages: Allocated pages. > > + *

Re: [PATCHv22 13/16] drivers: add Contiguous Memory Allocator

2012-02-21 Thread Aaro Koskinen
Hi, On Fri, 17 Feb 2012, Marek Szyprowski wrote: +/** + * dma_release_from_contiguous() - release allocated pages + * @dev: Pointer to device for which the pages were allocated. + * @pages: Allocated pages. + * @count: Number of allocated pages. + * + * This function releases memory allocated

[PATCHv22 13/16] drivers: add Contiguous Memory Allocator

2012-02-17 Thread Marek Szyprowski
The Contiguous Memory Allocator is a set of helper functions for DMA mapping framework that improves allocations of contiguous memory chunks. CMA grabs memory on system boot, marks it with MIGRATE_CMA migrate type and gives back to the system. Kernel is allowed to allocate only movable pages withi