mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amdkfd: device pgmap owner at the svm migrate init
GPUs in the same XGMI hive have direct access to all members'VRAM. When mapping memory to a GPU, we don't need hmm_range_fault to fault device-private pages in the same hive back to the host. Identifying the page owner as the hive, rather than the individual GPU, accomplishes this. Signed-off-by: Alex Sierra <alex.sierra@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
9e4a91cd9e
commit
3a61dae854
@@ -35,6 +35,9 @@
|
||||
#include "amdgpu.h"
|
||||
#include "kfd_priv.h"
|
||||
|
||||
#define SVM_ADEV_PGMAP_OWNER(adev)\
|
||||
((adev)->hive ? (void *)(adev)->hive : (void *)(adev))
|
||||
|
||||
struct svm_range_bo {
|
||||
struct amdgpu_bo *bo;
|
||||
struct kref kref;
|
||||
|
||||
Reference in New Issue
Block a user