]> 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 21:06:11 +0000 (17:06 -0400)
commitde06c2f70a1d3eceed1156052b5f7562d3cde90a
treea5dc17e8b25393c6b863156f5241609526e073cc
parent55469e4ba5d81625b367b296b6044336d73bfc3f
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