@@ -5216,7 +5216,7 @@ pipe_config_dp_vsc_sdp_mismatch(struct drm_printer *p, bool fastset,
5216
5216
const struct drm_dp_vsc_sdp * a ,
5217
5217
const struct drm_dp_vsc_sdp * b )
5218
5218
{
5219
- pipe_config_mismatch (p , fastset , crtc , name , "dp sdp" );
5219
+ pipe_config_mismatch (p , fastset , crtc , name , "dp vsc sdp" );
5220
5220
5221
5221
drm_printf (p , "expected:\n" );
5222
5222
drm_dp_vsc_sdp_log (p , a );
@@ -5225,27 +5225,18 @@ pipe_config_dp_vsc_sdp_mismatch(struct drm_printer *p, bool fastset,
5225
5225
}
5226
5226
5227
5227
static void
5228
- pipe_config_dp_as_sdp_mismatch (struct drm_i915_private * i915 ,
5229
- bool fastset , const char * name ,
5228
+ pipe_config_dp_as_sdp_mismatch (struct drm_printer * p , bool fastset ,
5229
+ const struct intel_crtc * crtc ,
5230
+ const char * name ,
5230
5231
const struct drm_dp_as_sdp * a ,
5231
5232
const struct drm_dp_as_sdp * b )
5232
5233
{
5233
- struct drm_printer p ;
5234
+ pipe_config_mismatch ( p , fastset , crtc , name , "dp as sdp" ) ;
5234
5235
5235
- if (fastset ) {
5236
- p = drm_dbg_printer (& i915 -> drm , DRM_UT_KMS , NULL );
5237
-
5238
- drm_printf (& p , "fastset requirement not met in %s dp sdp\n" , name );
5239
- } else {
5240
- p = drm_err_printer (& i915 -> drm , NULL );
5241
-
5242
- drm_printf (& p , "mismatch in %s dp sdp\n" , name );
5243
- }
5244
-
5245
- drm_printf (& p , "expected:\n" );
5246
- drm_dp_as_sdp_log (& p , a );
5247
- drm_printf (& p , "found:\n" );
5248
- drm_dp_as_sdp_log (& p , b );
5236
+ drm_printf (p , "expected:\n" );
5237
+ drm_dp_as_sdp_log (p , a );
5238
+ drm_printf (p , "found:\n" );
5239
+ drm_dp_as_sdp_log (p , b );
5249
5240
}
5250
5241
5251
5242
/* Returns the length up to and including the last differing byte */
@@ -5494,7 +5485,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
5494
5485
#define PIPE_CONF_CHECK_DP_AS_SDP (name ) do { \
5495
5486
if (!intel_compare_dp_as_sdp(¤t_config->infoframes.name, \
5496
5487
&pipe_config->infoframes.name)) { \
5497
- pipe_config_dp_as_sdp_mismatch(dev_priv , fastset, __stringify(name), \
5488
+ pipe_config_dp_as_sdp_mismatch(&p , fastset, crtc , __stringify(name), \
5498
5489
¤t_config->infoframes.name, \
5499
5490
&pipe_config->infoframes.name); \
5500
5491
ret = false; \
0 commit comments