Re: [Intel-gfx] [PATCH] drm/i915: Use uninterruptible mutex_lock for userptr bo creation

2015-05-18 Thread Chris Wilson
On Mon, May 18, 2015 at 10:30:06AM +0200, Daniel Vetter wrote: On Fri, May 15, 2015 at 12:09:00PM +0100, Tvrtko Ursulin wrote: Hi, On 05/15/2015 11:42 AM, Chris Wilson wrote: Mika encountered one pathological scenario under X where acquiring all the mm locks (required to insert a

Re: [Intel-gfx] [PATCH] drm/i915: Use uninterruptible mutex_lock for userptr bo creation

2015-05-18 Thread Daniel Vetter
On Fri, May 15, 2015 at 12:09:00PM +0100, Tvrtko Ursulin wrote: Hi, On 05/15/2015 11:42 AM, Chris Wilson wrote: Mika encountered one pathological scenario under X where acquiring all the mm locks (required to insert a mmu notifier) was very slow, so slow that by the time we tried to lock

Re: [Intel-gfx] [PATCH] drm/i915: Use uninterruptible mutex_lock for userptr bo creation

2015-05-18 Thread Damien Lespiau
On Mon, May 18, 2015 at 10:30:06AM +0200, Daniel Vetter wrote: On Fri, May 15, 2015 at 12:09:00PM +0100, Tvrtko Ursulin wrote: Hi, On 05/15/2015 11:42 AM, Chris Wilson wrote: Mika encountered one pathological scenario under X where acquiring all the mm locks (required to insert a

Re: [Intel-gfx] [PATCH] drm/i915: Use uninterruptible mutex_lock for userptr bo creation

2015-05-18 Thread Chris Wilson
On Mon, May 18, 2015 at 06:10:07PM +0100, Damien Lespiau wrote: On Mon, May 18, 2015 at 10:30:06AM +0200, Daniel Vetter wrote: On Fri, May 15, 2015 at 12:09:00PM +0100, Tvrtko Ursulin wrote: Hi, On 05/15/2015 11:42 AM, Chris Wilson wrote: Mika encountered one pathological

[Intel-gfx] [PATCH] drm/i915: Use uninterruptible mutex_lock for userptr bo creation

2015-05-15 Thread Chris Wilson
Mika encountered one pathological scenario under X where acquiring all the mm locks (required to insert a mmu notifier) was very slow, so slow that by the time we tried to lock the struct_mutex with the usual call to i915_mutex_lock_interruptible(), X's signal timer had fired causing us to restart

Re: [Intel-gfx] [PATCH] drm/i915: Use uninterruptible mutex_lock for userptr bo creation

2015-05-15 Thread Tvrtko Ursulin
Hi, On 05/15/2015 11:42 AM, Chris Wilson wrote: Mika encountered one pathological scenario under X where acquiring all the mm locks (required to insert a mmu notifier) was very slow, so slow that by the time we tried to lock the struct_mutex with the usual call to