Skip to content

Commit ad52fcc

Browse files
mwajdeczickle
authored andcommitted
drm/i915/guc: Fix Gen9 GuC loading workarounds
In commit 4502e9e ("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 4502e9e ("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
1 parent 593a21a commit ad52fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_uc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ int intel_uc_init_hw(struct drm_i915_private *i915)
376376

377377
intel_guc_init_params(guc);
378378
ret = intel_guc_fw_upload(guc);
379-
if (ret == 0 || ret != -EAGAIN)
379+
if (ret == 0 || ret != -ETIMEDOUT)
380380
break;
381381

382382
DRM_DEBUG_DRIVER("GuC fw load failed: %d; will reset and "

0 commit comments

Comments
 (0)