Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
From: Andi Kleen
Date: Sun Jul 13 2008 - 14:26:22 EST
Arjan van de Ven <arjan@xxxxxxxxxxxxx> writes:
>
> for the 2mb case.. please find me a dimm which isn't a multiple of
> 2Mb ;-)
DIMMs are not necessarily mapped continuously. Often they are mapped
"around" holes. Or some parts of the DIMM disappear magically for
some hidden purpose like SMM. The actual DIMM sizes don't matter, but what
matters is what memory map the kernel sees after all translation
done in other layers. And that end result is not necessarily
aligned to 2MB.
In that case pretty much all 64bit kernels will overmap slightly,
32bit kernels sometimes (e.g. under the right PAGE_OFFSET split
or when the <4GB hole is very large)
-Andi
--
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/