drm/amdgpu/soc15: enable virtual dce for vf
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Tue, 28 Feb 2017 09:22:03 +0000 (17:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:06 +0000 (23:55 -0400)
VF need virtual dce, enable it if device is vf.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Monk Liu <Monk.Liu@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 333edbf564df373ec80f6c6bf287491bb9f0fe25..bc827737e0f41044cb633c9eafb806c7d9fbbda9 100644 (file)
@@ -58,6 +58,7 @@
 #include "uvd_v7_0.h"
 #include "vce_v4_0.h"
 #include "amdgpu_powerplay.h"
+#include "dce_virtual.h"
 #include "mxgpu_ai.h"
 
 MODULE_FIRMWARE("amdgpu/vega10_smc.bin");
@@ -485,6 +486,8 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
                if (!amdgpu_sriov_vf(adev))
                        amdgpu_ip_block_add(adev, &psp_v3_1_ip_block);
                amdgpu_ip_block_add(adev, &amdgpu_pp_ip_block);
+               if (amdgpu_sriov_vf(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);