summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-04-21 09:40:41 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-04-21 09:40:41 +0000
commitd38690165b4cfc21e0b6d28cbe6c3fc1a2d0cd7e (patch)
tree671bc0d8a456f9587e4a3e3be9505deb72f7523d /sys/dev
parenta68693a9111cdd85f3f07f284853f62f6f2f29e6 (diff)
drm/amd/display: FEC check in timing validation
From Chiawen Huang 92951699a5f11043b9d1402ea21787f420b36094 in linux 5.15.y/5.15.35 7d56a154e22ffb3613fdebf83ec34d5225a22993 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
index b37c4d2e7a1..35a27fe48f6 100644
--- a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
+++ b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
@@ -1377,6 +1377,10 @@ bool dc_validate_seamless_boot_timing(const struct dc *dc,
if (!link->link_enc->funcs->is_dig_enabled(link->link_enc))
return false;
+ /* Check for FEC status*/
+ if (link->link_enc->funcs->fec_is_active(link->link_enc))
+ return false;
+
enc_inst = link->link_enc->funcs->get_dig_frontend(link->link_enc);
if (enc_inst == ENGINE_ID_UNKNOWN)