drm/i915/guc: Add uc_fini_wq in gem_init unwind path
authorSagar Arun Kamble <sagar.a.kamble@intel.com>
Wed, 10 Jan 2018 12:54:16 +0000 (18:24 +0530)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Jan 2018 14:03:10 +0000 (14:03 +0000)
commitda943b5ab071584fcb9cfa896dc8c643d376f362
tree7aeb667d700d958d03acba1eed029bd9b8b9cf25
parent17bd6e66d8f677b1b250d098097fbed6e70175ef
drm/i915/guc: Add uc_fini_wq in gem_init unwind path

While moving code around for solving lockdep issue for GuC log relay,
spotted that uc_fini_wq is not being called in failure path in gem_init.
Missed in the below commit. Add it.

v2: Removed GEM_BUG_ON(!HAS_GUC()) from intel_uc_fini_wq as init happens
only based on enable_guc module parameter and does not consider has_guc
capability. (Michal)

Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Fixes: 3176ff49bc3e ("drm/i915/guc: Move GuC workqueue allocations outside of the mutex")
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1515588857-10283-1-git-send-email-sagar.a.kamble@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_uc.c