File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -2906,20 +2906,6 @@ static int amdgpu_pmops_runtime_idle(struct device *dev)
2906
2906
return ret ;
2907
2907
}
2908
2908
2909
- static int amdgpu_drm_release (struct inode * inode , struct file * filp )
2910
- {
2911
- struct drm_file * file_priv = filp -> private_data ;
2912
- struct amdgpu_fpriv * fpriv = file_priv -> driver_priv ;
2913
-
2914
- if (fpriv ) {
2915
- fpriv -> evf_mgr .fd_closing = true;
2916
- amdgpu_eviction_fence_destroy (& fpriv -> evf_mgr );
2917
- amdgpu_userq_mgr_fini (& fpriv -> userq_mgr );
2918
- }
2919
-
2920
- return drm_release (inode , filp );
2921
- }
2922
-
2923
2909
long amdgpu_drm_ioctl (struct file * filp ,
2924
2910
unsigned int cmd , unsigned long arg )
2925
2911
{
@@ -2971,7 +2957,7 @@ static const struct file_operations amdgpu_driver_kms_fops = {
2971
2957
.owner = THIS_MODULE ,
2972
2958
.open = drm_open ,
2973
2959
.flush = amdgpu_flush ,
2974
- .release = amdgpu_drm_release ,
2960
+ .release = drm_release ,
2975
2961
.unlocked_ioctl = amdgpu_drm_ioctl ,
2976
2962
.mmap = drm_gem_mmap ,
2977
2963
.poll = drm_poll ,
Original file line number Diff line number Diff line change @@ -1501,6 +1501,9 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev,
1501
1501
amdgpu_vm_bo_del (adev , fpriv -> prt_va );
1502
1502
amdgpu_bo_unreserve (pd );
1503
1503
}
1504
+ fpriv -> evf_mgr .fd_closing = true;
1505
+ amdgpu_eviction_fence_destroy (& fpriv -> evf_mgr );
1506
+ amdgpu_userq_mgr_fini (& fpriv -> userq_mgr );
1504
1507
1505
1508
amdgpu_ctx_mgr_fini (& fpriv -> ctx_mgr );
1506
1509
amdgpu_vm_fini (adev , & fpriv -> vm );
You can’t perform that action at this time.
0 commit comments