]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Count how many VMA are bound for an object
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 06:52:26 +0000 (07:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 07:09:17 +0000 (08:09 +0100)
commit15717de219f2ea4792d27ff62c29d08e46cda7f8
treebddf0f5e92ec4833db4d549e635fa3081bec6b6a
parent2bfa996e031bdc6de1567ee05438f8a310fa7a4c
drm/i915: Count how many VMA are bound for an object

Since we may have VMA allocated for an object, but we interrupted their
binding, there is a disparity between have elements on the obj->vma_list
and being bound. i915_gem_obj_bound_any() does this check, but this is
not rigorously observed - add an explicit count to make it easier.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470293567-10811-7-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_shrinker.c
drivers/gpu/drm/i915/i915_gem_stolen.c