Skip to contentSkip to conversation

drm/i915: Additional debug for TDR

RFC In review Lister, Ian 1 participant 1 message Dec 16, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 7/13 drm/i915: Additional debug for TDR

Quoted 1 line

From d9e59b16738684ccbc8a82db5b46ab6c0daf507e Mon Sep 17 00:00:00 2001

Message-Id: <d9e59b16738684ccbc8a82db5b46ab6c0daf507e.1387201899.git.ian.lister@intel.com>
In-Reply-To: <[email protected]>
References: <[email protected]>
From: ian-lister <[email protected]>
Date: Tue, 10 Dec 2013 14:56:06 +0000
Subject: [RFC 07/13] drm/i915: Additional debug for TDR

Additional debug in i915_request_guilty and gen6_do_reset.

---
 drivers/gpu/drm/i915/i915_gem.c     | 4 ++++
 drivers/gpu/drm/i915/intel_uncore.c | 2 ++
 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/i915_gem.c +4 -0
index 42a1647..5b76da4 100644
@@ -2251,12 +2251,16 @@ static bool i915_request_guilty(struct drm_i915_gem_request *request,
 		if (i915_head_inside_object(acthd, request->batch_obj,
 					    request_to_vm(request))) {
 			*inside = true;
+			DRM_DEBUG_TDR("Head in obj 0x%08x\n",
+				request->batch_obj);
 			return true;
 		}
 	}
 
 	if (i915_head_inside_request(acthd, request->head, request->tail)) {
 		*inside = false;
+		DRM_DEBUG_TDR("Head in req 0x%08x (HD: 0x%08x TL: 0x%08x)\n",
+			request, request->head, request->tail);
 		return true;
 	}
 
drivers/gpu/drm/i915/intel_uncore.c +2 -0
index 8ab5385..79182bd 100644
@@ -959,6 +959,8 @@ static int gen6_do_reset(struct drm_device *dev)
 	int	ret;
 	unsigned long irqflags;
 
+	DRM_ERROR("Reset GPU (GPU Hang)\n");
+
 	/* Hold uncore.lock across reset to prevent any register access
 	 * with forcewake not set correctly
 	 */
Signature · 1 line
1.8.5.1