]> www.infradead.org Git - users/willy/linux.git/commitdiff
drm/amd/display: Check for DSC support instead of ASIC revision
authorEryk Brol <eryk.brol@amd.com>
Tue, 9 Feb 2021 22:09:52 +0000 (17:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Feb 2021 23:05:34 +0000 (18:05 -0500)
[why]
This check for ASIC revision is no longer useful and causes
lightup issues after a topology change in MST DSC scenario.
In this case, DSC configs should be recalculated for the new
topology. This check prevented that from happening on certain
ASICs that do, in fact, support DSC.

[how]
Change the ASIC revision to instead check if DSC is supported.

Signed-off-by: Eryk Brol <eryk.brol@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 10ef261ec1ad2b55d1157fbeb1ef5aac76786313..a7713c2a3f313a26f47f6e96275469a06ff2cec3 100644 (file)
@@ -9330,7 +9330,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
        }
 
 #if defined(CONFIG_DRM_AMD_DC_DCN)
-       if (adev->asic_type >= CHIP_NAVI10) {
+       if (dc_resource_is_dsc_encoding_supported(dc)) {
                for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
                        if (drm_atomic_crtc_needs_modeset(new_crtc_state)) {
                                ret = add_affected_mst_dsc_crtcs(state, crtc);