public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Lazily apply the SNB+ seqno w/a
Date: Fri, 10 Aug 2012 11:38:06 +0200	[thread overview]
Message-ID: <20120810093800.GA5738@phenom.ffwll.local> (raw)
In-Reply-To: <20120809102916.GB5367@phenom.ffwll.local>

On Thu, Aug 09, 2012 at 12:29:16PM +0200, Daniel Vetter wrote:
> On Thu, Aug 09, 2012 at 10:58:30AM +0100, Chris Wilson wrote:
> > Avoid the forcewake overhead when simply retiring requests, as often the
> > last seen seqno is good enough to satisfy the retirment process and will
> > be promptly re-run in any case. Only ensure that we force the coherent
> > seqno read when we are explicitly waiting upon a completion event to be
> > sure that none go missing, and also for when we are reporting seqno
> > values in case of error or debugging.
> > 
> > This greatly reduces the load for userspace using the busy-ioctl to
> > track active buffers, for instance halving the CPU used by X in pushing
> > the pixels from a software render (flash). The effect will be even more
> > magnified with userptr and so providing a zero-copy upload path in that
> > instance, or in similar instances where X is simply compositing DRI
> > buffers.
> > 
> > v2: Reverse the polarity of the tachyon stream. Daniel suggested that
> > 'force' was too generic for the parameter name and that 'lazy_coherency'
> > better encapsulated the semantics of it being an optimization and its
> > purpose. Also notice that gen6_get_seqno() is only used by gen6/7
> > chipsets and so the test for IS_GEN6 || IS_GEN7 is redundant in that
> > function.
> > 
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> 
> Yeah, I like the new color.
> 
> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> 
> I'll muse over this some more before picking it up, just in case I'll
> notice a place this could blow up ...

Ok, slurped into dinq, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48

      reply	other threads:[~2012-08-10  9:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09  9:18 [PATCH] drm/i915: Lazily apply the SNB+ seqno w/a Chris Wilson
2012-08-09  9:58 ` Chris Wilson
2012-08-09 10:29   ` Daniel Vetter
2012-08-10  9:38     ` Daniel Vetter [this message]

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=20120810093800.GA5738@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox