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)
commit04fe3fd10e9a2d90de73fc068a102ccaa3603865
treeafce7bc62e7f3b3ca170a960a01952d8c9b8ea27
parentef0d7d2001c99eedb5a8ba71e9f7a055bfb029ea
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