]> 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)
commitaf23abacabbcba21b46a3bbe6ff7c66e460e5a10
tree57d7d64809609c142e8fed7ff31be1615ab10d22
parent7cd2a475090be8b9290dc665e7b5854cea5e9a1f
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