]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: handle errors returned by svm_migrate_copy_to_vram/ram
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 28 Apr 2021 22:57:57 +0000 (18:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:08:32 +0000 (18:08 -0400)
commit2568df194592def92daac00e2511ae24003ccdee
treeafce7bc62e7f3b3ca170a960a01952d8c9b8ea27
parent33ae4e0c23a1f6d0785432f431e533cf83f3a604
drm/amdkfd: handle errors returned by svm_migrate_copy_to_vram/ram

If migration copy failed because process is killed, or out of VRAM or
system memory, pass error code back to caller to handle error
gracefully.

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