]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55fb2ee14f7f5a8b6826a8ff04f23abed23fb1be
tree57d7d64809609c142e8fed7ff31be1615ab10d22
parentdf81894d8d23c1e8487ff4ff15c2a2d8dc495b9c
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