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 <harry.wentland@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher 2021-08-03 17:39:01 -04:00
Родитель 9878844094
Коммит f7f12b2582
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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