From: Jeff McGee <jeff.mc...@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.mc...@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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to