drm/amdgpu/virt: disable dc
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Tue, 10 Jan 2017 09:34:52 +0000 (17:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:09:02 +0000 (17:09 -0400)
Virtualization don't need the dc, disable it.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 226d10f288a33ee478651193e5f0903d419f7071..2efb486e283d00144cedf6ef6b66f17d2e338bc4 100644 (file)
@@ -2006,6 +2006,9 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
  */
 bool amdgpu_device_has_dc_support(struct amdgpu_device *adev)
 {
+       if (amdgpu_sriov_vf(adev))
+               return false;
+
        return amdgpu_device_asic_has_dc_support(adev->asic_type);
 }