[Intel-gfx] [PATCH 5/9] drm/i915: destroy existing error_state when simulating a gpu hang
Daniel Vetter
daniel.vetter at ffwll.ch
Thu Nov 10 14:18:03 CET 2011
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 63e1c36..2ad2237 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -1443,6 +1443,8 @@ i915_ring_stop_write(struct file *filp,
DRM_DEBUG_DRIVER("Stopping rings %u\n", val);
mutex_lock(&dev->struct_mutex);
+ i915_destroy_error_state(dev);
+
dev_priv->stop_rings = val;
mutex_unlock(&dev->struct_mutex);
--
1.7.6.4
More information about the Intel-gfx
mailing list