From: Alex Deucher Date: Tue, 3 Aug 2021 21:39:01 +0000 (-0400) Subject: drm/amdgpu: default to true in amdgpu_device_asic_has_dc_support X-Git-Tag: block-5.16-2021-11-13~77^2~11^2~92 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f7f12b25823c0d;p=linux-block.git drm/amdgpu: default to true in amdgpu_device_asic_has_dc_support We are not going to support any new chips with the old non-DC code so make it the default. Reviewed-by: Harry Wentland Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 480708dd2d73..31c6d44208b5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -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 } }