drm/i915/gt: Double check heartbeat timeout before resetting
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Feb 2021 21:13:03 +0000 (21:13 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Mar 2021 18:31:59 +0000 (19:31 +0100)
commit2827ce6e543086deb24a46ddedc5a8a072275670
tree470abd495b1a718854b8f2e2fc62a7a1823cada0
parent10c5585b5172921c9e4ccbae57637205abd5bda1
drm/i915/gt: Double check heartbeat timeout before resetting

Check that we have actually passed the heartbeat interval since last
checking the request before resetting the device.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2780
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/20210204211303.21347-2-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c