drm/i915: Don't claim an unstarted request was guilty
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 15:37:08 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 16:47:40 +0000 (16:47 +0000)
commit21182b3c4cbbf57f11fd10ab8832f15767d906b2
tree0afe4a411b3c054958a9f1209c8ba4db92b06fc5
parent72eb16df010a436644c6515892ab8e2c428afe7f
drm/i915: Don't claim an unstarted request was guilty

If we haven't even begun executing the payload of the stalled request,
then we should not claim that its userspace context was guilty of
submitting a hanging batch.

v2: Check for context corruption before trying to restart.
v3: Preserve semaphores on skipping requests (need to keep the timelines
intact).

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-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/selftests/igt_spinner.c
drivers/gpu/drm/i915/selftests/intel_hangcheck.c