[PATCH] drm/i915: dump encoder which caused the full modeset

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

 



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 <daniel.vetter at ffwll.ch>
---
 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



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