[PATCH 1/3] drm/amdgpu: fix switch-case indentation

Christian König christian.koenig at amd.com
Fri Mar 13 18:12:42 UTC 2020


Am 13.03.20 um 15:34 schrieb Nirmoy Das:
> Fix switch-case indentation in amdgpu_ctx_init_entity()
>
> Signed-off-by: Nirmoy Das <nirmoy.das at amd.com>

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

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 82 ++++++++++++-------------
>   1 file changed, 41 insertions(+), 41 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> index fa575bdc03c8..74c795a5e187 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> @@ -91,47 +91,47 @@ static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, const u32 hw_ip, const
>   	priority = (ctx->override_priority == DRM_SCHED_PRIORITY_UNSET) ?
>   				ctx->init_priority : ctx->override_priority;
>   	switch (hw_ip) {
> -		case AMDGPU_HW_IP_GFX:
> -			sched = &adev->gfx.gfx_ring[0].sched;
> -			scheds = &sched;
> -			num_scheds = 1;
> -			break;
> -		case AMDGPU_HW_IP_COMPUTE:
> -			hw_prio = amdgpu_ctx_sched_prio_to_compute_prio(priority);
> -			scheds = adev->gfx.compute_prio_sched[hw_prio];
> -			num_scheds = adev->gfx.num_compute_sched[hw_prio];
> -			break;
> -		case AMDGPU_HW_IP_DMA:
> -			scheds = adev->sdma.sdma_sched;
> -			num_scheds = adev->sdma.num_sdma_sched;
> -			break;
> -		case AMDGPU_HW_IP_UVD:
> -			sched = &adev->uvd.inst[0].ring.sched;
> -			scheds = &sched;
> -			num_scheds = 1;
> -			break;
> -		case AMDGPU_HW_IP_VCE:
> -			sched = &adev->vce.ring[0].sched;
> -			scheds = &sched;
> -			num_scheds = 1;
> -			break;
> -		case AMDGPU_HW_IP_UVD_ENC:
> -			sched = &adev->uvd.inst[0].ring_enc[0].sched;
> -			scheds = &sched;
> -			num_scheds = 1;
> -			break;
> -		case AMDGPU_HW_IP_VCN_DEC:
> -			scheds = adev->vcn.vcn_dec_sched;
> -			num_scheds =  adev->vcn.num_vcn_dec_sched;
> -			break;
> -		case AMDGPU_HW_IP_VCN_ENC:
> -			scheds = adev->vcn.vcn_enc_sched;
> -			num_scheds =  adev->vcn.num_vcn_enc_sched;
> -			break;
> -		case AMDGPU_HW_IP_VCN_JPEG:
> -			scheds = adev->jpeg.jpeg_sched;
> -			num_scheds =  adev->jpeg.num_jpeg_sched;
> -			break;
> +	case AMDGPU_HW_IP_GFX:
> +		sched = &adev->gfx.gfx_ring[0].sched;
> +		scheds = &sched;
> +		num_scheds = 1;
> +		break;
> +	case AMDGPU_HW_IP_COMPUTE:
> +		hw_prio = amdgpu_ctx_sched_prio_to_compute_prio(priority);
> +		scheds = adev->gfx.compute_prio_sched[hw_prio];
> +		num_scheds = adev->gfx.num_compute_sched[hw_prio];
> +		break;
> +	case AMDGPU_HW_IP_DMA:
> +		scheds = adev->sdma.sdma_sched;
> +		num_scheds = adev->sdma.num_sdma_sched;
> +		break;
> +	case AMDGPU_HW_IP_UVD:
> +		sched = &adev->uvd.inst[0].ring.sched;
> +		scheds = &sched;
> +		num_scheds = 1;
> +		break;
> +	case AMDGPU_HW_IP_VCE:
> +		sched = &adev->vce.ring[0].sched;
> +		scheds = &sched;
> +		num_scheds = 1;
> +		break;
> +	case AMDGPU_HW_IP_UVD_ENC:
> +		sched = &adev->uvd.inst[0].ring_enc[0].sched;
> +		scheds = &sched;
> +		num_scheds = 1;
> +		break;
> +	case AMDGPU_HW_IP_VCN_DEC:
> +		scheds = adev->vcn.vcn_dec_sched;
> +		num_scheds =  adev->vcn.num_vcn_dec_sched;
> +		break;
> +	case AMDGPU_HW_IP_VCN_ENC:
> +		scheds = adev->vcn.vcn_enc_sched;
> +		num_scheds =  adev->vcn.num_vcn_enc_sched;
> +		break;
> +	case AMDGPU_HW_IP_VCN_JPEG:
> +		scheds = adev->jpeg.jpeg_sched;
> +		num_scheds =  adev->jpeg.num_jpeg_sched;
> +		break;
>   	}
>   
>   	r = drm_sched_entity_init(&entity->entity, priority, scheds, num_scheds,



More information about the amd-gfx mailing list