drm/amdkfd: Export DMABufs from KFD using GEM handles
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 24 Aug 2023 18:41:30 +0000 (14:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2023 20:09:55 +0000 (15:09 -0500)
commit1819200166ce511ac298dc96b9b17eb655a9edc4
tree2aaf5ecdd6c81701a6f68253e4227c26afbc9c2d
parent4e95669ecb03d797355bc23871c5c43b9475d3dc
drm/amdkfd: Export DMABufs from KFD using GEM handles

Create GEM handles for exporting DMABufs using GEM-Prime APIs. The GEM
handles are created in a drm_client_dev context to avoid exposing them
in user mode contexts through a DMABuf import.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c