drm/i915/selftests: Flush the context worker
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Dec 2019 16:58:20 +0000 (16:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Dec 2019 20:32:06 +0000 (20:32 +0000)
commit4b0dd4a29a8f323e74cc91f7fba41cdf12d0430c
tree42e3cd606986487b1c5aae9d68a2953f0b8a4627
parentecfcd2da335816516dc27434a65899a77886d80a
drm/i915/selftests: Flush the context worker

When cleaning up the mock device, remember to flush the context worker
to free the residual GEM contexts before shutting down the device.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/802
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191230165821.3840449-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c