drm/i915: Mark GEM wedged right after marking device unplugged
authorJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Sat, 6 Apr 2019 10:40:34 +0000 (11:40 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 6 Apr 2019 11:42:27 +0000 (12:42 +0100)
commit141f3767e7b8f32ce7210ef4b716d41bae72a54d
tree48d0d35684e2cae542e865f77ef4f864a11819eb
parent95007efbe608fe888469b5c22d01c54c4d2b3bf1
drm/i915: Mark GEM wedged right after marking device unplugged

As soon as a device is considered unplugged, not only prevent pending
users from accessing the device structures but also cancel all their
pending requests so all consumed resources can be cleaned up as soon
as possible.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190406104034.31380-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h