drm/i915/gt: Clear the execlists timers upon reset
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Dec 2020 15:12:34 +0000 (15:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Dec 2020 15:41:33 +0000 (15:41 +0000)
commitf867b66e47973dfa420afd00d8f9f7498287bb60
treeb1ce52c84f87d04ec0269b8857dab16a923b1b39
parentcb56a07d2fd9bffbefff38c2918b096c89193218
drm/i915/gt: Clear the execlists timers upon reset

Across a reset, we stop the engine but not the timers. This leaves a
window where the timers have inconsistent state with the engine, but
should only result in a spurious timeout. As we cancel the outstanding
events, also cancel their timers.

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