RE: [PATCH] drm/amd/display : Log DP link training downspread info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - General]

Thanks a lot Aurabindo! much appreciate for your help in reviewing this patch.

Best regards,
Srini

-----Original Message-----
From: Pillai, Aurabindo <Aurabindo.Pillai@xxxxxxx> 
Sent: Monday, April 10, 2023 6:39 PM
To: SHANMUGAM, SRINIVASAN <SRINIVASAN.SHANMUGAM@xxxxxxx>; Wentland, Harry <Harry.Wentland@xxxxxxx>; Limonciello, Mario <Mario.Limonciello@xxxxxxx>; Li, Sun peng (Leo) <Sunpeng.Li@xxxxxxx>; Deucher, Alexander <Alexander.Deucher@xxxxxxx>
Cc: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH] drm/amd/display : Log DP link training downspread info



On 4/9/2023 3:21 PM, Srinivasan Shanmugam wrote:
> Update the existing log with DP LT downspread info:
> 
> [Downstream devices shall support down spreading of the link clock.
> The down-spread amplitude shall either be disabled (0.0%) or up to 
> 0.5%, as written by the upstream device to the DOWNSPREAD_CTRL 
> register (DPCD 00107h). The modulation frequency range shall be 30 to 
> 33 kHz]
> 
> Besides, fix checkpatch warning:
> 
> CHECK: Alignment should match open parenthesis
> 
> Cc: Mario Limonciello <mario.limonciello@xxxxxxx>
> Cc: Harry Wentland <harry.wentland@xxxxxxx>
> Cc: Leo Li <sunpeng.li@xxxxxxx>
> Cc: Alex Deucher <alexander.deucher@xxxxxxx>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@xxxxxxx>
> ---
>   .../display/dc/link/protocols/link_dp_training.c   | 14 ++++++++------
>   1 file changed, 8 insertions(+), 6 deletions(-)
> 
> 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..2d067a4a8517 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
> @@ -1560,9 +1560,10 @@ bool perform_link_training_with_retries(
>   	j = 0;
>   	while (j < attempts && fail_count < (attempts * 10)) {
>   
> -		DC_LOG_HW_LINK_TRAINING("%s: Beginning link(%d) training attempt %u of %d @ rate(%d) x lane(%d)\n",
> -			__func__, link->link_index, (unsigned int)j + 1, attempts, cur_link_settings.link_rate,
> -			cur_link_settings.lane_count);
> +		DC_LOG_HW_LINK_TRAINING("%s: Beginning link(%d) training attempt %u of %d @ rate(%d) x lane(%d) @ spread = %x\n",
> +					__func__, link->link_index, (unsigned int)j + 1, attempts,
> +				       cur_link_settings.link_rate, cur_link_settings.lane_count,
> +				       cur_link_settings.link_spread);
>   
>   		dp_enable_link_phy(
>   			link,
> @@ -1640,9 +1641,10 @@ bool perform_link_training_with_retries(
>   				break;
>   		}
>   
> -		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, status);
> +		DC_LOG_WARNING("%s: Link(%d) training attempt %u of %d failed @ rate(%d) x lane(%d) @ spread = %x : 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.link_spread, status);
>   
>   		dp_disable_link_phy(link, &pipe_ctx->link_res, signal);
>   
> 

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@xxxxxxx>




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux