drm/amd/display : Log DP link training failure reason
authorChandan Vurdigere Nataraj <chandan.vurdigerenataraj@amd.com>
Thu, 23 Jun 2022 07:18:49 +0000 (12:48 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jun 2022 15:23:59 +0000 (11:23 -0400)
[Why]
Existing logs doesn't print DP LT failure reason

[How]
Update the existing log with DP LT failure reason

Signed-off-by: Chandan Vurdigere Nataraj <chandan.vurdigerenataraj@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 4027f43..c8355ac 100644 (file)
@@ -2786,9 +2786,9 @@ bool perform_link_training_with_retries(
                                break;
                }
 
-               DC_LOG_WARNING("%s: Link(%d) training attempt %u of %d failed @ rate(%d) x lane(%d)\n",
+               DC_LOG_WARNING("%s: Link(%d) training attempt %u of %d failed @ rate(%d) x lane(%d) : fail reason:(%d)\n",
                        __func__, link->link_index, (unsigned int)j + 1, attempts, cur_link_settings.link_rate,
-                       cur_link_settings.lane_count);
+                       cur_link_settings.lane_count, status);
 
                dp_disable_link_phy(link, &pipe_ctx->link_res, signal);