drm/amd/display: fix link training regression for 1 or 2 lane
authorWenjing Liu <wenjing.liu@amd.com>
Mon, 27 Sep 2021 17:10:07 +0000 (13:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Oct 2021 18:26:50 +0000 (14:26 -0400)
commite72aa36ef88f18d541acacaa4051de615ba78efa
tree3c93dbc43a56b0e16d437d4d10bfd5bffc72164c
parent9c92c79b05f6c9ed70511dbf160030ad20f4124c
drm/amd/display: fix link training regression for 1 or 2 lane

[why]
We have a regression that cause maximize lane settings to use
uninitialized data from unused lanes.
This will cause link training to fail for 1 or 2 lanes because the lane
adjust is populated incorrectly sometimes.

v2: fix build without CONFIG_DRM_AMD_DC_DCN (Alex)

Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c