Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-17 Thread Aneesh Kumar K.V
Scott Wood writes: > On Wed, 2015-06-17 at 19:45 +1000, Michael Ellerman wrote: >> On Wed, 2015-06-17 at 08:21 +0530, Aneesh Kumar K.V wrote: >> > "Aneesh Kumar K.V" writes: >> > >> > >> > Hi Scott, >> > >> > > Current swap encoding in pte can't support large pfns >> > > above 4TB. Change the

Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-17 Thread Michael Ellerman
On Wed, 2015-06-17 at 16:14 -0500, Scott Wood wrote: > On Wed, 2015-06-17 at 19:45 +1000, Michael Ellerman wrote: > > On Wed, 2015-06-17 at 08:21 +0530, Aneesh Kumar K.V wrote: > > > "Aneesh Kumar K.V" writes: > > > > > > > > > Hi Scott, > > > > > > > Current swap encoding in pte can't support

Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-17 Thread Scott Wood
On Wed, 2015-06-17 at 19:45 +1000, Michael Ellerman wrote: > On Wed, 2015-06-17 at 08:21 +0530, Aneesh Kumar K.V wrote: > > "Aneesh Kumar K.V" writes: > > > > > > Hi Scott, > > > > > Current swap encoding in pte can't support large pfns > > > above 4TB. Change the swap encoding such that we put

Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-17 Thread Michael Ellerman
On Wed, 2015-06-17 at 08:21 +0530, Aneesh Kumar K.V wrote: > "Aneesh Kumar K.V" writes: > > > Hi Scott, > > > Current swap encoding in pte can't support large pfns > > above 4TB. Change the swap encoding such that we put > > the swap type in the PTE bits. Also add build checks > > to make sure

Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-16 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: Hi Scott, > Current swap encoding in pte can't support large pfns > above 4TB. Change the swap encoding such that we put > the swap type in the PTE bits. Also add build checks > to make sure we don't overlap with HPTEFLAGS. > Can you please review this w.r.t 64bit bo

[PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-16 Thread Aneesh Kumar K.V
Current swap encoding in pte can't support large pfns above 4TB. Change the swap encoding such that we put the swap type in the PTE bits. Also add build checks to make sure we don't overlap with HPTEFLAGS. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable-ppc64.h | 26