drm: silence pointless vblank warning.
authorPaul Rolland <rol@as2917.net>
Sun, 9 Aug 2009 02:24:01 +0000 (12:24 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 9 Aug 2009 02:24:01 +0000 (12:24 +1000)
Some applications/hardware combinations are triggering the message "failed to
acquire vblank counter" to be issued up to 20 times a second, which makes it
both useless and dangerous, as this may hide other important messages.
This changes makes it only appear when people are debugging.

Signed-off-by: Paul Rolland <rol@as2917.net>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Lost-twice-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_irq.c

index b4a3dbcebe9b415d8e27f8ef1c0a8c88a17e6f7f..f85aaf21e7839b65f821d903a556ef38661cc6e8 100644 (file)
@@ -566,7 +566,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data,
 
        ret = drm_vblank_get(dev, crtc);
        if (ret) {
-               DRM_ERROR("failed to acquire vblank counter, %d\n", ret);
+               DRM_DEBUG("failed to acquire vblank counter, %d\n", ret);
                return ret;
        }
        seq = drm_vblank_count(dev, crtc);