drm/i915/guc: Fix Gen9 GuC loading workarounds
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 16 Oct 2018 08:59:30 +0000 (08:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Oct 2018 08:08:00 +0000 (09:08 +0100)
commitad52fcc97c2a71362028ee1637e4743da9d3ca2e
treea519c9f4cba9bc4b8f66a6363aacfb4ace75af13
parent593a21a04f99fd4f5454fca5f1b92a5950c35f80
drm/i915/guc: Fix Gen9 GuC loading workarounds

In commit 4502e9ec820d ("drm/i915/uc: Unify firmware loading") we
stopped converting errors detected during firmware transfer into
-EAGAIN and this indirectly killed our workarounds for Gen9 GuC.
Reactivate those workarounds by looking for actual -ETIMEDOUT error.

Testcase: igt@drv_selftest@live_hangcheck
Reported-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
References: commit 4502e9ec820d ("drm/i915/uc: Unify firmware loading")

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