drm/amd/display: Disable secondary link for certain monitors
authorNikola Cornij <nikola.cornij@amd.com>
Mon, 9 Dec 2019 23:54:26 +0000 (18:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 18:41:50 +0000 (13:41 -0500)
commit6d822156d0b6f529aa95d55286742c908f5b4e35
treef8d3c0c2d96d5f42cd39238a5dbdd843a8c2e6f4
parent1075735ecce96b34ba9aee529dd2253da6d21ceb
drm/amd/display: Disable secondary link for certain monitors

[why]
If the specific monitor supports DSC, the secondary link should be
disabled, and the other way around, too: if either that monitor or
our ASIC doesn't support DSC, the secodary link should be enabled.

[how]
Add a monitor patch and disable secondary link if that monitor
is detected and if ASIC supports DSC, or otherwise enable secondary
link.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Joshua Aberback <Joshua.Aberback@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_resource.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_types.h