OSDN Git Service

drm/amdgpu: get owner ref in validate and map
authorAlex Sierra <alex.sierra@amd.com>
Thu, 6 May 2021 18:18:40 +0000 (13:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:41 +0000 (00:05 -0400)
commit1fc160cfe17ad741157ba8bf38ea5867f4d9fe53
treed81c7f85fa1410bc4dd9a70e783a5efe684a48b9
parenta010d98a78c05652f9f2860f537efdcd65507c6d
drm/amdgpu: get owner ref in validate and map

Get the proper owner reference for amdgpu_hmm_range_get_pages function.
This is useful for partial migrations. To avoid migrating back to
system memory, VRAM pages, that are accessible by all devices in the
same memory domain.
Ex. multiple devices in 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/amdkfd/kfd_svm.c