lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: mtrr cleanup for converting continuous to discrete layout v3

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

> some BIOS like to use continus MTRR layout, and some 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.
>
> v2: fix -1 for UC checking

> v3: default to disable, and need use enable_mtrr_cleanup to enable
> this feature
> skip the var state change warning.
> remove next_basek in range_to_mtrr()

a boot option is often inconvenient though - could you perhaps also make
this a Kconfig option, with it defaulting to off? Something like
CONFIG_MTRR_SANITIZE=y or so? That way distros can make a conscious
decision as well whether they want this feature (for the Xorg they pick)
or not.

Ingo


\
 
 \ /
  Last update: 2008-04-28 22:17    [W:0.127 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site