Skip to content

Commit e0550a1

Browse files
Meenakshikumar Somasundaramalexdeucher
authored andcommitted
drm/amd/display: Check disable_fec flag before enabling fec.
[Why] dc debug option disable_fec was not working. [How] Check dc debug option disable_fec flag before enabling fec in dp_should_enable_fec(). Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 919c835 commit e0550a1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ bool dp_should_enable_fec(const struct dc_link *link)
357357
{
358358
bool force_disable = false;
359359

360-
if (link->fec_state == dc_link_fec_enabled)
360+
if (link->dc->debug.disable_fec)
361+
force_disable = true;
362+
else if (link->fec_state == dc_link_fec_enabled)
361363
force_disable = false;
362364
else if (link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT_MST &&
363365
link->local_sink &&

0 commit comments

Comments
 (0)