Re: using different format for hugetlbfs

2009-12-08 Thread David Gibson
On Tue, Dec 08, 2009 at 09:44:55AM -0600, Kumar Gala wrote: > > On Dec 7, 2009, at 8:28 PM, David Gibson wrote: > > >On Mon, Dec 07, 2009 at 12:04:37PM +1100, Benjamin Herrenschmidt > >wrote: > >> > >>> > >>>Even than, does that preclude the format I suggested? I'm assuming > >>>that pgd_t/pud_t

Re: using different format for hugetlbfs

2009-12-08 Thread Kumar Gala
On Dec 7, 2009, at 8:28 PM, David Gibson wrote: On Mon, Dec 07, 2009 at 12:04:37PM +1100, Benjamin Herrenschmidt wrote: Even than, does that preclude the format I suggested? I'm assuming that pgd_t/pud_t/pmd_t are always a double word so the low order 4- bits should be 0 (on 64-bit), Do

Re: using different format for hugetlbfs

2009-12-07 Thread David Gibson
On Mon, Dec 07, 2009 at 12:04:37PM +1100, Benjamin Herrenschmidt wrote: > > > > > Even than, does that preclude the format I suggested? I'm assuming > > that pgd_t/pud_t/pmd_t are always a double word so the low order 4- > > bits should be 0 (on 64-bit), Double word alignment only gives us 3

Re: using different format for hugetlbfs

2009-12-06 Thread Benjamin Herrenschmidt
> > Even than, does that preclude the format I suggested? I'm assuming > that pgd_t/pud_t/pmd_t are always a double word so the low order 4- > bits should be 0 (on 64-bit), so using the lsb as the flag between > hugetlb and normal pointer should still work. Might do, depends if David has e

Re: using different format for hugetlbfs

2009-12-05 Thread Kumar Gala
On Dec 4, 2009, at 3:25 PM, Benjamin Herrenschmidt wrote: On Fri, 2009-12-04 at 08:09 -0600, Kumar Gala wrote: On Dec 4, 2009, at 2:58 AM, Benjamin Herrenschmidt wrote: On Fri, 2009-12-04 at 01:18 -0600, Kumar Gala wrote: Ben, David, If we want to support true 4G/4G split on ppc32 using th

Re: using different format for hugetlbfs

2009-12-04 Thread Benjamin Herrenschmidt
On Fri, 2009-12-04 at 08:09 -0600, Kumar Gala wrote: > On Dec 4, 2009, at 2:58 AM, Benjamin Herrenschmidt wrote: > > > On Fri, 2009-12-04 at 01:18 -0600, Kumar Gala wrote: > >> Ben, David, > >> > >> If we want to support true 4G/4G split on ppc32 using the MSB of the > >> address to determine of t

Re: using different format for hugetlbfs

2009-12-04 Thread Kumar Gala
On Dec 4, 2009, at 2:58 AM, Benjamin Herrenschmidt wrote: On Fri, 2009-12-04 at 01:18 -0600, Kumar Gala wrote: Ben, David, If we want to support true 4G/4G split on ppc32 using the MSB of the address to determine of the pgd_t is for hugetlbfs isn't going to work. Since every pointer in the p

Re: using different format for hugetlbfs

2009-12-04 Thread Benjamin Herrenschmidt
On Fri, 2009-12-04 at 01:18 -0600, Kumar Gala wrote: > Ben, David, > > If we want to support true 4G/4G split on ppc32 using the MSB of the > address to determine of the pgd_t is for hugetlbfs isn't going to > work. Since every pointer in the pgd_t -> pud_t -> pmd_t is point to > at least a

using different format for hugetlbfs

2009-12-03 Thread Kumar Gala
Ben, David, If we want to support true 4G/4G split on ppc32 using the MSB of the address to determine of the pgd_t is for hugetlbfs isn't going to work. Since every pointer in the pgd_t -> pud_t -> pmd_t is point to at least a 4K page I would think the low order 12-bits should always be