[Intel-gfx] [PATCH 2/2] drm/i915: Include current seqno in debugfs i915_gem_request

jeff.mcgee at intel.com jeff.mcgee at intel.com
Fri Oct 13 20:10:33 UTC 2017


From: Jeff McGee <jeff.mcgee at 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 at intel.com>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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++;
-- 
2.14.2



More information about the Intel-gfx mailing list