Re: [Intel-gfx] [PATCH v2] drm/i915/guc: Retry GuC load for all load failures

2019-03-30 Thread Chris Wilson
Quoting Chris Wilson (2019-03-30 08:01:28)
> Quoting Robert M. Fosha (2019-03-29 23:17:46)
> > Currently we only retry to load GuC firmware if the load fails due to
> > timeout. On Gen9 GuC loading may fail for different reasons, not just
> > hang/timeout. Direction from the GuC team is to retry for all cases of
> > GuC load failure on Gen9, not just for timeout.
> 
> Worst case is we get the same error 3 times before giving up.
> 
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108593
> > Signed-off-by: Robert M. Fosha 
> > Cc: Daniele Ceraolo Spurio 
> > Cc: Michal Wajdeczko 
> Reviewed-by: Chris Wilson 

And pushed, thanks for the fix.
-Chris
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v2] drm/i915/guc: Retry GuC load for all load failures

2019-03-30 Thread Chris Wilson
Quoting Robert M. Fosha (2019-03-29 23:17:46)
> Currently we only retry to load GuC firmware if the load fails due to
> timeout. On Gen9 GuC loading may fail for different reasons, not just
> hang/timeout. Direction from the GuC team is to retry for all cases of
> GuC load failure on Gen9, not just for timeout.

Worst case is we get the same error 3 times before giving up.

> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108593
> Signed-off-by: Robert M. Fosha 
> Cc: Daniele Ceraolo Spurio 
> Cc: Michal Wajdeczko 
Reviewed-by: Chris Wilson 
-Chris
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH v2] drm/i915/guc: Retry GuC load for all load failures

2019-03-29 Thread Robert M. Fosha
Currently we only retry to load GuC firmware if the load fails due to
timeout. On Gen9 GuC loading may fail for different reasons, not just
hang/timeout. Direction from the GuC team is to retry for all cases of
GuC load failure on Gen9, not just for timeout.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108593
Signed-off-by: Robert M. Fosha 
Cc: Daniele Ceraolo Spurio 
Cc: Michal Wajdeczko 
---
 drivers/gpu/drm/i915/intel_uc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_uc.c b/drivers/gpu/drm/i915/intel_uc.c
index 2d360d53757f..25b80ffe71ad 100644
--- a/drivers/gpu/drm/i915/intel_uc.c
+++ b/drivers/gpu/drm/i915/intel_uc.c
@@ -375,7 +375,7 @@ int intel_uc_init_hw(struct drm_i915_private *i915)
 
intel_guc_init_params(guc);
ret = intel_guc_fw_upload(guc);
-   if (ret == 0 || ret != -ETIMEDOUT)
+   if (ret == 0)
break;
 
DRM_DEBUG_DRIVER("GuC fw load failed: %d; will reset and "
-- 
2.21.0.5.gaeb582a983

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx