[PATCH 9/9] drm/i915: add debug messages for mode_valid checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lets us see what's going on if we slowboot instead of fastboot.

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

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: ");
-- 
1.7.9.5



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux