]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only preallocate the aliasing GTT to the extents of the global GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 08:43:55 +0000 (08:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 10:07:33 +0000 (10:07 +0000)
commitc9286a9b7a1cf7b2991a8a50f089b24981e6b431
tree751efa8ca6d364ec053d73012991fe53c7182647
parent60d58a4e8ae694c478e17132a350c2e6a7126a48
drm/i915: Only preallocate the aliasing GTT to the extents of the global GTT

As the aliasing GTT is only accessed via the global GTT, we will never
use more of it than we expose via the Global GTT and so we only need to
preallocate sufficient space within the ppgtt for the full GTT. Equally,
if the aliasing GTT is smaller than the global GTT, we have a serious
issue and must bail.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170215084357.19977-21-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c