drm/i915/guc: Propagate the fw xfer timeout
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Oct 2018 19:55:36 +0000 (20:55 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Oct 2018 16:12:22 +0000 (17:12 +0100)
commitfbffc5a3b877adc0c5334f3f6ff628ffb7e70d5e
treeff1ba4432a69b0fb893e7a5aef397ada26d071a2
parent7b5543015bbd31104be63dd9cf5cb6ad8e61fe17
drm/i915/guc: Propagate the fw xfer timeout

Propagate the timeout on transferring the fw back to the caller where it
may act upon it, usually by restarting the xfer before failing.

v2: Simplify the wait to only wait upon the guc signaling completion,
with an assertion that the fw xfer must have completed for it to be
ready!

Testcase: igt/drv_selftest/live_hangcheck
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181018195536.11522-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_fw.c