Re: [PATCH] x86: mtrr cleanup for converting continuous todiscrete layout v2

From: Ingo Molnar
Date: Mon Apr 28 2008 - 09:08:53 EST



* Yinghai Lu <yhlu.kernel.send@xxxxxxxxx> wrote:

> some BIOS like to use continus MTRR layout, and X driver can not add
> WB entries for graphical cards when 4g or more RAM installed.
>
> the patch will change MTRR to discrete.
>
> mtrr_chunk_size= could be used to have smaller continuous block to
> hold holes. default is 256m, could be set according to size of
> graphics card memory.

hm.

> +static int disable_mtrr_cleanup;

i think this should be default-disabled. Touching MTRRs on a live system
could interact with SMM and MCE handlers.

how relevant is this feature with modern Xorg? I thought modern Xorg
would get its mappings via /sys, hence it would not have to touch MTRRs
at all.

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