Re: [Intel-gfx] [PATCH] Avoid i915 flip unpin/HPD event handler deadlock.

2013-09-01 Thread Daniel Vetter
On Sat, Aug 31, 2013 at 10:15:25AM +0100, Chris Wilson wrote: > On Fri, Aug 30, 2013 at 06:30:55PM -0700, Stuart Abercrombie wrote: > > Both of these were taking the mode_config mutex but executed from the > > same work queue. If intel_crtc_page_flip happened to flush a work queue > > containing a

Re: [Intel-gfx] [PATCH] Avoid i915 flip unpin/HPD event handler deadlock.

2013-08-31 Thread Chris Wilson
On Fri, Aug 30, 2013 at 06:30:55PM -0700, Stuart Abercrombie wrote: > Both of these were taking the mode_config mutex but executed from the > same work queue. If intel_crtc_page_flip happened to flush a work queue > containing an HPD event handler work item, deadlock resulted, since the > mutex re

[Intel-gfx] [PATCH] Avoid i915 flip unpin/HPD event handler deadlock.

2013-08-30 Thread Stuart Abercrombie
Both of these were taking the mode_config mutex but executed from the same work queue. If intel_crtc_page_flip happened to flush a work queue containing an HPD event handler work item, deadlock resulted, since the mutex required by the HPD handler was taken before the flush. Instead use a separat