Commit 10634189 authored by Ander Conselvan de Oliveira's avatar Ander Conselvan de Oliveira Committed by Daniel Vetter

drm/i915: Improve staged config logging

When logging that full mode switch is necessary, log which connector,
encoder or crtc has caused it, so it is easier to figure out what is
goind on by just looking at the log.
Signed-off-by: default avatarAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 3a3371ff
...@@ -11504,7 +11504,9 @@ intel_modeset_stage_output_state(struct drm_device *dev, ...@@ -11504,7 +11504,9 @@ intel_modeset_stage_output_state(struct drm_device *dev,
if (&connector->new_encoder->base != connector->base.encoder) { if (&connector->new_encoder->base != connector->base.encoder) {
DRM_DEBUG_KMS("encoder changed, full mode switch\n"); DRM_DEBUG_KMS("[CONNECTOR:%d:%s] encoder changed, full mode switch\n",
connector->base.base.id,
connector->base.name);
config->mode_changed = true; config->mode_changed = true;
} }
} }
...@@ -11555,7 +11557,9 @@ intel_modeset_stage_output_state(struct drm_device *dev, ...@@ -11555,7 +11557,9 @@ intel_modeset_stage_output_state(struct drm_device *dev,
/* Only now check for crtc changes so we don't miss encoders /* Only now check for crtc changes so we don't miss encoders
* that will be disabled. */ * that will be disabled. */
if (&encoder->new_crtc->base != encoder->base.crtc) { if (&encoder->new_crtc->base != encoder->base.crtc) {
DRM_DEBUG_KMS("crtc changed, full mode switch\n"); DRM_DEBUG_KMS("[ENCODER:%d:%s] crtc changed, full mode switch\n",
encoder->base.base.id,
encoder->base.name);
config->mode_changed = true; config->mode_changed = true;
} }
} }
...@@ -11576,7 +11580,8 @@ intel_modeset_stage_output_state(struct drm_device *dev, ...@@ -11576,7 +11580,8 @@ intel_modeset_stage_output_state(struct drm_device *dev,
} }
if (crtc->new_enabled != crtc->base.state->enable) { if (crtc->new_enabled != crtc->base.state->enable) {
DRM_DEBUG_KMS("crtc %sabled, full mode switch\n", DRM_DEBUG_KMS("[CRTC:%d] %sabled, full mode switch\n",
crtc->base.base.id,
crtc->new_enabled ? "en" : "dis"); crtc->new_enabled ? "en" : "dis");
config->mode_changed = true; config->mode_changed = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment