diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-06 22:34:10 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-07 07:49:55 +0000 |
commit | 3466a3def2c01e0ee3e2035f2dc988816cfab460 (patch) | |
tree | ef8d5d849a0391235655a8ebc7610e3aac3af6f0 /drivers/gpu/drm/i915/gem/selftests/huge_pages.c | |
parent | 70dfbc29ab9b39b34b4713fb6bacc05d8109968b (diff) | |
download | linux-3466a3def2c01e0ee3e2035f2dc988816cfab460.tar.bz2 |
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: 841e86728615 ("drm/i915/gt: Only drop heartbeat.systole if the sole owner")
References: 058179e72e09 ("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
Diffstat (limited to 'drivers/gpu/drm/i915/gem/selftests/huge_pages.c')
0 files changed, 0 insertions, 0 deletions