]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Minimize DSC resource re-assignment
authorNikola Cornij <nikola.cornij@amd.com>
Thu, 28 Nov 2019 19:14:56 +0000 (14:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 May 2020 16:48:43 +0000 (12:48 -0400)
commit8d9b0b1a9b7ad49ab256b42064c25e7dc0186a99
treeb0f6f2ee8c8fdb710715c4426155d8b24e7db6d6
parentbe64836e2318b6c94f936ba34e808680752b4f68
drm/amd/display: Minimize DSC resource re-assignment

[why]
Assigning a different DSC resource than the one previosly used is
currently not handled. This causes black screen on mode change when more
than one monitor is connected on some ASICs.

[how]
- Acquire the previously used DSC if available
- Make sure re-program is triggered if new DSC is used

Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h