]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3493c1d09f84ba01254862b9eacb81d96be1a0e
tree10b7d4d941f523c4f872a5a3af11a427e8bc1ca5
parenta7089d00598bc04b41a4fc2712ae6290da698383
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