drm/amdkfd: add owner ref param to get hmm pages
authorAlex Sierra <alex.sierra@amd.com>
Thu, 6 May 2021 17:23:07 +0000 (12:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:41 +0000 (00:05 -0400)
commit8c21fc49a8e637bee5c868dafbd7e3c885a926bd
tree21ddc578b953200830f0e9a1749de0f81a024713
parent3a61dae854cccb32eb9f31b3b4efda8ea414e647
drm/amdkfd: add owner ref param to get hmm pages

The parameter is used in the dev_private_owner to decide if device
pages in the range require to be migrated back to system memory, based
if they are or not in the same memory domain.
In this case, this reference could come from the same memory domain
with devices connected to the same hive.

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/amdgpu/amdgpu_mn.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c