drm/i915/gt: Don't declare hangs if engine is stalled
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 May 2020 07:41:00 +0000 (08:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 May 2020 16:53:52 +0000 (17:53 +0100)
commitba03a63d76ac8131fad58c34fb793d18b0a8964c
treef7a3a9c3581f30da62143ba811e3f26e86cb0b89
parentbffa18dd0bca90112746bafd333386c71fe55efe
drm/i915/gt: Don't declare hangs if engine is stalled

If the ring submission is stalled on an external request, nothing can be
submitted, not even the heartbeat in the kernel context. Since nothing
is running, resetting the engine/device does not unblock the system and
is pointless. We can see if the heartbeat is supposed to be running
before declaring foul.

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/20200528074109.28235-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c