[06/11] drm/amdgpu/soc15: enable UVD code path for sriov

Submitted by Yu, Xiangliang on April 24, 2017, 6:58 a.m.

Details

Message ID 1493017089-23101-7-git-send-email-Xiangliang.Yu@amd.com
State New
Headers show
Series "Enable UVD and PSP loading for SRIOV" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Yu, Xiangliang April 24, 2017, 6:58 a.m.
From: Frank Min <Frank.Min@amd.com>

Enable UVD block for SRIOV.

Signed-off-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 6999ac3..4e514b2 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -482,8 +482,7 @@  int soc15_set_ip_blocks(struct amdgpu_device *adev)
 #endif
 		amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);
 		amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block);
-		if (!amdgpu_sriov_vf(adev))
-			amdgpu_ip_block_add(adev, &uvd_v7_0_ip_block);
+		amdgpu_ip_block_add(adev, &uvd_v7_0_ip_block);
 		amdgpu_ip_block_add(adev, &vce_v4_0_ip_block);
 		break;
 	default:

Comments

> -----Original Message-----

> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf

> Of Xiangliang Yu

> Sent: Monday, April 24, 2017 2:58 AM

> To: amd-gfx@lists.freedesktop.org

> Cc: Yu, Xiangliang; Min, Frank

> Subject: [PATCH 06/11] drm/amdgpu/soc15: enable UVD code path for sriov

> 

> From: Frank Min <Frank.Min@amd.com>

> 

> Enable UVD block for SRIOV.

> 

> Signed-off-by: Frank Min <Frank.Min@amd.com>

> Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>


Reviewed-by: Alex Deucher <alexander.deucher@amd.com>


> ---

>  drivers/gpu/drm/amd/amdgpu/soc15.c | 3 +--

>  1 file changed, 1 insertion(+), 2 deletions(-)

> 

> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

> b/drivers/gpu/drm/amd/amdgpu/soc15.c

> index 6999ac3..4e514b2 100644

> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c

> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c

> @@ -482,8 +482,7 @@ int soc15_set_ip_blocks(struct amdgpu_device

> *adev)

>  #endif

>  		amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);

>  		amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block);

> -		if (!amdgpu_sriov_vf(adev))

> -			amdgpu_ip_block_add(adev, &uvd_v7_0_ip_block);

> +		amdgpu_ip_block_add(adev, &uvd_v7_0_ip_block);

>  		amdgpu_ip_block_add(adev, &vce_v4_0_ip_block);

>  		break;

>  	default:

> --

> 2.7.4

> 

> _______________________________________________

> amd-gfx mailing list

> amd-gfx@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/amd-gfx