[PATCH] drm: use trylock to avoid fault injection antics

2014-09-08 Thread Thomas Hellstrom
On 09/07/2014 05:02 PM, Rob Clark wrote: > On Fri, Sep 5, 2014 at 8:25 AM, Daniel Vetter wrote: >> On Fri, Sep 05, 2014 at 07:59:45AM -0400, Rob Clark wrote: >>> While in real life, we could never fail to grab the newly created mutex, >>> ww_mutex fault injection has no way to know this. Which co

[PATCH] drm: use trylock to avoid fault injection antics

2014-09-07 Thread Rob Clark
On Fri, Sep 5, 2014 at 8:25 AM, Daniel Vetter wrote: > On Fri, Sep 05, 2014 at 07:59:45AM -0400, Rob Clark wrote: >> While in real life, we could never fail to grab the newly created mutex, >> ww_mutex fault injection has no way to know this. Which could result >> that kernels built with CONFIG_D

[PATCH] drm: use trylock to avoid fault injection antics

2014-09-05 Thread Daniel Vetter
On Fri, Sep 05, 2014 at 07:59:45AM -0400, Rob Clark wrote: > While in real life, we could never fail to grab the newly created mutex, > ww_mutex fault injection has no way to know this. Which could result > that kernels built with CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y might fail to > acquire the new cr

[PATCH] drm: use trylock to avoid fault injection antics

2014-09-05 Thread Rob Clark
While in real life, we could never fail to grab the newly created mutex, ww_mutex fault injection has no way to know this. Which could result that kernels built with CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y might fail to acquire the new crtc lock. Which results in bad things when the locks are dropped.