]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Disable FEC if DSC not supported for EDP
authorIswara Nagulendran <inagulen@amd.com>
Wed, 5 Jan 2022 22:56:25 +0000 (17:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Apr 2022 18:17:17 +0000 (14:17 -0400)
commit5d9eb581082e354ead9d215c11b0768e484332d6
treedb9044fbd3dc8fa6dbac7082d6685c20d7b2f920
parent8f76077fc4708933c175fbb078e715a164125167
drm/amd/display: Disable FEC if DSC not supported for EDP

[WHY]
Screen was seen corrupted for a few ms
when switching both ways. There was also
not enough bandwidth for HDR to be
enabled in HG disabled mode.
This was due to FEC being
enabled although DSC was not supported
or disabled for the EDP.

[HOW]
Check for EDP DSC support in DC caps
or if DSC should be disabled for EDP
before enabling FEC for EDP.

Reviewed-by: Harry Vanzylldejong <harry.vanzylldejong@amd.com>
Reviewed-by: Evgenii Krasnikov <Evgenii.Krasnikov@amd.com>
Reviewed-by: Nicholas Choi <Nicholas.Choi@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Iswara Nagulendran <inagulen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c