aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2013-03-26 16:03:45 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2013-03-27 09:39:38 -0700
commit8defd23ea56cd16728abe6fef500348b534344fd (patch)
treebe5250d2ba5f033b91626b82990ca95ad1d75a06
parent66b2a3a44cdfa2cd3b66d8df0f6a5d7209e4cf01 (diff)
downloaddrm-intel-fastboot.tar.gz
drm/i915: add debug messages for mode_valid checksfastboot
Lets us see what's going on if we slowboot instead of fastboot. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--drivers/gpu/drm/i915/intel_display.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f24da1ac717e59..8b55427562f5a8 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: ");