]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Cleanup heartbeat systole first
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Nov 2019 22:34:10 +0000 (22:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Nov 2019 07:49:55 +0000 (07:49 +0000)
commit87a84a3c312236466f227f78d211f41e4482fa56
treeef8d5d849a0391235655a8ebc7610e3aac3af6f0
parent0ea0f8ece344c616a14a55cb8c555bceb68d24d2
drm/i915/gt: Cleanup heartbeat systole first

Before we grab the engine wakeref, tidy up the previous heartbeat
request. If we then abort because the engine powerwell is off, we ensure
the request is freed as we know we will not have freed it when
cancelling the work (as the work is running!).

Fixes: 22a91b1802b8 ("drm/i915/gt: Only drop heartbeat.systole if the sole owner")
References: b83dee92bf75 ("drm/i915/gt: Replace hangcheck by heartbeats")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191106223410.30334-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c