aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Wentland <[email protected]>2017-12-18 11:55:48 -0500
committerAlex Deucher <[email protected]>2018-02-19 14:17:27 -0500
commit9f921b147b5e0b049b8de3f17960beef64c111e9 (patch)
tree9cf8478e93091d568f151101e7f40d278775d52b
parentf2c7c55b0e00817fa28b800834fe2b2bc22946b6 (diff)
drm/amd/display: Debug-print reason for mode validation failure
Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index a7d8634d2df3..29bab3e5decd 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/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)
result = MODE_OK;
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->hdisplay,
- mode->clock);
+ mode->clock,
+ dc_result);
dc_stream_release(stream);