drm/amdgpu/soc15: bypass pp block for vf
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Tue, 28 Feb 2017 09:26:40 +0000 (17:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:55 +0000 (23:55 -0400)
Disable pp block 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 238fcc3fa78d5a85cd201282e7b0e398a189139f..b5426fc2ee2846574bf6d2077f24783f8abb0815 100644 (file)
@@ -494,9 +494,10 @@ 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))
+               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, &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);