[PATCH] drm/amdgpu: disable UVD/VCE for some polaris 12 variants

Zhang, Jerry(Junwei) Jerry.Zhang at amd.com
Fri Nov 23 08:32:58 UTC 2018


please ignore this patch, there is typo in code.

On 11/23/18 4:01 PM, Junwei Zhang wrote:
> Some variants don't support UVD and VCE.
>
> Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/vi.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
> index f3a4cf1f013a..46a92eca831b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
> @@ -1660,6 +1660,11 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)
>   			amdgpu_device_ip_block_add(adev, &dce_v11_2_ip_block);
>   		amdgpu_device_ip_block_add(adev, &gfx_v8_0_ip_block);
>   		amdgpu_device_ip_block_add(adev, &sdma_v3_1_ip_block);
> +		/* Some polaris12 variants don't support UVD/VCE */
> +		if (((adev->pdev->device == 0x67df) &&
> +		     ((adev->pdev->revision == 0xe1) ||
> +		      (adev->pdev->revision == 0xf7))))
> +			break;
>   		amdgpu_device_ip_block_add(adev, &uvd_v6_3_ip_block);
>   		amdgpu_device_ip_block_add(adev, &vce_v3_4_ip_block);
>   		break;



More information about the amd-gfx mailing list