Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Maarten Lankhorst
Hey, Op 14-02-13 11:22, Arnd Bergmann schreef: > On Thursday 07 February 2013, Maarten Lankhorst wrote: > > Hi Maarten, > > I cannot help a lot on this patch set, but there are a few things that > I noticed when reading it. > >> Functions: >> -- >> >> mutex_reserve_lock, and mutex_reserve_

Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Daniel Vetter
On Thu, Feb 14, 2013 at 11:22 AM, Arnd Bergmann wrote: > >> These functions will return -EDEADLK instead of -EAGAIN if >> reservation_id is the same as the reservation_id that's attempted to >> lock the mutex with, since in that case you presumably attempted to >> lock the same lock twice.

Re: [Linaro-mm-sig] [PATCH 2/3] mutex: add support for reservation style locks

2013-02-14 Thread Arnd Bergmann
On Thursday 07 February 2013, Maarten Lankhorst wrote: Hi Maarten, I cannot help a lot on this patch set, but there are a few things that I noticed when reading it. > Functions: > -- > > mutex_reserve_lock, and mutex_reserve_lock_interruptible: > Lock a buffer with a reservation_id se

[PATCH 2/3] mutex: add support for reservation style locks

2013-02-07 Thread Maarten Lankhorst
GPU's do operations that commonly involve many buffers. Those buffers can be shared across contexts/processes, exist in different memory domains (for example VRAM vs system memory), and so on. And with PRIME / dmabuf, they can even be shared across devices. So there are a handful of situations w