[PATCH] powerpc: Free a PTE bit on ppc64 with 64K pages

2008-06-10 Thread Benjamin Herrenschmidt
This patch frees a PTE bit when using 64K pages on ppc64. This is done by getting rid of the separate _PAGE_HASHPTE bit. Instead, we just test if any of the 16 sub-page bits is set. For non-combo pages (ie. real 64K pages), we set SUB0 and the location encoding in that field. Signed-off-by: Benjam

Re: [PATCH] [POWERPC] Free a PTE bit on ppc64 with 64K pages

2008-06-09 Thread Benjamin Herrenschmidt
On Tue, 2008-06-10 at 14:00 +1000, Michael Ellerman wrote: > > This doesn't build for CONFIG_PPC_64K_PAGES=n and > CONFIG_PPC_HAS_HASH_64K=y, because the asm is protected by the latter > but the header definitions are protected by the former. Crap ! This is going to be nasty... I have to think ab

Re: [PATCH] [POWERPC] Free a PTE bit on ppc64 with 64K pages

2008-06-09 Thread Michael Ellerman
On Thu, 2008-05-29 at 15:51 +1000, Benjamin Herrenschmidt wrote: > This patch frees a PTE bit when using 64K pages on ppc64. This is done > by getting rid of the separate _PAGE_HASHPTE bit. Instead, we just test > if any of the 16 sub-page bits is set. For non-combo pages (ie. real > 64K pages), we

[PATCH] [POWERPC] Free a PTE bit on ppc64 with 64K pages

2008-05-28 Thread Benjamin Herrenschmidt
This patch frees a PTE bit when using 64K pages on ppc64. This is done by getting rid of the separate _PAGE_HASHPTE bit. Instead, we just test if any of the 16 sub-page bits is set. For non-combo pages (ie. real 64K pages), we set SUB0 and the location encoding in that field. Signed-off-by: Benjam