Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/userq: fix kerneldoc for amdgpu_userq_ensure_ev_fence

Move the comment for the caller to the definition for
amdgpu_userq_ensure_ev_fence in kerneldoc format.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Sunil Khatri and committed by
Alex Deucher
1eb90c74 dc87834e

+9 -7
+9 -7
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
··· 460 460 up_read(&adev->reset_domain->sem); 461 461 } 462 462 463 + /** 464 + * amdgpu_userq_ensure_ev_fence - ensure a valid, unsignaled eviction fence exists 465 + * @uq_mgr: the usermode queue manager for this process 466 + * @evf_mgr: the eviction fence manager to check and rearm 467 + * 468 + * Ensures that a valid and not yet signaled eviction fence is attached to the 469 + * usermode queue before any queue operations proceed. If it is signalled, then 470 + * rearm a new eviction fence. 471 + */ 463 472 void 464 473 amdgpu_userq_ensure_ev_fence(struct amdgpu_userq_mgr *uq_mgr, 465 474 struct amdgpu_eviction_fence_mgr *evf_mgr) ··· 795 786 goto clean_mapping; 796 787 } 797 788 798 - /* 799 - * There could be a situation that we are creating a new queue while 800 - * the other queues under this UQ_mgr are suspended. So if there is any 801 - * resume work pending, wait for it to get done. 802 - * 803 - * This will also make sure we have a valid eviction fence ready to be used. 804 - */ 805 789 amdgpu_userq_ensure_ev_fence(&fpriv->userq_mgr, &fpriv->evf_mgr); 806 790 807 791 r = uq_funcs->mqd_create(queue, &args->in);