diff mbox

[2/2] drm/i915: Include current seqno in debugfs i915_gem_request

Message ID 20171013201033.29092-2-jeff.mcgee@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

jeff.mcgee@intel.com Oct. 13, 2017, 8:10 p.m. UTC
From: Jeff McGee <jeff.mcgee@intel.com>

Debugfs i915_gem_request lists the entire queue of requests on the
engine timeline. This will include requests that are complete but not
yet removed from the timeline. So let's include in this snapshot the
current seqno to help separate completed from pending.

Signed-off-by: Jeff McGee <jeff.mcgee@intel.com>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 135828fb1904..36d21f3c31ee 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -670,7 +670,9 @@  static int i915_gem_request_info(struct seq_file *m, void *data)
 			count++;
 
 		if (count) {
-			seq_printf(m, "%s requests: %d\n", engine->name, count);
+			seq_printf(m, "%s: requests %d, current seqno %x\n",
+				   engine->name, count,
+				   intel_engine_get_seqno(engine));
 			list_for_each_entry(req, &engine->timeline->requests, link)
 				print_request(m, req, "    ");
 			any++;