]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clear the last_retired_context following a hang/reset
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 12 Feb 2017 17:20:02 +0000 (17:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 11:19:12 +0000 (11:19 +0000)
commit8bf8952821d6290ac47f7bf5331bfb2e3c8eed66
treefbfe104987210d1d5a8fdc464ada9bb63e812c08
parentbb88bd4d29656f09e9aa44b5a86c092461fb0302
drm/i915: Clear the last_retired_context following a hang/reset

Following a hang and reset, we know that the engine is idle and all
context state has been saved or lost. Consequently, we know that the
engine is no longer referencing the last context and we can relinquish
our tracking.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170212172002.23072-5-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem.c