drm/i915: Uninterruptibly drain the timelines on unwedging
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 15:37:05 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 16:47:36 +0000 (16:47 +0000)
commit13e87536de1afb5208982166e1c0afa90eda78d9
treeae74a5d02e7f8c6335d1ac1a5e96cbaeb126d851
parent0eb6a3f7ef99e7de19efb1293be0571b1d4e83cd
drm/i915: Uninterruptibly drain the timelines on unwedging

On wedging, we mark all executing requests as complete and all pending
requests completed as soon as they are ready. Before unwedging though we
wish to flush those pending requests prior to restoring default
execution, and so we must wait. Do so uninterruptibly as we do not provide
the EINTR gracefully back to userspace in this case but persists in
keeping the permanently wedged state without restarting the syscall.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190208153708.20023-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_reset.c