@@ -528,7 +528,7 @@ int amdgpu_userq_ioctl(struct drm_device *dev, void *data,
528528#endif
529529
530530static int
531- amdgpu_userqueue_resume_all (struct amdgpu_userq_mgr * uq_mgr )
531+ amdgpu_userqueue_restore_all (struct amdgpu_userq_mgr * uq_mgr )
532532{
533533 struct amdgpu_device * adev = uq_mgr -> adev ;
534534 struct amdgpu_usermode_queue * queue ;
@@ -659,7 +659,7 @@ amdgpu_userqueue_validate_bos(struct amdgpu_userq_mgr *uq_mgr)
659659 return ret ;
660660}
661661
662- static void amdgpu_userqueue_resume_worker (struct work_struct * work )
662+ static void amdgpu_userqueue_restore_worker (struct work_struct * work )
663663{
664664 struct amdgpu_userq_mgr * uq_mgr = work_to_uq_mgr (work , resume_work .work );
665665 struct amdgpu_fpriv * fpriv = uq_mgr_to_fpriv (uq_mgr );
@@ -675,9 +675,9 @@ static void amdgpu_userqueue_resume_worker(struct work_struct *work)
675675 goto unlock ;
676676 }
677677
678- ret = amdgpu_userqueue_resume_all (uq_mgr );
678+ ret = amdgpu_userqueue_restore_all (uq_mgr );
679679 if (ret ) {
680- DRM_ERROR ("Failed to resume all queues\n" );
680+ DRM_ERROR ("Failed to restore all queues\n" );
681681 goto unlock ;
682682 }
683683
@@ -686,7 +686,7 @@ static void amdgpu_userqueue_resume_worker(struct work_struct *work)
686686}
687687
688688static int
689- amdgpu_userqueue_suspend_all (struct amdgpu_userq_mgr * uq_mgr )
689+ amdgpu_userqueue_evict_all (struct amdgpu_userq_mgr * uq_mgr )
690690{
691691 struct amdgpu_device * adev = uq_mgr -> adev ;
692692 struct amdgpu_usermode_queue * queue ;
@@ -728,8 +728,8 @@ amdgpu_userqueue_wait_for_signal(struct amdgpu_userq_mgr *uq_mgr)
728728}
729729
730730void
731- amdgpu_userqueue_suspend (struct amdgpu_userq_mgr * uq_mgr ,
732- struct amdgpu_eviction_fence * ev_fence )
731+ amdgpu_userqueue_evict (struct amdgpu_userq_mgr * uq_mgr ,
732+ struct amdgpu_eviction_fence * ev_fence )
733733{
734734 int ret ;
735735 struct amdgpu_fpriv * fpriv = uq_mgr_to_fpriv (uq_mgr );
@@ -738,11 +738,11 @@ amdgpu_userqueue_suspend(struct amdgpu_userq_mgr *uq_mgr,
738738 /* Wait for any pending userqueue fence work to finish */
739739 ret = amdgpu_userqueue_wait_for_signal (uq_mgr );
740740 if (ret ) {
741- DRM_ERROR ("Not suspending userqueue, timeout waiting for work\n" );
741+ DRM_ERROR ("Not evicting userqueue, timeout waiting for work\n" );
742742 return ;
743743 }
744744
745- ret = amdgpu_userqueue_suspend_all (uq_mgr );
745+ ret = amdgpu_userqueue_evict_all (uq_mgr );
746746 if (ret ) {
747747 DRM_ERROR ("Failed to evict userqueue\n" );
748748 return ;
@@ -770,7 +770,7 @@ int amdgpu_userq_mgr_init(struct amdgpu_userq_mgr *userq_mgr, struct amdgpu_devi
770770 list_add (& userq_mgr -> list , & adev -> userq_mgr_list );
771771 mutex_unlock (& adev -> userq_mutex );
772772
773- INIT_DELAYED_WORK (& userq_mgr -> resume_work , amdgpu_userqueue_resume_worker );
773+ INIT_DELAYED_WORK (& userq_mgr -> resume_work , amdgpu_userqueue_restore_worker );
774774 return 0 ;
775775}
776776
0 commit comments