diff options
author | Mike Hsieh <chun-wei.hsieh@amd.com> | 2020-12-16 12:01:51 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-01-21 00:38:17 +0300 |
commit | 21b882de6af4cd80e0df442c09b492adfe477694 (patch) | |
tree | c408242389bc04d437261c137f77857cd783c9b6 /drivers/gpu/drm/amd/display/dc/core | |
parent | 617ab854012c6bf4cf538194381d0282707619f7 (diff) | |
download | linux-21b882de6af4cd80e0df442c09b492adfe477694.tar.xz |
drm/amd/display: disable FEC while using eDP
[Why]
FEC over eDP support is incomplete.
[How]
Disable FEC over eDP.
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Mike Hsieh <chun-wei.hsieh@amd.com>
Reviewed-by: Nikola Cornij <Nikola.Cornij@amd.com>
Acked-by: Anson Jacob <anson.jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 9885ef21cc05..5ecb402537ad 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -3701,9 +3701,10 @@ bool dc_link_should_enable_fec(const struct dc_link *link) bool is_fec_disable = false; bool ret = false; - if (link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT_MST && + if ((link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT_MST && link->local_sink && - link->local_sink->edid_caps.panel_patch.disable_fec) + link->local_sink->edid_caps.panel_patch.disable_fec) || + link->connector_signal == SIGNAL_TYPE_EDP) // Disable FEC for eDP is_fec_disable = true; if (dc_link_is_fec_supported(link) && !link->dc->debug.disable_fec && !is_fec_disable) |