From: Wesley Chalmers Date: Tue, 30 Mar 2021 22:15:21 +0000 (-0400) Subject: drm/amd/display: Set LTTPR mode to non-LTTPR if no repeaters found X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fab8580107b88b1576a17f0e48b238caecc46d96;p=linux.git drm/amd/display: Set LTTPR mode to non-LTTPR if no repeaters found [WHY] If no repeaters are found, we do not need or want to attempt to link-train repeaters, as this could cause bugs. Signed-off-by: Wesley Chalmers Acked-by: Bindu Ramamurthy Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 9d6a8e728317c..e6f8f3c255bc9 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -3582,6 +3582,8 @@ static bool retrieve_link_cap(struct dc_link *link) link->dpcd_caps.lttpr_caps.revision.raw >= 0x14); if (is_lttpr_present) CONN_DATA_DETECT(link, lttpr_dpcd_data, sizeof(lttpr_dpcd_data), "LTTPR Caps: "); + else + link->lttpr_mode = LTTPR_MODE_NON_LTTPR; } if (!is_lttpr_present)