drm/i915: Objects on the unbound list may still have an active reference
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Sep 2014 10:16:08 +0000 (11:16 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 12:41:14 +0000 (14:41 +0200)
commit21ab4e746d4d455fef66e2bef8c0442eb369a1d4
tree57d7d64809609c142e8fed7ff31be1615ab10d22
parent344c5bbcb7a282cc59e2f111c8801106c4fe315c
drm/i915: Objects on the unbound list may still have an active reference

Due to the lazy retirement semantics, even though we have unbound an
object, it may still hold onto an active reference. So in the debug code,
play safe.

v2: Export i915_gem_shrink() rather than opencoding it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c