From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Show waiter's status on engine dump
Date: Wed, 21 Nov 2018 15:27:21 +0000 [thread overview]
Message-ID: <08c10b3d-c0dc-92fd-7ab3-b447e9f2f63e@linux.intel.com> (raw)
In-Reply-To: <20181121151653.24595-1-chris@chris-wilson.co.uk>
On 21/11/2018 15:16, Chris Wilson wrote:
> 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>
> ---
> drivers/gpu/drm/i915/intel_engine_cs.c | 6 ++++--
> 1 file 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..99b05fc3bb24 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,
> 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);
>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-11-21 15:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-21 13:09 [PATCH] drm/i915: Show waiter's status on engine dump Chris Wilson
2018-11-21 15:08 ` Tvrtko Ursulin
2018-11-21 15:14 ` Chris Wilson
2018-11-21 15:16 ` Chris Wilson
2018-11-21 15:27 ` Tvrtko Ursulin [this message]
2018-11-21 15:22 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-11-21 15:50 ` ✓ Fi.CI.BAT: success for drm/i915: Show waiter's status on engine dump (rev2) Patchwork
2018-11-22 1:12 ` ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08c10b3d-c0dc-92fd-7ab3-b447e9f2f63e@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.