Re: [PATCH] of: alloc anywhere from memblock if range not specified

2017-01-10 Thread Laura Abbott
On 01/10/2017 08:16 AM, Leonard Crestez wrote: > Hello, > > I have some trouble with this patch. > > It seems the intention is to allow CMA to be placed in highmem. If the CMA > area is > larger than highmem and no alloc-ranges is specified (just a size) it is > possible > to end up allocating

Re: [PATCH] of: alloc anywhere from memblock if range not specified

2017-01-10 Thread Leonard Crestez
Hello, I have some trouble with this patch. It seems the intention is to allow CMA to be placed in highmem. If the CMA area is larger than highmem and no alloc-ranges is specified (just a size) it is possible to end up allocating a area that spans from multiple zones. This later breaks checks

Re: [PATCH] of: alloc anywhere from memblock if range not specified

2016-03-03 Thread Rob Herring
On Mon, Feb 22, 2016 at 07:15:44PM +0530, Vinayak Menon wrote: > early_init_dt_alloc_reserved_memory_arch passes end as 0 to > __memblock_alloc_base, when limits are not specified. But > __memblock_alloc_base takes end value of 0 as MEMBLOCK_ALLOC_ACCESSIBLE > and limits the end to memblock.current

[PATCH] of: alloc anywhere from memblock if range not specified

2016-02-22 Thread Vinayak Menon
early_init_dt_alloc_reserved_memory_arch passes end as 0 to __memblock_alloc_base, when limits are not specified. But __memblock_alloc_base takes end value of 0 as MEMBLOCK_ALLOC_ACCESSIBLE and limits the end to memblock.current_limit. This results in regions never being placed in HIGHMEM area, for