Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-18 Thread Benjamin Herrenschmidt
On Tue, 2012-07-03 at 11:29 +0800, Jiang Liu wrote: > OK, waiting response from PPC. If we could find some ways to set > HPAGE_SIZE > early on PPC too, we can setup pageblock_order in arch instead of > page_alloc.c > as early as possible. We could split our hugetlbpage_init() into two, with the b

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-18 Thread Benjamin Herrenschmidt
On Mon, 2012-07-02 at 20:25 -0700, Yinghai Lu wrote: > > That means pageblock_order is always set to "MAX_ORDER - 1", not sure > > whether this is intended. And it has the same issue as IA64 of wasting > > memory if CONFIG_SPARSE is enabled. > > adding BenH, need to know if it is powerpc intended.

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-18 Thread Benjamin Herrenschmidt
On Tue, 2012-07-17 at 17:31 +0800, Jiang Liu wrote: > Hi Ben, > Any update about this topic? > Thanks! > Gerry I should have said "long week-end" :-) I'm just back, will look into it now. Cheers, Ben. > > On 2012-7-6 9:24, Benjamin Herrenschmidt wrote: > > On Thu, 2012-07-05 a

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-17 Thread Jiang Liu
Hi Ben, Any update about this topic? Thanks! Gerry On 2012-7-6 9:24, Benjamin Herrenschmidt wrote: > On Thu, 2012-07-05 at 18:00 -0700, Yinghai Lu wrote: >> cma, dma_continugous_reserve is referring pageblock_order very early >> too. >> just after init_memory_mapping() for