[PATCH v2 1/2] drm/amdgpu: sync ring type and drm hw_ip type

Christian König christian.koenig at amd.com
Tue Mar 31 13:56:54 UTC 2020


Am 31.03.20 um 15:59 schrieb Nirmoy Das:
> Use AMDGPU_HW_IP_* to set amdgpu_ring_type enum values
>
> Signed-off-by: Nirmoy Das <nirmoy.das at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 20 ++++++++++----------
>   1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> index 080024d21d3e..50abc63f7cc5 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> @@ -47,16 +47,16 @@
>   #define to_amdgpu_ring(s) container_of((s), struct amdgpu_ring, sched)
>
>   enum amdgpu_ring_type {
> -	AMDGPU_RING_TYPE_GFX,
> -	AMDGPU_RING_TYPE_COMPUTE,
> -	AMDGPU_RING_TYPE_SDMA,
> -	AMDGPU_RING_TYPE_UVD,
> -	AMDGPU_RING_TYPE_VCE,
> -	AMDGPU_RING_TYPE_KIQ,
> -	AMDGPU_RING_TYPE_UVD_ENC,
> -	AMDGPU_RING_TYPE_VCN_DEC,
> -	AMDGPU_RING_TYPE_VCN_ENC,
> -	AMDGPU_RING_TYPE_VCN_JPEG
> +	AMDGPU_RING_TYPE_GFX		= AMDGPU_HW_IP_GFX,
> +	AMDGPU_RING_TYPE_COMPUTE	= AMDGPU_HW_IP_COMPUTE,
> +	AMDGPU_RING_TYPE_SDMA		= AMDGPU_HW_IP_DMA,
> +	AMDGPU_RING_TYPE_UVD		= AMDGPU_HW_IP_UVD,
> +	AMDGPU_RING_TYPE_VCE		= AMDGPU_HW_IP_VCE,
> +	AMDGPU_RING_TYPE_UVD_ENC	= AMDGPU_HW_IP_UVD_ENC,
> +	AMDGPU_RING_TYPE_VCN_DEC	= AMDGPU_HW_IP_VCN_DEC,
> +	AMDGPU_RING_TYPE_VCN_ENC	= AMDGPU_HW_IP_VCN_ENC,
> +	AMDGPU_RING_TYPE_VCN_JPEG	= AMDGPU_HW_IP_VCN_JPEG,
> +	AMDGPU_RING_TYPE_KIQ
>   };
>
>   struct amdgpu_device;
> --
> 2.25.1
>



More information about the amd-gfx mailing list