drm/amdkfd: evict svm bo worker handle error
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 11 Mar 2022 20:22:15 +0000 (15:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 19:01:12 +0000 (15:01 -0400)
commit9527b9caf82b040e794fba2667f6d8a85a793bb7
tree786ed9f3d861ffbed8f5526c034207558556ee13
parent4e2f50e2306fdd0e5fc7db3d9a452ba1327b787e
drm/amdkfd: evict svm bo worker handle error

Migrate vram to ram may fail to find the vma if process is exiting
and vma is removed, evict svm bo worker sets prange->svm_bo to NULL
and warn svm_bo ref count != 1 only if migrating vram to ram
successfully.

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>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c