]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/i915: Show waiter's status on engine dump
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 21 Nov 2018 15:16:53 +0000 (15:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 21 Nov 2018 15:57:46 +0000 (15:57 +0000)
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
drivers/gpu/drm/i915/intel_engine_cs.c

index 885a901b6e1337266f731e51cff204daa39f41c5..759c0fd58f8cde2704034a88a516b5d9bc1f06ef 100644 (file)
@@ -1562,8 +1562,10 @@ void intel_engine_dump(struct intel_engine_cs *engine,
        for (rb = rb_first(&b->waiters); rb; rb = rb_next(rb)) {
                struct intel_wait *w = rb_entry(rb, typeof(*w), node);
 
-               drm_printf(m, "\t%s [%d] waiting for %x\n",
-                          w->tsk->comm, w->tsk->pid, w->seqno);
+               drm_printf(m, "\t%s [%d:%c] waiting for %x\n",
+                          w->tsk->comm, w->tsk->pid,
+                          task_state_to_char(w->tsk),
+                          w->seqno);
        }
        spin_unlock(&b->rb_lock);
        local_irq_restore(flags);