Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307362
b: refs/heads/master
c: 2b9dc9a
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed May 5, 2012
1 parent 72ddedb commit c83bb49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 350d2706209cabb187a86508ecd7763237f938c8
refs/heads/master: 2b9dc9a27b5869f082b08306da14f7c232693954
12 changes: 12 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ static int gen6_do_reset(struct drm_device *dev, u8 flags)

static int intel_gpu_reset(struct drm_device *dev, u8 flags)
{
struct drm_i915_private *dev_priv = dev->dev_private;
int ret = -ENODEV;

switch (INTEL_INFO(dev)->gen) {
Expand All @@ -788,6 +789,17 @@ static int intel_gpu_reset(struct drm_device *dev, u8 flags)
break;
}

/* Also reset the gpu hangman. */
if (dev_priv->stop_rings) {
DRM_DEBUG("Simulated gpu hang, resetting stop_rings\n");
dev_priv->stop_rings = 0;
if (ret == -ENODEV) {
DRM_ERROR("Reset not implemented, but ignoring "
"error for simulated gpu hangs\n");
ret = 0;
}
}

return ret;
}

Expand Down

0 comments on commit c83bb49

Please sign in to comment.