drm: Add KMS debug printk's for encoder and crtc fixup failure
authorAdam Jackson <ajax@redhat.com>
Mon, 10 Oct 2011 20:21:27 +0000 (16:21 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 11 Oct 2011 08:26:19 +0000 (09:26 +0100)
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c

index f88a9b2c977b8481f1163bac160c7f5a57d67ab2..f2366440b738a1fe71c105fb8a1eaee88d775fdb 100644 (file)
@@ -372,11 +372,13 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc,
                encoder_funcs = encoder->helper_private;
                if (!(ret = encoder_funcs->mode_fixup(encoder, mode,
                                                      adjusted_mode))) {
+                       DRM_DEBUG_KMS("Encoder fixup failed\n");
                        goto done;
                }
        }
 
        if (!(ret = crtc_funcs->mode_fixup(crtc, mode, adjusted_mode))) {
+               DRM_DEBUG_KMS("CRTC fixup failed\n");
                goto done;
        }
        DRM_DEBUG_KMS("[CRTC:%d]\n", crtc->base.id);