drm/i915/guc: Use wait_for_register_fw() while waiting for MMIO response
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 7 Apr 2017 16:01:45 +0000 (16:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 17:48:41 +0000 (18:48 +0100)
commitbea4e4a4f831df1c104be60b3caa7205ba1bb4f9
tree700bbcaee188f1a7835707329f095fbf0fe42dcd
parent1d1a9774e40414148ecebbdb713746bfb6f9a561
drm/i915/guc: Use wait_for_register_fw() while waiting for MMIO response

Waiting for the response status in scratch register can be done
using our generic function. Let's use it.

v2: rebased

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170407160145.181328-2-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_uc.c