diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-26 20:03:43 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-11-02 11:02:00 -0400 |
commit | c8247c067159782a27c4f2c371c9e26827131a78 (patch) | |
tree | c75feab26a3f97c7ab65b6b125fc218d93515f65 | |
parent | 56cea32382bcad7eea0a1af5c448089c08ec9f1f (diff) |
drm/i915: Show the execlist queue in debugfs/i915_engine_info
When looking at freezes whilst working on execlists, knowing the order
of the pending requests in the driver is useful.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20161027000348.4641-2-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index bc9c0cdeb3b3..c9465fbff2df 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -3255,6 +3255,12 @@ static int i915_engine_info(struct seq_file *m, void *unused) | |||
3255 | else | 3255 | else |
3256 | seq_printf(m, "\t\tELSP[1] idle\n"); | 3256 | seq_printf(m, "\t\tELSP[1] idle\n"); |
3257 | rcu_read_unlock(); | 3257 | rcu_read_unlock(); |
3258 | |||
3259 | spin_lock_irq(&engine->execlist_lock); | ||
3260 | list_for_each_entry(rq, &engine->execlist_queue, execlist_link) { | ||
3261 | print_request(m, rq, "\t\tQ "); | ||
3262 | } | ||
3263 | spin_unlock_irq(&engine->execlist_lock); | ||
3258 | } else if (INTEL_GEN(dev_priv) > 6) { | 3264 | } else if (INTEL_GEN(dev_priv) > 6) { |
3259 | seq_printf(m, "\tPP_DIR_BASE: 0x%08x\n", | 3265 | seq_printf(m, "\tPP_DIR_BASE: 0x%08x\n", |
3260 | I915_READ(RING_PP_DIR_BASE(engine))); | 3266 | I915_READ(RING_PP_DIR_BASE(engine))); |