All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org, Daniel J Blueman <daniel@quora.org>
Subject: Re: [PATCH] drm/i915: Use LRI to update the semaphore registers
Date: Wed, 14 Nov 2012 11:06:42 -0800	[thread overview]
Message-ID: <20121114110642.397ca341@bwidawsk.net> (raw)
In-Reply-To: <1352884515-10154-1-git-send-email-chris@chris-wilson.co.uk>

On Wed, 14 Nov 2012 09:15:14 +0000
Chris Wilson <chris@chris-wilson.co.uk> wrote:

> The bspec was recently updated to remove the ability to update the
> semaphore using the MI_SEMAPHORE_BOX command, the ability to wait upon
> the semaphore value remained. Instead the advice is to update the
> register using the MI_LOAD_REGISTER_IMM command. In cursory testing,
> semaphores continue to function - the question is whether this fixes
> some of the deadlocks where the semaphore registers contained stale
> values?
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Daniel J Blueman <daniel@quora.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
> ---
>  drivers/gpu/drm/i915/intel_ringbuffer.c |    7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
> index ee4abc5..dd2e7db 100644
> --- a/drivers/gpu/drm/i915/intel_ringbuffer.c
> +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
> @@ -554,12 +554,9 @@ update_mboxes(struct intel_ring_buffer *ring,
>  	    u32 seqno,
>  	    u32 mmio_offset)
>  {
> -	intel_ring_emit(ring, MI_SEMAPHORE_MBOX |
> -			      MI_SEMAPHORE_GLOBAL_GTT |
> -			      MI_SEMAPHORE_REGISTER |
> -			      MI_SEMAPHORE_UPDATE);
> -	intel_ring_emit(ring, seqno);
> +	intel_ring_emit(ring, MI_LOAD_REGISTER_IMM(1));
>  	intel_ring_emit(ring, mmio_offset);
> +	intel_ring_emit(ring, seqno);
>  }
>  
>  /**



-- 
Ben Widawsky, Intel Open Source Technology Center

  reply	other threads:[~2012-11-14 19:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-14  9:15 [PATCH] drm/i915: Use LRI to update the semaphore registers Chris Wilson
2012-11-14 19:06 ` Ben Widawsky [this message]
2012-11-15 17:14   ` Ben Widawsky
2012-11-20 15:37     ` Daniel Vetter

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=20121114110642.397ca341@bwidawsk.net \
    --to=ben@bwidawsk.net \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel@quora.org \
    --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.