Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit

From: Arjan van de Ven
Date: Sun Jul 13 2008 - 11:33:57 EST


On Sun, 13 Jul 2008 16:57:50 +0200
Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> Arjan van de Ven <arjan@xxxxxxxxxxxxx> writes:
>
> > On Wed, 9 Jul 2008 20:15:02 -0700
> > Yinghai Lu <yhlu.kernel@xxxxxxxxx> wrote:
> >
> >>
> >>
> >> fix phys_pmd_init to make sure not to return big value than end.
> >>
> >> also print out range split:1G/2M/4K
> >>
> >> Signed-off-by: Yinghai Lu <yhlu.kernel@xxxxxxxxx>
> >
> >
> > Making an accurate mapping solves a lot of potentially nasty/tricky
> > corner cases, so I like the approach
>
> It also means that e.g. on a 1GB system the direct mapping will
> never use 1GB pages.
>
> And the CPU has to handle this anyways because all the old
> kernels overmap and no x86 CPU can drop support for all old
> kernels.

for the 2mb case.. please find me a dimm which isn't a multiple of
2Mb ;-)

--
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/