]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Assert that created vma has a whole number of pages
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jan 2017 19:26:59 +0000 (19:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Jan 2017 10:32:32 +0000 (10:32 +0000)
commit4dc71f818085850f99d17387bce0b0b210fa5c31
treeb25895d2854daf735dcb9221d78174fda15ed662
parent1ba4347f92a3d73d375bc909f90499a08234d4b4
drm/i915: Assert that created vma has a whole number of pages

VMA (and their objects) are supposed to composed of whole pages. Add an
assert to catch any invalid construct when we create the VMA.

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