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