From: Daniel Vetter Subject: [PATCH 17/43] drm/i915: destroy existing error_state when simulating a gpu hang Date: Wed, 14 Dec 2011 13:57:14 +0100 Message-ID: <1323867460-5486-17-git-send-email-daniel.vetter@ffwll.ch> References: <1323867460-5486-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ww0-f43.google.com (mail-ww0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 94840A09DD for ; Wed, 14 Dec 2011 05:01:16 -0800 (PST) Received: by mail-ww0-f43.google.com with SMTP id ds11so1360825wgb.12 for ; Wed, 14 Dec 2011 05:01:16 -0800 (PST) In-Reply-To: <1323867460-5486-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Keith Packard Cc: Daniel Vetter , intel-gfx List-Id: intel-gfx@lists.freedesktop.org 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 --- 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 b8a1770..4a30756 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -1444,6 +1444,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.7.3