drm/amdgpu: disable uvd for sriov
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Wed, 15 Feb 2017 09:25:43 +0000 (17:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:10 +0000 (23:55 -0400)
disable uvd for sriov temporarily.

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

index 76adb1d69473d843f429115f0440f01e88d52e29..6286573ae513b3b409ea0d55558361ec30bff9dc 100644 (file)
@@ -490,7 +490,8 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
                        amdgpu_ip_block_add(adev, &dce_virtual_ip_block);
                amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);
                amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block);
-               amdgpu_ip_block_add(adev, &uvd_v7_0_ip_block);
+               if (!amdgpu_sriov_vf(adev))
+                       amdgpu_ip_block_add(adev, &uvd_v7_0_ip_block);
                amdgpu_ip_block_add(adev, &vce_v4_0_ip_block);
                break;
        default: