]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always call i915_gem_reset_finish() following i915_gem_reset_prepare()
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 12 Feb 2017 17:19:59 +0000 (17:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 11:18:18 +0000 (11:18 +0000)
commit0d1b1f6f8067f0e2309d2143329f69401c2324f1
tree5025a67b2aab50562a3fa27adbb8b3462097aa97
parentdce985aef70a79589b2bf45b5dc438c5abc56442
drm/i915: Always call i915_gem_reset_finish() following i915_gem_reset_prepare()

As i915_gem_reset_finish() undoes the steps from
i915_gem_reset_prepare() to leave the system in a fully-working state,
e.g. to be able to free the breadcrumb signal threads, make sure that we
always call it even on the error path.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170212172002.23072-2-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_drv.c