Re: [PATCH] x86: fix PAE pmd_bad bootup warning

From: Hugh Dickins
Date: Thu May 08 2008 - 14:59:39 EST


On Thu, 8 May 2008, Dave Hansen wrote:
>
> But, I do think it is absolutely insane to have pmd_clear_bad() going
> after perfectly good hugetlb pmds. The way it is set up now, people are
> bound to miss the hugetlb pages because just about every single
> pagetable walk has to be specially coded to handle or avoid them. We
> obviously missed it, here, and we had two good examples in the same
> file! :)

Like it or not, the pgd/pud/pmd/pte hierarchy cannot be assumed once
you're amongst hugepages. What happens varies from architecture to
architecture. Perhaps the hugepage specialists could look at what
in fact the different architectures we know today are doing, and
come up with a better abstraction to encompass them all. But it's
simply wrong for a "generic" pagewalker to be going blindly in there.

Two good examples in the same file??

Hugh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/