@@ -2196,7 +2196,8 @@ static void connector_bad_edid(struct drm_connector *connector,
2196
2196
if (connector -> bad_edid_counter ++ && !drm_debug_enabled (DRM_UT_KMS ))
2197
2197
return ;
2198
2198
2199
- drm_dbg_kms (connector -> dev , "%s: EDID is invalid:\n" , connector -> name );
2199
+ drm_dbg_kms (connector -> dev , "[CONNECTOR:%d:%s] EDID is invalid:\n" ,
2200
+ connector -> base .id , connector -> name );
2200
2201
for (i = 0 ; i < num_blocks ; i ++ )
2201
2202
edid_block_dump (KERN_DEBUG , edid + i , i );
2202
2203
}
@@ -6031,7 +6032,8 @@ static void drm_parse_hdmi_forum_scds(struct drm_connector *connector,
6031
6032
}
6032
6033
6033
6034
drm_dbg_kms (connector -> dev ,
6034
- "HF-VSDB: max TMDS clock: %d KHz, HDMI 2.1 support: %s, DSC 1.2 support: %s\n" ,
6035
+ "[CONNECTOR:%d:%s] HF-VSDB: max TMDS clock: %d KHz, HDMI 2.1 support: %s, DSC 1.2 support: %s\n" ,
6036
+ connector -> base .id , connector -> name ,
6035
6037
max_tmds_clock , str_yes_no (max_frl_rate ), str_yes_no (dsc_support ));
6036
6038
}
6037
6039
@@ -6131,8 +6133,9 @@ static void drm_parse_microsoft_vsdb(struct drm_connector *connector,
6131
6133
if (version == 1 || version == 2 || (version == 3 && !desktop_usage ))
6132
6134
info -> non_desktop = true;
6133
6135
6134
- drm_dbg_kms (connector -> dev , "HMD or specialized display VSDB version %u: 0x%02x\n" ,
6135
- version , db [5 ]);
6136
+ drm_dbg_kms (connector -> dev ,
6137
+ "[CONNECTOR:%d:%s] HMD or specialized display VSDB version %u: 0x%02x\n" ,
6138
+ connector -> base .id , connector -> name , version , db [5 ]);
6136
6139
}
6137
6140
6138
6141
static void drm_parse_cea_ext (struct drm_connector * connector ,
@@ -6253,22 +6256,26 @@ static void drm_parse_vesa_mso_data(struct drm_connector *connector,
6253
6256
struct drm_display_info * info = & connector -> display_info ;
6254
6257
6255
6258
if (block -> num_bytes < 3 ) {
6256
- drm_dbg_kms (connector -> dev , "Unexpected vendor block size %u\n" ,
6257
- block -> num_bytes );
6259
+ drm_dbg_kms (connector -> dev ,
6260
+ "[CONNECTOR:%d:%s] Unexpected vendor block size %u\n" ,
6261
+ connector -> base .id , connector -> name , block -> num_bytes );
6258
6262
return ;
6259
6263
}
6260
6264
6261
6265
if (oui (vesa -> oui [0 ], vesa -> oui [1 ], vesa -> oui [2 ]) != VESA_IEEE_OUI )
6262
6266
return ;
6263
6267
6264
6268
if (sizeof (* vesa ) != sizeof (* block ) + block -> num_bytes ) {
6265
- drm_dbg_kms (connector -> dev , "Unexpected VESA vendor block size\n" );
6269
+ drm_dbg_kms (connector -> dev ,
6270
+ "[CONNECTOR:%d:%s] Unexpected VESA vendor block size\n" ,
6271
+ connector -> base .id , connector -> name );
6266
6272
return ;
6267
6273
}
6268
6274
6269
6275
switch (FIELD_GET (DISPLAYID_VESA_MSO_MODE , vesa -> mso )) {
6270
6276
default :
6271
- drm_dbg_kms (connector -> dev , "Reserved MSO mode value\n" );
6277
+ drm_dbg_kms (connector -> dev , "[CONNECTOR:%d:%s] Reserved MSO mode value\n" ,
6278
+ connector -> base .id , connector -> name );
6272
6279
fallthrough ;
6273
6280
case 0 :
6274
6281
info -> mso_stream_count = 0 ;
@@ -6288,12 +6295,16 @@ static void drm_parse_vesa_mso_data(struct drm_connector *connector,
6288
6295
6289
6296
info -> mso_pixel_overlap = FIELD_GET (DISPLAYID_VESA_MSO_OVERLAP , vesa -> mso );
6290
6297
if (info -> mso_pixel_overlap > 8 ) {
6291
- drm_dbg_kms (connector -> dev , "Reserved MSO pixel overlap value %u\n" ,
6298
+ drm_dbg_kms (connector -> dev ,
6299
+ "[CONNECTOR:%d:%s] Reserved MSO pixel overlap value %u\n" ,
6300
+ connector -> base .id , connector -> name ,
6292
6301
info -> mso_pixel_overlap );
6293
6302
info -> mso_pixel_overlap = 8 ;
6294
6303
}
6295
6304
6296
- drm_dbg_kms (connector -> dev , "MSO stream count %u, pixel overlap %u\n" ,
6305
+ drm_dbg_kms (connector -> dev ,
6306
+ "[CONNECTOR:%d:%s] MSO stream count %u, pixel overlap %u\n" ,
6307
+ connector -> base .id , connector -> name ,
6297
6308
info -> mso_stream_count , info -> mso_pixel_overlap );
6298
6309
}
6299
6310
@@ -6421,7 +6432,8 @@ static u32 update_display_info(struct drm_connector *connector,
6421
6432
6422
6433
out :
6423
6434
if (quirks & EDID_QUIRK_NON_DESKTOP ) {
6424
- drm_dbg_kms (connector -> dev , "Non-desktop display%s\n" ,
6435
+ drm_dbg_kms (connector -> dev , "[CONNECTOR:%d:%s] Non-desktop display%s\n" ,
6436
+ connector -> base .id , connector -> name ,
6425
6437
info -> non_desktop ? " (redundant quirk)" : "" );
6426
6438
info -> non_desktop = true;
6427
6439
}
@@ -6732,8 +6744,8 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)
6732
6744
struct drm_edid drm_edid ;
6733
6745
6734
6746
if (edid && !drm_edid_is_valid (edid )) {
6735
- drm_warn (connector -> dev , "%s: EDID invalid.\n" ,
6736
- connector -> name );
6747
+ drm_warn (connector -> dev , "[CONNECTOR:%d:%s] EDID invalid.\n" ,
6748
+ connector -> base . id , connector -> name );
6737
6749
edid = NULL ;
6738
6750
}
6739
6751
0 commit comments