[PATCH] drm/radeon: delay virtual address destruction to bo destruction

Michel Dänzer michel at daenzer.net
Wed Aug 8 08:19:29 PDT 2012


On Mit, 2012-08-08 at 10:36 -0400, j.glisse at gmail.com wrote: 
> From: Jerome Glisse <jglisse at redhat.com>
> 
> 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änzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the dri-devel mailing list