<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>kms flip hangs here forever on ByT right now, thus this hack. </div><div><br></div><div><br></div>Jesse Barnes, Intel Open Source Technology Center<br><br><br>-------- Original message --------<br>From: Daniel Vetter <daniel@ffwll.ch> <br>Date: 28/09/2013  2:35 AM  (GMT-08:00) <br>To: Jesse Barnes <jbarnes@virtuousgeek.org> <br>Cc: intel-gfx <intel-gfx@lists.freedesktop.org> <br>Subject: Re: [Intel-gfx] [PATCH 2/5] drm/i915: use wait_event_timeout when   waiting for flip completions <br> <br><br>On Fri, Sep 27, 2013 at 9:57 PM, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:<br>> We're shutting the crtc off and don't want to hang forever.<br><br>Reading the source and the test-suite is advisable ;-)<br>- We actually don't hang here if the MI_DISPLAY_FLIP doesn't happen.<br>- We already recover the display state (not so relevant here where we<br>shut it off, but in the set_base path where we have the same problem<br>with waiting for flips).<br>- We have extensive test coverage for gpu hangs vs. flips in all kinds<br>of contrived situations in igt.<br><br>That leaves us with the flip not completing in the hw after the<br>MI_DISPLAY_FLIP has executed. Usually that just means we miss a<br>workaround or have a bug in our code, and again we have extensive<br>testcases for this.<br><br>Furthermore the hang recover code is ridiculously tricky - just for<br>3.12-fixes I've hunted down 3 deadlocks in there. By bailing out too<br>early you have a good chance to confuse the code and actually make<br>matters worse ;-)<br><br>Cheers, Daniel<br>-- <br>Daniel Vetter<br>Software Engineer, Intel Corporation<br>+41 (0) 79 365 57 48 - http://blog.ffwll.ch<br><br></body>