drm/amdkfd: Access gpuvm_export_dmabuf() API to get Dmabuf
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>
Wed, 21 Jun 2023 00:35:46 +0000 (19:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Jul 2023 17:51:47 +0000 (13:51 -0400)
commit95de7f26b5c0bd907834b1027a2dca8ac6758bbc
tree3eab28175b94c62c38c23677b392a092e9d2d2c7
parenta90d36a49a9d4ba703ff680a035e22b88a566023
drm/amdkfd: Access gpuvm_export_dmabuf() API to get Dmabuf

Directly invoking the function amdgpu_gem_prime_export() from within
KFD is not correct. By utilizing the KFD API to obtain Dmabuf, the
implementation can prevent the creation of multiple instances of
struct dma_buf.

Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c