]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Program DSC before enabling link
authorNikola Cornij <nikola.cornij@amd.com>
Sun, 5 Apr 2020 20:40:42 +0000 (16:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Apr 2020 14:43:16 +0000 (10:43 -0400)
commit7d59baffaeb798f9f584b3e4b0507604a0670e32
tree7f0fdeaeabf3c9e68855b85ef3ef436400dadaec
parent2c794c315a174da62bb24064f1d7f30fe052cfb1
drm/amd/display: Program DSC before enabling link

[why]
Link or DIG BE can't be exposed to a higher stream bandwidth than they
can handle. When DSC is required to fit the stream into the link
bandwidth, DSC has to be programmed before the link is enabled to ensure
this. Without it, intermittent issues such as black screen after S3 or a
hot-plug can be seen with DSC timings like 4k144Hz or 8k60Hz.

[how]
Move DSC programming from before enabling stream to before enabling link

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c