aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-11-21 10:16:53 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2018-11-21 10:57:46 -0500
commitaa6a65daca110df41ac0224bea1198dc97fd6695 (patch)
treef197c3feafb14c757c4d0ffb7df9bd1e8953a420 /drivers/gpu/drm
parentf43348a3db89305bb1935da9fe4499fdcdde9796 (diff)
drm/i915: Show waiter's status on engine dump
When showing the list of waiters, include the task's status so that we can tell if they have been woken up and are waiting for the CPU, or if they are still waiting to be woken. v2: task_state_to_char() Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181121151653.24595-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/intel_engine_cs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c
index 885a901b6e13..759c0fd58f8c 100644
--- a/drivers/gpu/drm/i915/intel_engine_cs.c
+++ b/drivers/gpu/drm/i915/intel_engine_cs.c
@@ -1562,8 +1562,10 @@ void intel_engine_dump(struct intel_engine_cs *engine,
1562 for (rb = rb_first(&b->waiters); rb; rb = rb_next(rb)) { 1562 for (rb = rb_first(&b->waiters); rb; rb = rb_next(rb)) {
1563 struct intel_wait *w = rb_entry(rb, typeof(*w), node); 1563 struct intel_wait *w = rb_entry(rb, typeof(*w), node);
1564 1564
1565 drm_printf(m, "\t%s [%d] waiting for %x\n", 1565 drm_printf(m, "\t%s [%d:%c] waiting for %x\n",
1566 w->tsk->comm, w->tsk->pid, w->seqno); 1566 w->tsk->comm, w->tsk->pid,
1567 task_state_to_char(w->tsk),
1568 w->seqno);
1567 } 1569 }
1568 spin_unlock(&b->rb_lock); 1570 spin_unlock(&b->rb_lock);
1569 local_irq_restore(flags); 1571 local_irq_restore(flags);