]> git.baikalelectronics.ru Git - kernel.git/commit
intel-gtt: maximize ggtt size on platforms that support this
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Sep 2010 16:25:59 +0000 (18:25 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Oct 2010 22:31:07 +0000 (23:31 +0100)
commit62203f55b201d8eeee67c833910c200f975365a3
tree162c9084104373fd587347f5b7b2e20951430d98
parent71c637d90b63ff83b417505e56f36ea55c5172ce
intel-gtt: maximize ggtt size on platforms that support this

On VT-d supporting platforms the GGTT is allocated in a stolen mem
section separate from graphcis stolen mem. The GMCH register contains
a bitfield specifying the size of that region. Docs suggest that this
region can only be used for GGTT and PPGTT. Hence ensure that the
PPGTT is disabled and use the complete area for the GGTT.

Unfortunately the graphics core on G33/Pineview can't cope with really
large GTTs and the BIOS usually enables the maximum of 512MB. So
don't bother with maximizing the GTT on these platforms.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/char/agp/intel-agp.h
drivers/char/agp/intel-gtt.c