drm/i915/guc: Init send_mutex in intel_uc_init_early()
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>
Fri, 25 Nov 2016 17:59:36 +0000 (18:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Nov 2016 21:42:36 +0000 (21:42 +0000)
commit413e8fdb6ae7ef074cb0393adada2658217ec48d
treebea17451ed3eb25eda98e13c4e6b5ed8167a1c4a
parent2d803c2de09ececa77395e48193fa51c4a2f8def
drm/i915/guc: Init send_mutex in intel_uc_init_early()

send_mutex is used to serialise communication with GuC via
intel_guc_send().

Since functions that utilize it are no longer limited to submission,
initialization should be handled as a part of general setup.

v2: move initialization to *_early()

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1480096777-12573-5-git-send-email-arkadiusz.hiler@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_uc.c
drivers/gpu/drm/i915/intel_uc.h