]> 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)
commit7041f20f494a94a8537967fccd29ac3d7a539f04
tree10b7d4d941f523c4f872a5a3af11a427e8bc1ca5
parent0647ea3a8a3dae8a182b694f27f81d647252e962
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