OSDN Git Service

drm/amdgpu: default to true in amdgpu_device_asic_has_dc_support
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Aug 2021 21:39:01 +0000 (17:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:23:00 +0000 (15:23 -0400)
We are not going to support any new chips with the old
non-DC code so make it the default.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 480708d..31c6d44 100644 (file)
@@ -3214,13 +3214,15 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
        case CHIP_VANGOGH:
        case CHIP_YELLOW_CARP:
 #endif
+       default:
                return amdgpu_dc != 0;
-#endif
+#else
        default:
                if (amdgpu_dc > 0)
                        DRM_INFO_ONCE("Display Core has been requested via kernel parameter "
                                         "but isn't supported by ASIC, ignoring\n");
                return false;
+#endif
        }
 }