drm/amdkfd: handle svm migrate init error
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 17 Sep 2021 18:32:14 +0000 (14:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Sep 2021 20:34:49 +0000 (16:34 -0400)
commit586d71a42725dbc67cbb15f9904c65d99a757b0f
tree9b14e5fe284e6fe0e62bb4b0f63465ad198d82d4
parent640ae42efb828be69a9ee6ac88fb3d5a3e678ddf
drm/amdkfd: handle svm migrate init error

If svm migration init failed to create pgmap for device memory, set
pgmap type to 0 to disable device SVM support capability.

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