From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Allow concurrent read access between CPU and GPU domain Date: Wed, 11 Apr 2012 12:09:49 +0200 Message-ID: <20120411100949.GE4296@phenom.ffwll.local> References: <1334055170-18691-1-git-send-email-chris@chris-wilson.co.uk> <1334093721_352784@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 42C4D9FD69 for ; Wed, 11 Apr 2012 03:08:57 -0700 (PDT) Received: by werp11 with SMTP id p11so540817wer.36 for ; Wed, 11 Apr 2012 03:08:56 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1334093721_352784@CP5-2952> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Apr 10, 2012 at 10:35:19PM +0100, Chris Wilson wrote: > On Tue, 10 Apr 2012 11:52:50 +0100, Chris Wilson 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