]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53d64121dcd02c840a93c39f45915b251ee2e78b
tree786ed9f3d861ffbed8f5526c034207558556ee13
parent2a055249a8e50d5701e9ad253ba0e18e6da24fdb
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