aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 04b2f92eb456..c96a501b8205 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3390,8 +3390,13 @@ i915_gem_ring_throttle(struct drm_device *dev, struct drm_file *file)
3390 u32 seqno = 0; 3390 u32 seqno = 0;
3391 int ret; 3391 int ret;
3392 3392
3393 if (atomic_read(&dev_priv->gpu_error.wedged)) 3393 ret = i915_gem_wait_for_error(&dev_priv->gpu_error);
3394 return -EIO; 3394 if (ret)
3395 return ret;
3396
3397 ret = i915_gem_check_wedge(&dev_priv->gpu_error, false);
3398 if (ret)
3399 return ret;
3395 3400
3396 spin_lock(&file_priv->mm.lock); 3401 spin_lock(&file_priv->mm.lock);
3397 list_for_each_entry(request, &file_priv->mm.request_list, client_list) { 3402 list_for_each_entry(request, &file_priv->mm.request_list, client_list) {