From 440d4ad23a234b137a9aec0f862faf6a8062bf60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Mon, 10 Jun 2019 17:56:52 +0300 Subject: [PATCH] mst m/n debugs --- drivers/gpu/drm/i915/intel_display.c | 4 ++++ drivers/gpu/drm/i915/intel_dp_mst.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 62fa573f90e8..d33ceee3f706 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -12042,6 +12042,8 @@ intel_modeset_pipe_config(struct intel_crtc_state *pipe_config) int i; bool retry = true; + DRM_DEBUG_KMS("[CRTC:%d:%s]\n", crtc->base.id, crtc->name); + ret = clear_intel_crtc_state(pipe_config); if (ret) return ret; @@ -12122,6 +12124,8 @@ intel_modeset_pipe_config(struct intel_crtc_state *pipe_config) continue; encoder = to_intel_encoder(connector_state->best_encoder); + DRM_DEBUG_KMS("[ENCODER:%d:%s]\n", + encoder->base.base.id, encoder->base.name); ret = encoder->compute_config(encoder, pipe_config, connector_state); if (ret < 0) { diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c index 0caf645fbbb8..8c8cd4ef48a4 100644 --- a/drivers/gpu/drm/i915/intel_dp_mst.c +++ b/drivers/gpu/drm/i915/intel_dp_mst.c @@ -146,6 +146,13 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder, intel_ddi_compute_min_voltage_level(dev_priv, pipe_config); + DRM_DEBUG_KMS("bpp %d, lanes %d, dotclock %d, port clock %d\n", + pipe_config->pipe_bpp, pipe_config->lane_count, + adjusted_mode->crtc_clock, pipe_config->port_clock); + DRM_DEBUG_KMS("gmch m %d, gmch n %d, link m %d, link n %d\n", + pipe_config->dp_m_n.gmch_m, pipe_config->dp_m_n.gmch_n, + pipe_config->dp_m_n.link_m, pipe_config->dp_m_n.link_n); + return 0; } -- 2.21.0