drm/i915: Reject huge tiled objects
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 8 May 2015 11:37:39 +0000 (14:37 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 15:25:29 +0000 (17:25 +0200)
commite7ded2d74673c2cdabd1f80da8c8a1b7b531e84a
tree06bba71130f39fd598a57c5358cc070b6a633be1
parent71849b67e788ca8899982df7adf21f61f44cb474
drm/i915: Reject huge tiled objects

We do not yet support tiled objects bigger than the mappable
aperture size so reject them.

Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
[danvet: Rework the check a bit to avoid warnings.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c