Re: [Intel-gfx] [PATCH 1/5] mutex: Export an interface to wrap a mutex lock

2015-04-09 Thread Joonas Lahtinen
Hi, On ti, 2015-04-07 at 17:31 +0100, Chris Wilson wrote: > In i915, we have a big mutex around our device struct - every time before > we attempt to communicate with the GPU, we acquire the mutex. This makes > it a convenient juncture to place our GPU error handling - before we take > the mutex w

[Intel-gfx] [PATCH 1/5] mutex: Export an interface to wrap a mutex lock

2015-04-07 Thread Chris Wilson
In i915, we have a big mutex around our device struct - every time before we attempt to communicate with the GPU, we acquire the mutex. This makes it a convenient juncture to place our GPU error handling - before we take the mutex we first check whether the GPU is hung or whether we are in the proc