]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Add DMABuf import functionality
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 21 Nov 2018 02:00:29 +0000 (21:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Dec 2018 23:13:54 +0000 (18:13 -0500)
commit2e9f24cf1cbac436efc634dbfe705f0a03b6acee
tree2033a93a0417699fca78f5e42f1a7512e80c5a76
parentd6b0ddda8f7064b4cde4b149f3aa4cfac14f8e2e
drm/amdkfd: Add DMABuf import functionality

This is used for interoperability between ROCm compute and graphics
APIs. It allows importing graphics driver BOs into the ROCm SVM
address space for zero-copy GPU access.

The API is split into two steps (query and import) to allow user mode
to manage the virtual address space allocation for the imported buffer.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@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/amdgpu/amdgpu_gem.h
drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
include/uapi/linux/kfd_ioctl.h