drm/amd/display: reallocate MST payload when link loss
authorPaul Hsieh <paul.hsieh@amd.com>
Fri, 27 Dec 2019 03:35:33 +0000 (11:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 19:16:54 +0000 (14:16 -0500)
commitffdaeb1f45ee4414e7ecc2b841bea18bec35d1c0
tree93fdd859232417f8bfdc9abf6904ba2c824ae82e
parent34ad0230062c39cdcba564d16d122c0fb467a7d6
drm/amd/display: reallocate MST payload when link loss

[Why]
Try to allocate MST payload but receive HPD short pulse with link loss
casue driver allocate payload twice. It cause monitor can't light up
successfully.

[How]
When driver receive HPD short pulse with link loss, we need to
deallocate payload then allocate payload.
Then we will not allocate payload twice with same sink.

Signed-off-by: Paul Hsieh <paul.hsieh@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_link.h