]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Check disable_fec flag before enabling fec.
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Tue, 7 Oct 2025 02:02:31 +0000 (22:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Oct 2025 22:26:13 +0000 (18:26 -0400)
[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>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c

index c33a8c17c38a1af99727370f4a7fdf59ff7514c0..701afd2d4ab1207aba6422a01f60244c59317fac 100644 (file)
@@ -357,7 +357,9 @@ bool dp_should_enable_fec(const struct dc_link *link)
 {
        bool force_disable = false;
 
-       if (link->fec_state == dc_link_fec_enabled)
+       if (link->dc->debug.disable_fec)
+               force_disable = true;
+       else if (link->fec_state == dc_link_fec_enabled)
                force_disable = false;
        else if (link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT_MST &&
                        link->local_sink &&