Re: [Nouveau] [PATCH] drm/nouveau: fix vblank deadlock

2013-08-20 Thread Peter Hurley
On 08/12/2013 07:50 AM, Maarten Lankhorst wrote: This fixes a deadlock inversion when vblank is enabled/disabled by drm. dev-vblank_time_lock is always taken when the vblank state is toggled, which caused a deadlock when event-lock was also taken during event_get/put. Solve the race by

[Nouveau] [PATCH] drm/nouveau: fix vblank deadlock

2013-08-19 Thread Maarten Lankhorst
Hey, Op 19-08-13 20:12, Peter Hurley schreef: > On 08/12/2013 07:50 AM, Maarten Lankhorst wrote: >> This fixes a deadlock inversion when vblank is enabled/disabled by drm. >> >vblank_time_lock is always taken when the vblank state is toggled, >> which caused a deadlock when >lock was also taken

[Nouveau] [PATCH] drm/nouveau: fix vblank deadlock

2013-08-19 Thread Peter Hurley
On 08/12/2013 07:50 AM, Maarten Lankhorst wrote: > This fixes a deadlock inversion when vblank is enabled/disabled by drm. > >vblank_time_lock is always taken when the vblank state is toggled, > which caused a deadlock when >lock was also taken during > event_get/put. > > Solve the race by

Re: [Nouveau] [PATCH] drm/nouveau: fix vblank deadlock

2013-08-19 Thread Maarten Lankhorst
Hey, Op 19-08-13 20:12, Peter Hurley schreef: On 08/12/2013 07:50 AM, Maarten Lankhorst wrote: This fixes a deadlock inversion when vblank is enabled/disabled by drm. dev-vblank_time_lock is always taken when the vblank state is toggled, which caused a deadlock when event-lock was also taken

[PATCH] drm/nouveau: fix vblank deadlock

2013-08-12 Thread Maarten Lankhorst
This fixes a deadlock inversion when vblank is enabled/disabled by drm. >vblank_time_lock is always taken when the vblank state is toggled, which caused a deadlock when >lock was also taken during event_get/put. Solve the race by requiring that lock to change enable/disable state, and always

[PATCH] drm/nouveau: fix vblank deadlock

2013-08-12 Thread Maarten Lankhorst
This fixes a deadlock inversion when vblank is enabled/disabled by drm. dev-vblank_time_lock is always taken when the vblank state is toggled, which caused a deadlock when event-lock was also taken during event_get/put. Solve the race by requiring that lock to change enable/disable state, and