[Intel-gfx] [PATCH 3/6] drm/i915: destroy existing error_state when simulating a gpu hang
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Apr 25 13:57:10 CEST 2012
This way we can simulate a bunch of gpu hangs and run the error_state
capture code every time (without the need to reload the module).
Signed-Off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index e2f96d2..819b4a9 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -1648,6 +1648,8 @@ i915_ring_stop_write(struct file *filp,
DRM_DEBUG_DRIVER("Stopping rings 0x%08x\n", val);
mutex_lock(&dev->struct_mutex);
+ i915_destroy_error_state(dev);
+
dev_priv->stop_rings = val;
mutex_unlock(&dev->struct_mutex);
--
1.7.9
More information about the Intel-gfx
mailing list