]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit1dde0ea95b782425b95455d487cb44991525a1d1
tree2033a93a0417699fca78f5e42f1a7512e80c5a76
parent3704d56e1a64bb0e951815f91149ae7bb726aa76
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