Skip to content

Commit

Permalink
drm/amd/display: Add logging when DP link training Clock recovery is …
Browse files Browse the repository at this point in the history
…Successful

Log when Clock recovery is successful, as part of
DP link training process.

Cc: Aurabindo Pillai <[email protected]>
Cc: Fangzhi Zuo <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
srishanm authored and alexdeucher committed Apr 14, 2023
1 parent 6a929fe commit 88c7ad9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ enum link_training_result perform_8b_10b_clock_recovery_sequence(
offset);

/* 5. check CR done*/
if (dp_is_cr_done(lane_count, dpcd_lane_status))
if (dp_is_cr_done(lane_count, dpcd_lane_status)) {
DC_LOG_HW_LINK_TRAINING("%s: Clock recovery OK\n", __func__);
return LINK_TRAINING_SUCCESS;
}

/* 6. max VS reached*/
if ((link_dp_get_encoding_format(&lt_settings->link_settings) ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ static enum link_training_result dpia_training_cr_non_transparent(

/* Check if clock recovery successful. */
if (dp_is_cr_done(lane_count, dpcd_lane_status)) {
DC_LOG_HW_LINK_TRAINING("%s: Clock recovery OK\n", __func__);
result = LINK_TRAINING_SUCCESS;
break;
}
Expand Down Expand Up @@ -508,6 +509,7 @@ static enum link_training_result dpia_training_cr_transparent(

/* Check if clock recovery successful. */
if (dp_is_cr_done(lane_count, dpcd_lane_status)) {
DC_LOG_HW_LINK_TRAINING("%s: Clock recovery OK\n", __func__);
result = LINK_TRAINING_SUCCESS;
break;
}
Expand Down

0 comments on commit 88c7ad9

Please sign in to comment.