Re: [PATCH libdrm] intel: Leak the userptr test bo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 17, 2015 at 12:22:00PM +0100, Chris Wilson wrote:
> On Fri, Apr 17, 2015 at 11:57:28AM +0100, Tvrtko Ursulin wrote:
> > From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> > 
> > In order to use userptr, the kernel tracks the owner's mm with a
> > mmu_notifier. Setting that is very expensive - it involves taking all
> > mm_locks and a stop_machine(). This tracking lives only for as long as
> > the client is using userptr objects - so if the client allocates then
> > frees a userptr in a loop, we will be executing that heavyweight setup
> > everytime. To ammoritize this cost, just leak the test bo and the single
> > backing page we use for detecting userptr.
> > 
> > v2: Free the object and memory when bufmgr is destroyed.
> > 
> > Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> > Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> Reveiwed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

s/vei/vie/ and merged. Thanks for the patch and review (could it be time
to ask for push access?)

-- 
Damien
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux