drm/i915: Catch attempting to use the aliasing_gtt's drm_mm
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 15 Jan 2017 13:47:46 +0000 (13:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jan 2017 12:21:19 +0000 (12:21 +0000)
commit3fec7ec4450fee2f18fe20088209193999d8ff94
tree171823e8686a1a6805c278f0338566cba612976e
parent6f13f29f2c19d1845698480ea5b7f6c77abb2b8a
drm/i915: Catch attempting to use the aliasing_gtt's drm_mm

The aliasing_gtt is just that, an alias of the global GTT. We do not
populate it directly, instead we always use the global GTT. Catch any
attempt to incorrectly allocate ranges from the aliasing_gtt.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170115134746.29325-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c