On 18.03.2007 [00:02:51 +1100], David Gibson wrote:
> On Fri, Mar 16, 2007 at 10:12:33AM -0700, Nishanth Aravamudan wrote:
> > On 16.03.2007 [10:43:42 +1100], David Gibson wrote:
> > > On Thu, Mar 15, 2007 at 12:28:25PM -0700, Nishanth Aravamudan wrote:
> > > > truncate_above_4GB: Must be built like it is on powerpc due to address
> > > > space restrictions on hugepages.
> > > > brk_near_huge: add next_chunk case for ia64 to express that IA64 huge
> > > > page mappings start at 0x8000000000000000UL (2^63).
> > > > icache-hygeine: IA64 also gets a SIGILL in the icache-hygeiene test, so
> > > > add it to the powerpc conditional and update the comment.
> > > >
> > > > Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
> > >
> > > Acked-by: David Gibson <[EMAIL PROTECTED]>
> > >
> > > [snip]
> > > > diff --git a/tests/brk_near_huge.c b/tests/brk_near_huge.c
> > > > index be54914..4ed6bc9 100644
> > > > --- a/tests/brk_near_huge.c
> > > > +++ b/tests/brk_near_huge.c
> > > > @@ -47,11 +47,16 @@ void *next_chunk(void *addr)
> > > > /* 1TB segments above */
> > > > return PALIGN(addr, 0x10000000000UL);
> > > > }
> > > > -#elif __powerpc__
> > > > +#elif defined(__powerpc__)
> > > > void *next_chunk(void *addr)
> > > > {
> > > > return PALIGN(addr, 0x10000000UL);
> > > > }
> > > > +#elif defined(__ia64__)
> > > > +void *next_chunk(void *addr)
> > > > +{
> > > > + return PALIGN(addr, 0x8000000000000000UL);
> > > > +}
> > >
> > > Now that we have the slice functions in the library, we should export
> > > them and use them here.
> >
> > Good idea, I'll spin up a patch to do this. Hrm, need to add a case to
> > the slice functions for ia64 after all.
> >
> > As I understand it, IA64 has one large slice that can contain huge pages
> > from 2^63 to the end of the address space? Is that accurate?
>
> > So start will always be 2^63 and end will always be 2^64-1?
>
> Uh.. not quite . Hugepages go in region 4, where the region number is
> determined by the top 3 bits of address. So the hugepage area starts
> at 4*2^61, which is indeed 2^63, although you probably don't want to
> think of it that way.
Right, I just wanted to make sure I was getting the constant right.
> The hugepage region extends above that point for as far as the
> pagetables can cover. I think that's a larger region that the
> pagetables cover for the normal pagesize regions, but it certainly
> doesn't reach to the end of the address space.
Ok.
Thanks,
Nish
--
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel