]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use the correct size of the GTT for placing the per-process entries
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Aug 2012 08:12:22 +0000 (09:12 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Aug 2012 09:07:59 +0000 (11:07 +0200)
commit0433d3780e75f35b4060e81b8dab66a73c4969e1
tree2e2f245719fbd172d453212f1ebd47d6c6ada1cc
parent3128fab9821e7413ee7f97406154f02c20db7141
drm/i915: Use the correct size of the GTT for placing the per-process entries

The current layout is to place the per-process tables at the end of the
GTT. However, this is currently using a hardcoded maximum size for the GTT
and not taking in account limitations imposed by the BIOS. Use the value
for the total number of entries allocated in the table as provided by
the configuration registers.

Reported-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Matthew Garret <mjg@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c