summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSurbhi Kakarya <Surbhi.Kakarya@amd.com>2020-06-18 09:55:09 -0400
committerMarko Zekovic <Marko.Zekovic@amd.com>2020-09-22 14:54:54 +0200
commit8b1d728b2ff45bb285fd9858d7f1fb03cbb3b6f1 (patch)
treee3bd24b2708f34c91c57c50cbf4a8d0700f155d2
parent3aec0239c645bad335d61d28d04b663cd77dcd2e (diff)
drm/amdgpu: Disable encoder UVD and VCE functionalities for Linux Guest Virtual Machine
Signed-off-by: Surbhi Kakarya <Surbhi.Kakarya@amd.com> Change-Id: I9a876c372098a5cef320286b3145bab670ab8843
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index ddd55e3176c4..6cf922c0f334 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -793,7 +793,7 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
else if (amdgpu_device_has_dc_support(adev))
amdgpu_device_ip_block_add(adev, &dm_ip_block);
#endif
- if (!(adev->asic_type == CHIP_VEGA20 && amdgpu_sriov_vf(adev))) {
+ if (!((adev->asic_type == CHIP_VEGA20 || adev->asic_type == CHIP_VEGA10) && amdgpu_sriov_vf(adev))) {
amdgpu_device_ip_block_add(adev, &uvd_v7_0_ip_block);
amdgpu_device_ip_block_add(adev, &vce_v4_0_ip_block);
}