[PATCH 20/26] drm/i915: Print guc request restart after reset

Michel Thierry michel.thierry at intel.com
Mon Apr 24 20:42:58 UTC 2017


After resetting, print in the debug log the requests that the engine will
restart from. This was already printed in execlists mode, and can be
useful in GuC submission mode too.

Suggested-by: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Michel Thierry <michel.thierry at intel.com>
---
 drivers/gpu/drm/i915/intel_lrc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 7df278fe492e..ab55cad6b2e5 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -1186,6 +1186,12 @@ static int gen8_init_common_ring(struct intel_engine_cs *engine)
 		execlists_submit_ports(engine);
 	}
 
+	if (dev_priv->guc.execbuf_client)
+		DRM_DEBUG_DRIVER("GuC Restarting %s from requests [0x%x, 0x%x]\n",
+				 engine->name,
+				 port_seqno(&engine->execlist_port[0]),
+				 port_seqno(&engine->execlist_port[1]));
+
 	return 0;
 }
 
-- 
2.11.0



More information about the Intel-gfx-trybot mailing list