drm/amdgpu: Generalize KFD dmabuf import
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 17 Nov 2021 02:03:23 +0000 (21:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:00 +0000 (14:30 -0500)
commit2d81c4cd78477e473dbdedd1dbfb67460fa53c58
treefab6d7dc5b0f39ad0f6351b3c716449b5b9cb0b4
parent7ae1dbe6547c39410d82156c96eaa9c8cf55e87a
drm/amdgpu: Generalize KFD dmabuf import

Use proper amdgpu_gem_prime_import function to handle all kinds of
imports. Remember the dmabuf reference to enable proper multi-GPU
attachment to multiple VMs without erroneously re-exporting the
underlying BO multiple times.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c