drm/amdkfd: fix svm_bo release invalid wait context warning
Add svm_range_bo_unref_async to schedule work to wait for svm_bo eviction work done and then free svm_bo. __do_munmap put_page is atomic context, call svm_range_bo_unref_async to avoid warning invalid wait context. Other non atomic context call svm_range_bo_unref. Signed-off-by:Philip Yang <Philip.Yang@amd.com> Reviewed-by:
Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_migrate.c
- drivers/gpu/drm/amd/amdkfd/kfd_svm.c 27 additions, 4 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_svm.c
- drivers/gpu/drm/amd/amdkfd/kfd_svm.h 2 additions, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_svm.h
Loading