[PATCH 20/26] drm/amd/display: Debug-print reason for mode validation failure
Harry Wentland
harry.wentland at amd.com
Thu Dec 21 22:08:16 UTC 2017
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++--
1 file 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 5590ef80e644..1e93697be351 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -2870,10 +2870,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);
--
2.14.1
More information about the amd-gfx
mailing list