]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu/soc15: bypass PSP for VF
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Tue, 28 Feb 2017 08:59:28 +0000 (16:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:03 +0000 (23:55 -0400)
Bypass PSP block for VF device.

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>
Reviewed-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 ccbecc8d0b47843d4216f9de2e5663ff51234e15..0986ea59cca29385063fc960cd57c7e111952498 100644 (file)
@@ -478,7 +478,8 @@ 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);
-               amdgpu_ip_block_add(adev, &psp_v3_1_ip_block);
+               if (!amdgpu_sriov_vf(adev))
+                       amdgpu_ip_block_add(adev, &psp_v3_1_ip_block);
                amdgpu_ip_block_add(adev, &amdgpu_pp_ip_block);
                amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);
                amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block);