]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Assert that we have allocated the drm_mm_node upon pinning
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Jan 2017 21:09:26 +0000 (21:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 13 Jan 2017 16:35:27 +0000 (16:35 +0000)
commitfc38d854624e3b6648a656c980dfba0ff94ffcdd
treeb7d21c8699a0c446975e0ed0a9b425913ccf7c05
parentbbf3ddcb271fc6c7263bedf279ec8d4d83ac2656
drm/i915: Assert that we have allocated the drm_mm_node upon pinning

We currently check after the slow path that the vma is bound correctly,
but we don't currently check after the fast path. This is important in
case we accidentally take the fast path and leave the vma misplaced.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111210937.29252-27-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h