drm/i915: Flush the residual parking on emergency shutdown
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jul 2018 09:44:20 +0000 (10:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jul 2018 12:59:00 +0000 (13:59 +0100)
commit8bcf9f7034d81979837e97a6509b0b2a96f8f4c8
treeede85f6ff536a9db0e07917397d58846b5549f60
parentbf06112f869dd6a6c85a8d9fbbe879fb363011d6
drm/i915: Flush the residual parking on emergency shutdown

On unwinding following a critical failure inside GEM init, we also need
to be sure to flush the workers before unloading the module.

Testcase: igt/drv_module_reload/basic-reload-inject
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180710094421.16223-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_display.c