[Intel-gfx] [PATCH 2/5] drm/i915: use wait_event_timeout when waiting for flip completions
Jesse Barnes
jbarnes at virtuousgeek.org
Fri Sep 27 21:57:23 CEST 2013
We're shutting the crtc off and don't want to hang forever.
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
drivers/gpu/drm/i915/intel_display.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index bc25481..8da1c96 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2912,8 +2912,9 @@ static void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc)
WARN_ON(waitqueue_active(&dev_priv->pending_flip_queue));
- wait_event(dev_priv->pending_flip_queue,
- !intel_crtc_has_pending_flip(crtc));
+ wait_event_timeout(dev_priv->pending_flip_queue,
+ !intel_crtc_has_pending_flip(crtc),
+ msecs_to_jiffies(50));
mutex_lock(&dev->struct_mutex);
intel_finish_fb(crtc->fb);
--
1.8.3.1
More information about the Intel-gfx
mailing list