All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Ben Widawsky <ben@bwidawsk.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: specify the address of the semaphore register for comparison
Date: Wed, 21 Sep 2011 15:49:07 +0100	[thread overview]
Message-ID: <c55c5d$iap4e@AZSMGA002.ch.intel.com> (raw)
In-Reply-To: <20110921072503.53550c40@bwidawsk.net>

On Wed, 21 Sep 2011 07:25:03 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> On Wed, 21 Sep 2011 12:42:22 +0100
> Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > ---
> >  drivers/gpu/drm/i915/intel_ringbuffer.c |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c
> > b/drivers/gpu/drm/i915/intel_ringbuffer.c index 5fa3d99..6b9790e
> > 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c
> > +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
> > @@ -359,7 +359,8 @@ intel_ring_sync(struct intel_ring_buffer *ring,
> >  			intel_ring_sync_index(ring, to) << 17 |
> >  			MI_SEMAPHORE_COMPARE);
> >  	intel_ring_emit(ring, seqno);
> > -	intel_ring_emit(ring, 0);
> > +	intel_ring_emit(ring,
> > +			RING_SYNC_0(to->mmio_base) +
> > 4*intel_ring_sync_index(ring,to)); intel_ring_emit(ring, MI_NOOP);
> >  	intel_ring_advance(ring);
> >  
> 
> I'm sort of afraid this is just papering over the issue, ie. the mmio
> access is just adding delay that happens to make it work. I think we
> should follow up with devs on this one.

In the broken English from the spec in front of me:

PointerBitFieldName/MMIO Register Address
Project: All
Address: GraphicsVirtualAddress[31:2]
Surface Type: Semaphore
if Compare Register bit[18] is set, this field if the Graphics Memory Address of the 32 bit value for the semaphore.
If Compare Register bit[18] is cleared, this field is the MMIO address of the register for the semaphore.

I'm embarrassed to have only set the field for Update and not Compare.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2011-09-21 14:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21 11:42 [PATCH] drm/i915: specify the address of the semaphore register for comparison Chris Wilson
2011-09-21 12:46 ` Daniel Vetter
2011-09-21 13:16   ` Chris Wilson
2011-09-21 14:25 ` Ben Widawsky
2011-09-21 14:49   ` Chris Wilson [this message]
2011-09-21 16:07     ` Ben Widawsky

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='c55c5d$iap4e@AZSMGA002.ch.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=ben@bwidawsk.net \
    --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.