From: Michel =?ISO-8859-1?Q?D=E4nzer?= Subject: Re: [PATCH] drm/radeon: delay virtual address destruction to bo destruction Date: Wed, 08 Aug 2012 17:19:29 +0200 Message-ID: <1344439169.17900.255.camel@thor.local> References: <1344436569-955-1-git-send-email-j.glisse@gmail.com> 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 54FE79F4F6 for ; Wed, 8 Aug 2012 08:19:41 -0700 (PDT) In-Reply-To: <1344436569-955-1-git-send-email-j.glisse@gmail.com> 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: j.glisse@gmail.com Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Mit, 2012-08-08 at 10:36 -0400, j.glisse@gmail.com wrote: = > From: Jerome Glisse > = > Use the ttm bo delayed destruction queue so that we don't block > userspace when destroying bo. The virtual address destruction > will happen at same time as the real bo destruction when everythings > using the bo is done. I'm on the fence about whether it's better to block or not here. If we don't, userspace will still need to defer at least the virtual address space deallocation. It might be easier (and less prone to subtle bugs) to just defer the BO destruction in userspace to avoid blocking here. -- = Earthling Michel D=E4nzer | http://www.amd.com Libre software enthusiast | Debian, X and DRI developer