[PATCH] drm/amdkfd: Rename create_cp_queue() to init_user_queue()

Felix Kuehling felix.kuehling at amd.com
Mon Nov 11 20:20:07 UTC 2019


On 2019-11-01 16:12, Zhao, Yong wrote:
> create_cp_queue() could also work with SDMA queues, so we should rename
> it.
>
> Change-Id: I76cbaed8fa95dd9062d786cbc1dd037ff041da9d
> Signed-off-by: Yong Zhao <Yong.Zhao at amd.com>

The name change makes sense. This patch is

Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>


> ---
>   drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
> index 48185d2957e9..ebb2f69b438c 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
> @@ -162,7 +162,7 @@ void pqm_uninit(struct process_queue_manager *pqm)
>   	pqm->queue_slot_bitmap = NULL;
>   }
>   
> -static int create_cp_queue(struct process_queue_manager *pqm,
> +static int init_user_queue(struct process_queue_manager *pqm,
>   				struct kfd_dev *dev, struct queue **q,
>   				struct queue_properties *q_properties,
>   				struct file *f, unsigned int qid)
> @@ -251,7 +251,7 @@ int pqm_create_queue(struct process_queue_manager *pqm,
>   			goto err_create_queue;
>   		}
>   
> -		retval = create_cp_queue(pqm, dev, &q, properties, f, *qid);
> +		retval = init_user_queue(pqm, dev, &q, properties, f, *qid);
>   		if (retval != 0)
>   			goto err_create_queue;
>   		pqn->q = q;
> @@ -272,7 +272,7 @@ int pqm_create_queue(struct process_queue_manager *pqm,
>   			goto err_create_queue;
>   		}
>   
> -		retval = create_cp_queue(pqm, dev, &q, properties, f, *qid);
> +		retval = init_user_queue(pqm, dev, &q, properties, f, *qid);
>   		if (retval != 0)
>   			goto err_create_queue;
>   		pqn->q = q;


More information about the amd-gfx mailing list