another interesting lock recursion!

2014-03-25 Thread Dave Airlie
On Tue, Mar 25, 2014 at 6:24 PM, Daniel Vetter wrote: > On Tue, Mar 25, 2014 at 6:53 AM, Dave Airlie wrote: >> So with runtime pm on nouveau, if the card gets powered down, and then >> you access a connector via sysfs, >> >> drm_sysfs.c:status_show locks the connector and calls into the driver,

another interesting lock recursion!

2014-03-25 Thread Dave Airlie
So with runtime pm on nouveau, if the card gets powered down, and then you access a connector via sysfs, drm_sysfs.c:status_show locks the connector and calls into the driver, the driver then does a runtime_get_sync, which causes resume to happen which causes modesetting to reset the mode, which

another interesting lock recursion!

2014-03-25 Thread Daniel Vetter
On Tue, Mar 25, 2014 at 08:05:30PM +1000, Dave Airlie wrote: > On Tue, Mar 25, 2014 at 6:24 PM, Daniel Vetter wrote: > > On Tue, Mar 25, 2014 at 6:53 AM, Dave Airlie wrote: > >> So with runtime pm on nouveau, if the card gets powered down, and then > >> you access a connector via sysfs, > >> >

another interesting lock recursion!

2014-03-25 Thread Daniel Vetter
On Tue, Mar 25, 2014 at 6:53 AM, Dave Airlie wrote: > So with runtime pm on nouveau, if the card gets powered down, and then > you access a connector via sysfs, > > drm_sysfs.c:status_show locks the connector and calls into the driver, > the driver then does a runtime_get_sync, which causes