Intel-GFX Archive on lore.kernel.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: Allow concurrent read access between CPU and GPU domain
Date: Wed, 11 Apr 2012 12:09:49 +0200	[thread overview]
Message-ID: <20120411100949.GE4296@phenom.ffwll.local> (raw)
In-Reply-To: <1334093721_352784@CP5-2952>

On Tue, Apr 10, 2012 at 10:35:19PM +0100, Chris Wilson wrote:
> On Tue, 10 Apr 2012 11:52:50 +0100, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > Similar to allowing a buffer to be simultaneously read by the GPU and
> > through the GTT, we wish to allow readback of the pages through the CPU
> > domain whilst they are also being read by the GPU. Domain coherency
> > is managed by allowing multiple readers, but only a single writer.
> > 
> > This is used by mesa for its program cache which it may search for every
> > new program every frame and then renews should it need to add. During
> > renewal, mesa copies the program bo currently executing through a CPU
> > mapping onto the new bo. This patch allows the search and that copy to
> > proceed without causing a stall on the current batch.
> 
> At Daniel's request, I added i-g-t/gem_cpu_concurrent_blit to catch the
> possible bugs that may have been introduced by this patch.
Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48

      reply	other threads:[~2012-04-11 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-10 10:52 [PATCH] drm/i915: Allow concurrent read access between CPU and GPU domain Chris Wilson
2012-04-10 21:35 ` Chris Wilson
2012-04-11 10:09   ` 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=20120411100949.GE4296@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