RE: [PATCH 6/9] drivers: add Contiguous Memory Allocator

2011-11-04 Thread Marek Szyprowski
Hello, On Tuesday, October 18, 2011 3:43 PM Mel Gorman wrote: On Thu, Oct 06, 2011 at 03:54:46PM +0200, Marek Szyprowski wrote: The Contiguous Memory Allocator is a set of helper functions for DMA mapping framework that improves allocations of contiguous memory chunks. CMA grabs memory

Re: [PATCH 6/9] drivers: add Contiguous Memory Allocator

2011-10-24 Thread Michal Nazarewicz
On Thu, Oct 06, 2011 at 03:54:46PM +0200, Marek Szyprowski wrote: +static unsigned long __init __cma_early_get_total_pages(void) +{ + struct memblock_region *reg; + unsigned long total_pages = 0; + + /* +* We cannot use memblock_phys_mem_size() here, because +*

Re: [PATCH 6/9] drivers: add Contiguous Memory Allocator

2011-10-18 Thread Mel Gorman
On Thu, Oct 06, 2011 at 03:54:46PM +0200, Marek Szyprowski wrote: 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 CMA_MIGRATE_TYPE and gives back to

Re: [PATCH 6/9] drivers: add Contiguous Memory Allocator

2011-10-16 Thread Russell King - ARM Linux
On Fri, Oct 14, 2011 at 04:57:30PM -0700, Andrew Morton wrote: On Thu, 06 Oct 2011 15:54:46 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: +#ifdef phys_to_pfn +/* nothing to do */ +#elif defined __phys_to_pfn +# define phys_to_pfn __phys_to_pfn +#elif defined __va +# define

Re: [PATCH 6/9] drivers: add Contiguous Memory Allocator

2011-10-14 Thread Andrew Morton
On Thu, 06 Oct 2011 15:54:46 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: 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 CMA_MIGRATE_TYPE