]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdkfd: device pgmap owner at the svm migrate init
authorAlex Sierra <alex.sierra@amd.com>
Wed, 5 May 2021 17:43:10 +0000 (12:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:41 +0000 (00:05 -0400)
commit3a61dae854cccb32eb9f31b3b4efda8ea414e647
tree5ef36aa68397d334d01b772e0e29494b62741176
parent9e4a91cd9ea9b9d6218f6c64c57c5ff412de919f
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>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h