Re: [Intel-gfx] [PATCH v2] drm/i915: Priority boost for locked waits

2017-01-19 Thread Chris Wilson
On Thu, Jan 19, 2017 at 06:18:56AM +, Tvrtko Ursulin wrote: > > On 18/01/2017 16:53, Chris Wilson wrote: > >We always try to do an unlocked wait before resorting to having a > >blocking wait under the mutex - so we very rarely have to sleep under > >the struct_mutex. However, when we do we wan

Re: [Intel-gfx] [PATCH v2] drm/i915: Priority boost for locked waits

2017-01-18 Thread Tvrtko Ursulin
On 18/01/2017 16:53, Chris Wilson wrote: We always try to do an unlocked wait before resorting to having a blocking wait under the mutex - so we very rarely have to sleep under the struct_mutex. However, when we do we want that wait to be as short as possible as the struct_mutex is our BKL that

[Intel-gfx] [PATCH v2] drm/i915: Priority boost for locked waits

2017-01-18 Thread Chris Wilson
We always try to do an unlocked wait before resorting to having a blocking wait under the mutex - so we very rarely have to sleep under the struct_mutex. However, when we do we want that wait to be as short as possible as the struct_mutex is our BKL that will stall the driver and all clients. Ther