Re: MTRR initialization

From: Avi Kivity
Date: Thu Sep 20 2007 - 08:05:54 EST


Andi Kleen wrote:
Jesse Barnes <jesse.barnes@xxxxxxxxx> writes:
To do this in a nicer way (and be less vulnerable to similar BIOS funkiness) the kernel really needs full PAT support. That should allow WC over WB and WC over UC mappings to occur, at least if I'm remembering the docs right...

PAT only really helps for device driver performance optimizations.
But if the basic WB MTRRs are wrong PAT cannot really salvage it.

Is there any reason not to set the MTRRs to define the entire memory as write back, and use PAT exclusively for setting cacheability?

On my home machine for instance, the BIOS uses all 8 MTRRs leaving none for X. I hacked it by merging a couple of MTRRs but this isn't a generic solution.

--
error compiling committee.c: too many arguments to function

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