Browse Source

drm/amd/display: Debug-print reason for mode validation failure

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Harry Wentland 7 years ago
parent
commit
9f921b147b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

+ 3 - 2
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

@@ -2839,10 +2839,11 @@ int amdgpu_dm_connector_mode_valid(struct drm_connector *connector,
 	if (dc_result == DC_OK)
 	if (dc_result == DC_OK)
 		result = MODE_OK;
 		result = MODE_OK;
 	else
 	else
-		DRM_DEBUG_KMS("Mode %dx%d (clk %d) failed DC validation\n",
+		DRM_DEBUG_KMS("Mode %dx%d (clk %d) failed DC validation with error %d\n",
 			      mode->vdisplay,
 			      mode->vdisplay,
 			      mode->hdisplay,
 			      mode->hdisplay,
-			      mode->clock);
+			      mode->clock,
+			      dc_result);
 
 
 	dc_stream_release(stream);
 	dc_stream_release(stream);