[PATCH 094/100] drm/amdgpu/soc15: bypass pp block for vf

Alex Deucher alexdeucher at gmail.com
Mon Mar 20 20:30:29 UTC 2017


From: Xiangliang Yu <Xiangliang.Yu at amd.com>

Disable pp block if device is  vf.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Reviewed-by: Monk Liu <Monk.Liu at amd.com>
Acked-by: Christian König <christian.koenig at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 54cb0b5..7e54d9dc 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -483,9 +483,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 (amdgpu_sriov_vf(adev))
 			amdgpu_ip_block_add(adev, &dce_virtual_ip_block);
 #if defined(CONFIG_DRM_AMD_DC)
-- 
2.5.5



More information about the amd-gfx mailing list