From 25a445f15a64a507e36f3006cff9d8c83e750136 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 17 Dec 2012 15:16:18 +0100 Subject: [PATCH] drm/i915: dump encoder which caused the full modeset Might be useful in figuring out what's going on if something goes wrong. References: https://bugs.freedesktop.org/show_bug.cgi?id=58396 Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 82267b2..31844fa 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -8184,7 +8184,9 @@ next_encoder: /* Only now check for crtc changes so we don't miss encoders * that will be disabled. */ if (&encoder->new_crtc->base != encoder->base.crtc) { - DRM_DEBUG_KMS("crtc changed, full mode switch\n"); + DRM_DEBUG_KMS("crtc changed on [ENCODER:%d:%s], full mode switch\n", + encoder->base.base.id, + drm_get_encoder_name(&encoder->base)); config->mode_changed = true; } } -- 1.7.10.4