drm/armada: update debug in armada_drm_crtc_mode_set_nofb()
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 30 Jul 2018 10:52:34 +0000 (11:52 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 30 Jul 2018 10:52:34 +0000 (11:52 +0100)
Update debug to use KMS level, and print the mode using the standard
format for mode lines, but print the adjusted CRTC parameters as
that's what we will be programming for.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_crtc.c

index 3cae6587b079409911d2a0df56013b1be419f6ef..9ad966caf08cc6fa75149445e94ea6ece64e1a48 100644 (file)
@@ -426,16 +426,15 @@ static void armada_drm_crtc_mode_set_nofb(struct drm_crtc *crtc)
        bm = adj->crtc_vsync_start - adj->crtc_vdisplay;
        tm = adj->crtc_vtotal - adj->crtc_vsync_end;
 
-       DRM_DEBUG_DRIVER("H: %d %d %d %d lm %d rm %d\n",
-               adj->crtc_hdisplay,
-               adj->crtc_hsync_start,
-               adj->crtc_hsync_end,
-               adj->crtc_htotal, lm, rm);
-       DRM_DEBUG_DRIVER("V: %d %d %d %d tm %d bm %d\n",
-               adj->crtc_vdisplay,
-               adj->crtc_vsync_start,
-               adj->crtc_vsync_end,
-               adj->crtc_vtotal, tm, bm);
+       DRM_DEBUG_KMS("[CRTC:%d:%s] mode " DRM_MODE_FMT "\n",
+                     crtc->base.id, crtc->name,
+                     adj->base.id, adj->name, adj->vrefresh, adj->clock,
+                     adj->crtc_hdisplay, adj->crtc_hsync_start,
+                     adj->crtc_hsync_end, adj->crtc_htotal,
+                     adj->crtc_vdisplay, adj->crtc_vsync_start,
+                     adj->crtc_vsync_end, adj->crtc_vtotal,
+                     adj->type, adj->flags);
+       DRM_DEBUG_KMS("lm %d rm %d tm %d bm %d\n", lm, rm, tm, bm);
 
        /*
         * If we are blanked, we would have disabled the clock.  Re-enable