[PATCH] drm/i915: add some extra debug to i915_context_is_banned

tim.gore at intel.com tim.gore at intel.com
Thu Apr 14 08:14:24 UTC 2016


From: Tim Gore <tim.gore at intel.com>

For debug/testing purposes. Not to be merged, just sending
to the trybot for CI testing to try to understand what is
happening with all the "gpu hanging too fast" fails on bsw-nuc

Signed-off-by: Tim Gore <tim.gore at intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index b37ffea..adfbd3f 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2694,6 +2694,11 @@ static bool i915_context_is_banned(struct drm_i915_private *dev_priv,
 		} else if (i915_stop_ring_allow_ban(dev_priv)) {
 			if (i915_stop_ring_allow_warn(dev_priv))
 				DRM_ERROR("gpu hanging too fast, banning!\n");
+				DRM_ERROR("prev guilty_ts=%ld, elapsed=%ld, min_period=%ld\n",
+					ctx->hang_stats.guilty_ts, elapsed,
+					ctx->hang_stats.ban_period_seconds);
+				DRM_ERROR("ctx->user_handle=%d, ctx->file_priv=%p\n",
+					ctx->user_handle, ctx->file_priv);
 			return true;
 		}
 	}
-- 
1.9.1



More information about the Intel-gfx-trybot mailing list