drm/amdgpu/soc15: enable psp block for SRIOV
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Tue, 28 Mar 2017 11:16:42 +0000 (19:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:55 +0000 (23:55 -0400)
SRIOV can support for loading ucode with PSP block, enable it.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index b5426fc2ee2846574bf6d2077f24783f8abb0815..1671d18a96054f871bdd76cfcfcf2b4eb3e04595 100644 (file)
@@ -494,10 +494,9 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_ip_block_add(adev, &mmhub_v1_0_ip_block);
                amdgpu_ip_block_add(adev, &gmc_v9_0_ip_block);
                amdgpu_ip_block_add(adev, &vega10_ih_ip_block);
-               if (!amdgpu_sriov_vf(adev)) {
-                       amdgpu_ip_block_add(adev, &psp_v3_1_ip_block);
+               amdgpu_ip_block_add(adev, &psp_v3_1_ip_block);
+               if (!amdgpu_sriov_vf(adev))
                        amdgpu_ip_block_add(adev, &amdgpu_pp_ip_block);
-               }
                if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
                        amdgpu_ip_block_add(adev, &dce_virtual_ip_block);
                amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);