Re: [PATCH -V6 05/27] powerpc: New hugepage directory format

2013-04-24 Thread Aneesh Kumar K.V
Paul Mackerras writes: > On Mon, Apr 22, 2013 at 03:30:39PM +0530, Aneesh Kumar K.V wrote: >> From: "Aneesh Kumar K.V" > > [snip] > >> /* >> - * Use the top bit of the higher-level page table entries to indicate >> whether >> - * the entries we point to contain hugepages. This works because w

Re: [PATCH -V6 05/27] powerpc: New hugepage directory format

2013-04-23 Thread Paul Mackerras
On Mon, Apr 22, 2013 at 03:30:39PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" [snip] > /* > - * Use the top bit of the higher-level page table entries to indicate whether > - * the entries we point to contain hugepages. This works because we know > that > - * the page tables li

Re: [PATCH -V6 05/27] powerpc: New hugepage directory format

2013-04-23 Thread Aneesh Kumar K.V
Paul Mackerras writes: > On Mon, Apr 22, 2013 at 03:30:39PM +0530, Aneesh Kumar K.V wrote: > >> Instead of storing shift value in hugepd pointer we use mmu_psize_def index >> so that we can fit all the supported hugepage size in 4 bits > > That works, but does mean that we have to scan the mmu_ps

Re: [PATCH -V6 05/27] powerpc: New hugepage directory format

2013-04-23 Thread Paul Mackerras
On Mon, Apr 22, 2013 at 03:30:39PM +0530, Aneesh Kumar K.V wrote: > Instead of storing shift value in hugepd pointer we use mmu_psize_def index > so that we can fit all the supported hugepage size in 4 bits That works, but does mean that we have to scan the mmu_psize_defs[] array to work out the

[PATCH -V6 05/27] powerpc: New hugepage directory format

2013-04-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Change the hugepage directory format so that we can have leaf ptes directly at page directory avoiding the allocation of hugepage directory. With the new table format we have 3 cases for pgds and pmds: (1) invalid (all zeroes) (2) pointer to next table, as normal; bottom