OSDN Git Service

drm/amdkfd: Fix SVM_ATTR_PREFERRED_LOC
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 27 Oct 2021 21:21:23 +0000 (17:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:07 +0000 (12:22 -0400)
commit297753a06a88d7e2b56489049f4adf0d1aac290f
tree10b7d4d941f523c4f872a5a3af11a427e8bc1ca5
parent72c148d776b454a358a16993f11587dca237f259
drm/amdkfd: Fix SVM_ATTR_PREFERRED_LOC

The preferred location should be used as the migration destination
whenever it is accessible by the faulting GPU. System memory is always
accessible. Peer memory is accessible if it's in the same XGMI hive.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c