From: Jesse Barnes Subject: [PATCH 9/9] drm/i915: add debug messages for mode_valid checks Date: Tue, 26 Mar 2013 16:33:12 -0700 Message-ID: <1364340792-7278-10-git-send-email-jbarnes@virtuousgeek.org> References: <1364340792-7278-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy13-pub.unifiedlayer.com (oproxy13-pub.unifiedlayer.com [69.89.16.30]) by gabe.freedesktop.org (Postfix) with SMTP id 14284E60BD for ; Tue, 26 Mar 2013 16:33:19 -0700 (PDT) Received: from [67.161.37.189] (port=52574 helo=localhost.localdomain) by box514.bluehost.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1UKdMj-0006Fv-SS for intel-gfx@lists.freedesktop.org; Tue, 26 Mar 2013 17:33:17 -0600 In-Reply-To: <1364340792-7278-1-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Lets us see what's going on if we slowboot instead of fastboot. Signed-off-by: Jesse Barnes --- 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