drm/amdkfd: Add ioctls for GPUVM memory management
v2: * Fix error handling after kfd_bind_process_to_device in kfd_ioctl_map_memory_to_gpu v3: * Add ioctl to acquire VM from a DRM FD v4: * Return number of successful map/unmap operations in failure cases * Facilitate partial retry after failed map/unmap * Added comments with parameter descriptions to new APIs * Defined AMDKFD_IOC_FREE_MEMORY_OF_GPU write-only Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:

committed by
Oded Gabbay

parent
552764b680
commit
5ec7e02854
@@ -130,6 +130,7 @@ struct tile_config {
|
||||
|
||||
/*
|
||||
* Allocation flag domains
|
||||
* NOTE: This must match the corresponding definitions in kfd_ioctl.h.
|
||||
*/
|
||||
#define ALLOC_MEM_FLAGS_VRAM (1 << 0)
|
||||
#define ALLOC_MEM_FLAGS_GTT (1 << 1)
|
||||
@@ -138,6 +139,7 @@ struct tile_config {
|
||||
|
||||
/*
|
||||
* Allocation flags attributes/access options.
|
||||
* NOTE: This must match the corresponding definitions in kfd_ioctl.h.
|
||||
*/
|
||||
#define ALLOC_MEM_FLAGS_WRITABLE (1 << 31)
|
||||
#define ALLOC_MEM_FLAGS_EXECUTABLE (1 << 30)
|
||||
|
Reference in New Issue
Block a user