mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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
This commit is contained in:
@@ -58,6 +58,8 @@ static void mock_device_release(struct drm_device *dev)
|
||||
mock_device_flush(i915);
|
||||
intel_gt_driver_remove(&i915->gt);
|
||||
|
||||
i915_gem_driver_release__contexts(i915);
|
||||
|
||||
i915_gem_drain_workqueue(i915);
|
||||
i915_gem_drain_freed_objects(i915);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user