From: Michel =?ISO-8859-1?Q?D=E4nzer?= Subject: Re: [PATCH] drm/radeon: fence virtual address and free it once idle v3 Date: Wed, 08 Aug 2012 15:54:27 +0200 Message-ID: <1344434067.17900.211.camel@thor.local> References: <1344029208-10069-1-git-send-email-j.glisse@gmail.com> <501CE652.7080509@vodafone.de> <501FEB68.5030605@vodafone.de> <501FF6ED.90605@vodafone.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail.gna.ch (darkcity.gna.ch [195.226.6.51]) by gabe.freedesktop.org (Postfix) with ESMTP id A48A1A09CF for ; Wed, 8 Aug 2012 06:54:41 -0700 (PDT) In-Reply-To: <501FF6ED.90605@vodafone.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Christian =?ISO-8859-1?Q?K=F6nig?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Mon, 2012-08-06 at 18:55 +0200, Christian K=F6nig wrote: = > On 06.08.2012 18:30, Jerome Glisse wrote: > > On Mon, Aug 6, 2012 at 12:06 PM, Christian K=F6nig > > wrote: > >> [SNIP] > >> Additional to that patch we still need a minor fix to mesa (just move > >> freeing the VM range after closing the handle). Going to send that in = the > >> next minute to the mesa-dev list. > >> > >> Otherwise the patch indeed fixes the problem, but also isn't the best = idea > >> for performance. > >> > > This does not impact performance, it's all about destroying bo/va so > > it's not a performance path. Or am i missing something here ? > = > radeonsi currently allocates very small BOs (8-32 bytes) for T# = > descriptors, and throws them away immediately after drawing. > = > That alone of course is insane under a performance aspect, but waiting = > for the last job to finish makes things completely worse. Absolutely, but I think blocking on BO destruction really is the fundamental problem. To fix this, an alternative to your patch might be the fenced buffer manager in src/gallium/auxiliary/pipebuffer/. -- = Earthling Michel D=E4nzer | http://www.amd.com Libre software enthusiast | Debian, X and DRI developer