drm/i915: Reject vma creation larger than address space
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jan 2017 19:26:56 +0000 (19:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Jan 2017 10:32:00 +0000 (10:32 +0000)
commit1fcdaa7e72a7666a8367cabd77db092992357328
tree593815424051c79fe2eb543ba7b3158445d2fe19
parentbefedbb7e24935e149640ddfc2b82dab42985e3c
drm/i915: Reject vma creation larger than address space

Disallow creation of a vma that is larger than the available address
space, or triggers an overflow on fence expansion.

Testcase: igt/gem_exec_reloc/gtt-32
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170119192659.31789-3-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_vma.c