drm/i915: warn when a vblank wait times out
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 4 Apr 2014 23:12:09 +0000 (16:12 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Apr 2014 12:37:12 +0000 (14:37 +0200)
This always indicates a bug somewhere.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 373ffdb97ae3ddaaf3b6e81615f113b6124056df..b2ec242add847d485f2c9d160b1a150d6d7a63c7 100644 (file)
@@ -765,7 +765,7 @@ static void g4x_wait_for_vblank(struct drm_device *dev, int pipe)
        frame = I915_READ(frame_reg);
 
        if (wait_for(I915_READ_NOTRACE(frame_reg) != frame, 50))
-               DRM_DEBUG_KMS("vblank wait timed out\n");
+               WARN(1, "vblank wait timed out\n");
 }
 
 /**