From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH] drm/i915: Allow concurrent read access between CPU and GPU domain Date: Tue, 10 Apr 2012 22:35:19 +0100 Message-ID: <1334093721_352784@CP5-2952> References: <1334055170-18691-1-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (smtp.fireflyinternet.com [109.228.6.236]) by gabe.freedesktop.org (Postfix) with ESMTP id E955F9ED77 for ; Tue, 10 Apr 2012 14:35:25 -0700 (PDT) Received: from cantiga.alporthouse.com (unverified [78.156.66.37]) by fireflyinternet.com (Firefly Internet SMTP) with ESMTP id 110850960-1500050 for ; Tue, 10 Apr 2012 22:35:20 +0100 In-Reply-To: <1334055170-18691-1-git-send-email-chris@chris-wilson.co.uk> 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: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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. -Chris -- Chris Wilson, Intel Open Source Technology Centre