]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae15e6e817a02ae903616f36015a1e3857e7194d
tree9b14e5fe284e6fe0e62bb4b0f63465ad198d82d4
parent83b8bd752e92a767f3b3159332e83cc3cc78e0bc
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