drm/i915: unload: ensure that gem is idle
commitc911fc1c6ad61b56869ee521f1a477c741b039da
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Aug 2010 19:23:20 +0000 (20 21:23 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:13:28 +0000 (8 10:13 +0100)
tree4e6ac0096e85ce04c44fe86ad497f531d8792981
parent67e77c5ae8bff6f805d207541f1315051248a87b
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