linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* using different format for hugetlbfs
@ 2009-12-04  7:18 Kumar Gala
  2009-12-04  8:58 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 9+ messages in thread
From: Kumar Gala @ 2009-12-04  7:18 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, David Gibson; +Cc: linux-ppc list

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 0.

Could we use something like:

addr[0:51] || shift [52:59] || flags [60:63]

with the LSB flag being 'normal pointer' vs 'hugetlbfs mangled  
pointer'.  Seems like shift will at most be 64 so 8-bits should cover  
it.

- k

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-12-09  2:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04  7:18 using different format for hugetlbfs Kumar Gala
2009-12-04  8:58 ` Benjamin Herrenschmidt
2009-12-04 14:09   ` Kumar Gala
2009-12-04 21:25     ` Benjamin Herrenschmidt
2009-12-06  3:05       ` Kumar Gala
2009-12-07  1:04         ` Benjamin Herrenschmidt
2009-12-08  2:28           ` David Gibson
2009-12-08 15:44             ` Kumar Gala
2009-12-09  2:00               ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).