Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-22 Thread Aneesh Kumar K.V
Paul Mackerras writes: > On Mon, Jul 09, 2012 at 06:43:33PM +0530, Aneesh Kumar K.V wrote: >> From: "Aneesh Kumar K.V" >> >> This patch convert different functions to take virtual page number >> instead of virtual address. Virtual page number is virtual address >> shifted right by VPN_SHIFT (12

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-22 Thread Paul Mackerras
On Mon, Jul 09, 2012 at 06:43:33PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch convert different functions to take virtual page number > instead of virtual address. Virtual page number is virtual address > shifted right by VPN_SHIFT (12) bits. This enable us to have a

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Aneesh Kumar K.V
Stephen Rothwell writes: > Hi Aneesh, > > On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" > wrote: >> >> diff --git a/arch/powerpc/mm/hash_native_64.c >> b/arch/powerpc/mm/hash_native_64.c >> index 660b8bb..308e29d 100644 >> --- a/arch/powerpc/mm/hash_native_64.c >> +++ b/arch/powerpc/mm

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Aneesh Kumar K.V
Stephen Rothwell writes: > Hi Aneesh, > > On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" > wrote: >> >> diff --git a/arch/powerpc/include/asm/mmu-hash64.h >> b/arch/powerpc/include/asm/mmu-hash64.h >> index 1c65a59..1c984a6 100644 >> --- a/arch/powerpc/include/asm/mmu-hash64.h >> +++ b/

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Stephen Rothwell
Hi Aneesh, On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" wrote: > > diff --git a/arch/powerpc/mm/hash_native_64.c > b/arch/powerpc/mm/hash_native_64.c > index 660b8bb..308e29d 100644 > --- a/arch/powerpc/mm/hash_native_64.c > +++ b/arch/powerpc/mm/hash_native_64.c > @@ -39,22 +39,33 @@

Re: [PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Stephen Rothwell
Hi Aneesh, On Mon, 9 Jul 2012 18:43:33 +0530 "Aneesh Kumar K.V" wrote: > > diff --git a/arch/powerpc/include/asm/mmu-hash64.h > b/arch/powerpc/include/asm/mmu-hash64.h > index 1c65a59..1c984a6 100644 > --- a/arch/powerpc/include/asm/mmu-hash64.h > +++ b/arch/powerpc/include/asm/mmu-hash64.h >

[PATCH -V3 03/11] arch/powerpc: Convert virtual address to vpn

2012-07-09 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This patch convert different functions to take virtual page number instead of virtual address. Virtual page number is virtual address shifted right by VPN_SHIFT (12) bits. This enable us to have an address range of upto 76 bits. Signed-off-by: Aneesh Kumar K.V --- arch