drm/amd/display: Bring back dc_log for more debug prints
Subsystems (3)
PATCH 1/2 drm/amd/display: Bring back dc_log for more debug prints
A bunch of log statements in DC don't yet go to DRM_DEBUG_KMS or the dynamic debug prints so we still want to enable those logs when dc_log=1 to not miss out on things such as the link training logger.
Signed-off-by Harry Wentland <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +3 -0
@@ -430,6 +430,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) init_data.dce_environment =DCE_ENV_PRODUCTION_DRV ; +if (amdgpu_dc_log) + init_data.log_mask =DC_DEFAULT_LOG_MASK ; +/* * TODO debug why this doesn't work on Raven */
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180614174332.19159-1-harry.wentland-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amd/display: Retry link training at verify_link_cap stage
Some receivers seem to fail the first link training but are on good on subsequent tries. Set a limit of 2 retries for each level before falling back.
Signed-off-by Harry Wentland <[email protected]>
CC Wenjing Liu <[email protected]>
--- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +20 -8
@@ -31,7 +31,14 @@ enum {/* to avoid infinite loop where-in the receiver * switches between different VS */ -LINK_TRAINING_MAX_CR_RETRY =100 +LINK_TRAINING_MAX_CR_RETRY =100 , +/* +* Some receivers fail to train on first try and are good +* on subsequent tries. 2 retries should be plenty. If we +* don't have a successful training then we don't expect to +* ever get one. +*/ +LINK_TRAINING_MAX_VERIFY_RETRY =2 }; static bool decide_fallback_link_setting(
@@ -1142,15 +1149,20 @@ bool dp_hbr_verify_link_cap( cur); -if (skip_link_training) +if (skip_link_training) { success = true; -else { - status =dc_link_dp_perform_link_training ( - link, - cur, + }else { +int i; + +for (i =0 ; i <LINK_TRAINING_MAX_VERIFY_RETRY ; i++) { + status =dc_link_dp_perform_link_training ( + link, cur, skip_video_pattern); -if (status ==LINK_TRAINING_SUCCESS ) - success = true; +if (status ==LINK_TRAINING_SUCCESS ) { + success = true; +break ; + } + } }if (success)
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx