drm/atomic-helper: Print an error if vblank wait times out
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Apr 2016 11:29:33 +0000 (14:29 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 18 Apr 2016 12:30:34 +0000 (14:30 +0200)
Vblank waits timing out is no a normal thing to happen, so let's inform
people when it happens.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1460978973-24945-2-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c

index 7bf678ee7f816da88016f25a9a6e08ea43b0b594..40c7b268a9bc51e68e836b01a3601f5e07285923 100644 (file)
@@ -1103,6 +1103,8 @@ drm_atomic_helper_wait_for_vblanks(struct drm_device *dev,
                                        drm_crtc_vblank_count(crtc),
                                msecs_to_jiffies(50));
 
+               WARN(!ret, "[CRTC:%d] vblank wait timed out\n", crtc->base.id);
+
                drm_crtc_vblank_put(crtc);
        }
 }