From: Ville Syrjälä Date: Thu, 15 Feb 2024 16:40:46 +0000 (+0200) Subject: drm/i915: Include CRTC info in VSC SDP mismatch prints X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=98a33735f26cfed4f2d6a03766d7b8d95975d7f6;p=linux.git drm/i915: Include CRTC info in VSC SDP mismatch prints Most crtc state mismatches include the CRTC id+name in the prints. Also include it in the VSC SDP mismatches. Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20240215164055.30585-4-ville.syrjala@linux.intel.com Reviewed-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index c308ebb606ca2..6219069532323 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -4827,21 +4827,24 @@ pipe_config_infoframe_mismatch(bool fastset, const struct intel_crtc *crtc, } static void -pipe_config_dp_vsc_sdp_mismatch(struct drm_i915_private *i915, - bool fastset, const char *name, +pipe_config_dp_vsc_sdp_mismatch(bool fastset, const struct intel_crtc *crtc, + const char *name, const struct drm_dp_vsc_sdp *a, const struct drm_dp_vsc_sdp *b) { + struct drm_i915_private *i915 = to_i915(crtc->base.dev); struct drm_printer p; if (fastset) { p = drm_dbg_printer(&i915->drm, DRM_UT_KMS, NULL); - drm_printf(&p, "fastset requirement not met in %s dp sdp\n", name); + drm_printf(&p, "[CRTC:%d:%s] fastset requirement not met in %s dp sdp\n", + crtc->base.base.id, crtc->base.name, name); } else { p = drm_err_printer(&i915->drm, NULL); - drm_printf(&p, "mismatch in %s dp sdp\n", name); + drm_printf(&p, "[CRTC:%d:%s] mismatch in %s dp sdp\n", + crtc->base.base.id, crtc->base.name, name); } drm_printf(&p, "expected:\n"); @@ -5096,7 +5099,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config, #define PIPE_CONF_CHECK_DP_VSC_SDP(name) do { \ if (!intel_compare_dp_vsc_sdp(¤t_config->infoframes.name, \ &pipe_config->infoframes.name)) { \ - pipe_config_dp_vsc_sdp_mismatch(dev_priv, fastset, __stringify(name), \ + pipe_config_dp_vsc_sdp_mismatch(fastset, crtc, __stringify(name), \ ¤t_config->infoframes.name, \ &pipe_config->infoframes.name); \ ret = false; \