OSDN Git Service

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)
commit7d6687200a939176847090bbde5cb79a82792a2f
treea5dc17e8b25393c6b863156f5241609526e073cc
parentab39d3cef526ba09c4c6923b4cd7e6ec1c5d4faa
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