]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: unload: ensure that gem is idle
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Aug 2010 19:23:20 +0000 (21:23 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:13:28 +0000 (10:13 +0100)
commit69b8c6b1b252495e8e24f0d7b816cdaabf0bb4d0
tree4e6ac0096e85ce04c44fe86ad497f531d8792981
parent7a89441a6a8c0c68f245eb344992aab099cff2f3
drm/i915: unload: ensure that gem is idle

When the module unloads, all users should be gone, hence all bo references
held by userspace, too. This should already result in an idle ringbuffer.
Still, be paranoid and idle gem before starting the unload dance.

Also kill the call to i915_gem_lastclose under an if (kms), it's a noop
for kms.

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