Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: use proper DC check in amdgpu_display_supported_domains()

amdgpu_device_asic_has_dc_support() just checks the asic itself.
amdgpu_device_has_dc_support() is a runtime check which not
only checks the asic, but also other things in the driver
like whether virtual display is enabled. We want the latter
here.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
··· 514 514 */ 515 515 if ((bo_flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC) && 516 516 amdgpu_bo_support_uswc(bo_flags) && 517 - amdgpu_device_asic_has_dc_support(adev->asic_type) && 517 + amdgpu_device_has_dc_support(adev) && 518 518 adev->mode_info.gpu_vm_support) 519 519 domain |= AMDGPU_GEM_DOMAIN_GTT; 520 520 #endif