diff mbox

[09/13] drm/i915: add debug messages for mode_valid checks

Message ID 1364922237-3620-10-git-send-email-jbarnes@virtuousgeek.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jesse Barnes April 2, 2013, 5:03 p.m. UTC
Lets us see what's going on if we slowboot instead of fastboot.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_display.c |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f24da1a..8b55427 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9298,12 +9298,19 @@  setup_pipes:
 			      crtc->active ? "enabled" : "disabled");
 
 
-		if (crtc->base.enabled)
+		if (crtc->base.enabled) {
 			crtc->mode_valid = intel_crtc_get_mode(&crtc->base, &crtc->base.mode);
+			DRM_DEBUG_KMS("[CRTC:%d]: mode valid? %s\n",
+				      crtc->base.base.id,
+				      crtc->mode_valid ? "yes" : "no");
+		}
 
 		if (crtc->base.fb &&
-		    !mode_fits_in_fb(&crtc->base.mode, crtc->base.fb))
+		    !mode_fits_in_fb(&crtc->base.mode, crtc->base.fb)) {
 			crtc->mode_valid = false;
+			DRM_DEBUG_KMS("[CRTC:%d] mode doesn't fit in fb\n",
+				      crtc->base.base.id);
+		}
 
 		if (crtc->mode_valid) {
 			DRM_DEBUG_KMS("found active mode: ");