[PATCH v2] drm/amd/display: Add logging for DP link traning Test Pattern Seqeunces

Zuo, Jerry Jerry.Zuo at amd.com
Tue Apr 11 13:15:52 UTC 2023


[AMD Official Use Only - General]

Reviewed-by: Fangzhi Zuo <Jerry.Zuo at amd.com>

> -----Original Message-----
> From: SHANMUGAM, SRINIVASAN <SRINIVASAN.SHANMUGAM at amd.com>
> Sent: Monday, April 10, 2023 1:36 PM
> To: Wentland, Harry <Harry.Wentland at amd.com>; Zuo, Jerry
> <Jerry.Zuo at amd.com>; Li, Sun peng (Leo) <Sunpeng.Li at amd.com>; Deucher,
> Alexander <Alexander.Deucher at amd.com>
> Cc: amd-gfx at lists.freedesktop.org
> Subject: RE: [PATCH v2] drm/amd/display: Add logging for DP link traning
> Test Pattern Seqeunces
> 
> [AMD Official Use Only - General]
> 
> 
> 
> -----Original Message-----
> From: SHANMUGAM, SRINIVASAN <SRINIVASAN.SHANMUGAM at amd.com>
> Sent: Monday, April 10, 2023 11:02 PM
> To: Wentland, Harry <Harry.Wentland at amd.com>; Zuo, Jerry
> <Jerry.Zuo at amd.com>; Li, Sun peng (Leo) <Sunpeng.Li at amd.com>; Deucher,
> Alexander <Alexander.Deucher at amd.com>
> Cc: amd-gfx at lists.freedesktop.org; SHANMUGAM, SRINIVASAN
> <SRINIVASAN.SHANMUGAM at amd.com>
> Subject: [PATCH v2] drm/amd/display: Add logging for DP link traning Test
> Pattern Seqeunces
> 
> Add some more logging for DP link traning test pattern seqeunces for better
> debugging.
> 
> Cc: Jerry Zuo <jerry.zuo at amd.com>
> Cc: Harry Wentland <harry.wentland at amd.com>
> Cc: Leo Li <sunpeng.li at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>
> ---
> v2:
> 
>  - it is better to use : instead of \n, following the log format in default section
> (Jerry)
>  - seems no need to print dpcd_tr_pattern if it is already mentioned in the
> string (Jerry)
> 
>  .../drm/amd/display/dc/link/protocols/link_dp_training.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git
> a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
> b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
> index 70fc0ddf2d7e..265233979cf8 100644
> --- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
> +++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
> @@ -212,27 +212,36 @@ enum dpcd_training_patterns
> 
>  	switch (pattern) {
>  	case DP_TRAINING_PATTERN_SEQUENCE_1:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP training pattern
> TPS1\n",
> +__func__);
>  		dpcd_tr_pattern = DPCD_TRAINING_PATTERN_1;
>  		break;
>  	case DP_TRAINING_PATTERN_SEQUENCE_2:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP training pattern
> TPS2\n",
> +__func__);
>  		dpcd_tr_pattern = DPCD_TRAINING_PATTERN_2;
>  		break;
>  	case DP_TRAINING_PATTERN_SEQUENCE_3:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP training pattern
> TPS3\n",
> +__func__);
>  		dpcd_tr_pattern = DPCD_TRAINING_PATTERN_3;
>  		break;
>  	case DP_TRAINING_PATTERN_SEQUENCE_4:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP training pattern
> TPS4\n",
> +__func__);
>  		dpcd_tr_pattern = DPCD_TRAINING_PATTERN_4;
>  		break;
>  	case DP_128b_132b_TPS1:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP 128b/132b
> training pattern
> +TPS1\n", __func__);
>  		dpcd_tr_pattern = DPCD_128b_132b_TPS1;
>  		break;
>  	case DP_128b_132b_TPS2:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP 128b/132b
> training pattern
> +TPS2\n", __func__);
>  		dpcd_tr_pattern = DPCD_128b_132b_TPS2;
>  		break;
>  	case DP_128b_132b_TPS2_CDS:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP 128b/132b
> training pattern TPS2 CDS\n",
> +					__func__);
>  		dpcd_tr_pattern = DPCD_128b_132b_TPS2_CDS;
>  		break;
>  	case DP_TRAINING_PATTERN_VIDEOIDLE:
> +		DC_LOG_HW_LINK_TRAINING("%s: Using DP training pattern
> videoidle\n",
> +__func__);
>  		dpcd_tr_pattern = DPCD_TRAINING_PATTERN_VIDEOIDLE;
>  		break;
>  	default:
> --
> 2.25.1


More information about the amd-gfx mailing list