diff options
author | Xiangliang Yu <Xiangliang.Yu@amd.com> | 2017-01-10 17:34:52 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:09:02 -0400 |
commit | 2555039d129e4e637cbc6a1048d1005dd9c78b7a (patch) | |
tree | 9ad3fb27b0990474dff4ca48b9686b4e90da60fe | |
parent | 546b9b619bfe490ed7cf10c39827e4e578ba8135 (diff) | |
download | linux-stable-2555039d129e4e637cbc6a1048d1005dd9c78b7a.tar.gz linux-stable-2555039d129e4e637cbc6a1048d1005dd9c78b7a.tar.bz2 linux-stable-2555039d129e4e637cbc6a1048d1005dd9c78b7a.zip |
drm/amdgpu/virt: disable dc
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 226d10f288a3..2efb486e283d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -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); } |