gem5
v20.1.0.0
|
#include <linux/types.h>
#include <linux/ioctl.h>
Go to the source code of this file.
#define AMDKFD_COMMAND_END 0x21 |
Definition at line 534 of file kfd_ioctl.h.
#define AMDKFD_COMMAND_START 0x01 |
Definition at line 533 of file kfd_ioctl.h.
#define AMDKFD_IO | ( | nr | ) | _IO(AMDKFD_IOCTL_BASE, nr) |
Definition at line 430 of file kfd_ioctl.h.
#define AMDKFD_IOC_ALLOC_MEMORY_OF_GPU AMDKFD_IOWR(0x11, struct kfd_ioctl_alloc_memory_of_gpu_args) |
Definition at line 483 of file kfd_ioctl.h.
#define AMDKFD_IOC_ALLOC_MEMORY_OF_SCRATCH AMDKFD_IOWR(0x15, struct kfd_ioctl_alloc_memory_of_scratch_args) |
Definition at line 495 of file kfd_ioctl.h.
#define AMDKFD_IOC_CREATE_EVENT AMDKFD_IOWR(0x08, struct kfd_ioctl_create_event_args) |
Definition at line 456 of file kfd_ioctl.h.
#define AMDKFD_IOC_CREATE_QUEUE AMDKFD_IOWR(0x02, struct kfd_ioctl_create_queue_args) |
Definition at line 438 of file kfd_ioctl.h.
#define AMDKFD_IOC_CROSS_MEMORY_COPY AMDKFD_IOWR(0x1F, struct kfd_ioctl_cross_memory_copy_args) |
Definition at line 526 of file kfd_ioctl.h.
#define AMDKFD_IOC_DBG_ADDRESS_WATCH AMDKFD_IOW(0x0F, struct kfd_ioctl_dbg_address_watch_args) |
Definition at line 477 of file kfd_ioctl.h.
#define AMDKFD_IOC_DBG_REGISTER AMDKFD_IOW(0x0D, struct kfd_ioctl_dbg_register_args) |
Definition at line 471 of file kfd_ioctl.h.
#define AMDKFD_IOC_DBG_UNREGISTER AMDKFD_IOW(0x0E, struct kfd_ioctl_dbg_unregister_args) |
Definition at line 474 of file kfd_ioctl.h.
#define AMDKFD_IOC_DBG_WAVE_CONTROL AMDKFD_IOW(0x10, struct kfd_ioctl_dbg_wave_control_args) |
Definition at line 480 of file kfd_ioctl.h.
#define AMDKFD_IOC_DESTROY_EVENT AMDKFD_IOW(0x09, struct kfd_ioctl_destroy_event_args) |
Definition at line 459 of file kfd_ioctl.h.
#define AMDKFD_IOC_DESTROY_QUEUE AMDKFD_IOWR(0x03, struct kfd_ioctl_destroy_queue_args) |
Definition at line 441 of file kfd_ioctl.h.
#define AMDKFD_IOC_FREE_MEMORY_OF_GPU AMDKFD_IOWR(0x12, struct kfd_ioctl_free_memory_of_gpu_args) |
Definition at line 486 of file kfd_ioctl.h.
#define AMDKFD_IOC_GET_CLOCK_COUNTERS AMDKFD_IOWR(0x05, struct kfd_ioctl_get_clock_counters_args) |
Definition at line 447 of file kfd_ioctl.h.
#define AMDKFD_IOC_GET_DMABUF_INFO AMDKFD_IOWR(0x1A, struct kfd_ioctl_get_dmabuf_info_args) |
Definition at line 511 of file kfd_ioctl.h.
#define AMDKFD_IOC_GET_PROCESS_APERTURES AMDKFD_IOR(0x06, struct kfd_ioctl_get_process_apertures_args) |
Definition at line 450 of file kfd_ioctl.h.
#define AMDKFD_IOC_GET_PROCESS_APERTURES_NEW AMDKFD_IOWR(0x19, struct kfd_ioctl_get_process_apertures_new_args) |
Definition at line 508 of file kfd_ioctl.h.
#define AMDKFD_IOC_GET_TILE_CONFIG AMDKFD_IOWR(0x1C, struct kfd_ioctl_get_tile_config_args) |
Definition at line 517 of file kfd_ioctl.h.
#define AMDKFD_IOC_GET_VERSION AMDKFD_IOR(0x01, struct kfd_ioctl_get_version_args) |
Definition at line 435 of file kfd_ioctl.h.
#define AMDKFD_IOC_IMPORT_DMABUF AMDKFD_IOWR(0x1B, struct kfd_ioctl_import_dmabuf_args) |
Definition at line 514 of file kfd_ioctl.h.
#define AMDKFD_IOC_IPC_EXPORT_HANDLE AMDKFD_IOWR(0x1E, struct kfd_ioctl_ipc_export_handle_args) |
Definition at line 523 of file kfd_ioctl.h.
#define AMDKFD_IOC_IPC_IMPORT_HANDLE AMDKFD_IOWR(0x1D, struct kfd_ioctl_ipc_import_handle_args) |
Definition at line 520 of file kfd_ioctl.h.
#define AMDKFD_IOC_MAP_MEMORY_TO_GPU AMDKFD_IOWR(0x13, struct kfd_ioctl_map_memory_to_gpu_args) |
Definition at line 489 of file kfd_ioctl.h.
#define AMDKFD_IOC_OPEN_GRAPHIC_HANDLE AMDKFD_IOWR(0x20, struct kfd_ioctl_open_graphic_handle_args) |
Definition at line 530 of file kfd_ioctl.h.
#define AMDKFD_IOC_RESET_EVENT AMDKFD_IOW(0x0B, struct kfd_ioctl_reset_event_args) |
Definition at line 465 of file kfd_ioctl.h.
#define AMDKFD_IOC_SET_CU_MASK AMDKFD_IOW(0x16, struct kfd_ioctl_set_cu_mask_args) |
Definition at line 498 of file kfd_ioctl.h.
#define AMDKFD_IOC_SET_EVENT AMDKFD_IOW(0x0A, struct kfd_ioctl_set_event_args) |
Definition at line 462 of file kfd_ioctl.h.
#define AMDKFD_IOC_SET_MEMORY_POLICY AMDKFD_IOW(0x04, struct kfd_ioctl_set_memory_policy_args) |
Definition at line 444 of file kfd_ioctl.h.
#define AMDKFD_IOC_SET_PROCESS_DGPU_APERTURE |
Definition at line 501 of file kfd_ioctl.h.
#define AMDKFD_IOC_SET_TRAP_HANDLER AMDKFD_IOW(0x18, struct kfd_ioctl_set_trap_handler_args) |
Definition at line 505 of file kfd_ioctl.h.
#define AMDKFD_IOC_UNMAP_MEMORY_FROM_GPU AMDKFD_IOWR(0x14, struct kfd_ioctl_unmap_memory_from_gpu_args) |
Definition at line 492 of file kfd_ioctl.h.
#define AMDKFD_IOC_UPDATE_QUEUE AMDKFD_IOW(0x07, struct kfd_ioctl_update_queue_args) |
Definition at line 453 of file kfd_ioctl.h.
#define AMDKFD_IOC_WAIT_EVENTS AMDKFD_IOWR(0x0C, struct kfd_ioctl_wait_events_args) |
Definition at line 468 of file kfd_ioctl.h.
#define AMDKFD_IOCTL_BASE 'K' |
Definition at line 429 of file kfd_ioctl.h.
#define AMDKFD_IOR | ( | nr, | |
type | |||
) | _IOR(AMDKFD_IOCTL_BASE, nr, type) |
Definition at line 431 of file kfd_ioctl.h.
#define AMDKFD_IOW | ( | nr, | |
type | |||
) | _IOW(AMDKFD_IOCTL_BASE, nr, type) |
Definition at line 432 of file kfd_ioctl.h.
#define AMDKFD_IOWR | ( | nr, | |
type | |||
) | _IOWR(AMDKFD_IOCTL_BASE, nr, type) |
Definition at line 433 of file kfd_ioctl.h.
#define KFD_CROSS_MEMORY_RW_BIT (1 << 0) |
Definition at line 407 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM (1 << 27) |
Definition at line 290 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_COHERENT (1 << 25) |
Definition at line 292 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL (1 << 3) |
Definition at line 284 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTE_ACCESS (1 << 26) |
Definition at line 291 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_GTT (1 << 1) |
Definition at line 282 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE (1 << 28) |
Definition at line 289 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_NONPAGED (1 << 31) |
Definition at line 286 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC (1 << 29) |
Definition at line 288 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_READONLY (1 << 30) |
Definition at line 287 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR (1 << 2) |
Definition at line 283 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_VRAM (1 << 0) |
Definition at line 281 of file kfd_ioctl.h.
#define KFD_IOC_CACHE_POLICY_COHERENT 0 |
Definition at line 86 of file kfd_ioctl.h.
#define KFD_IOC_CACHE_POLICY_NONCOHERENT 1 |
Definition at line 87 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_DEBUG_EVENT 5 |
Definition at line 194 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_DEVICESTATECHANGE 2 |
Definition at line 191 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_HW_EXCEPTION 3 |
Definition at line 192 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_MEMORY 8 |
Definition at line 197 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_NODECHANGE 1 |
Definition at line 190 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_PROFILE_EVENT 6 |
Definition at line 195 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_QUEUE_EVENT 7 |
Definition at line 196 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_SIGNAL 0 |
Definition at line 189 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_SYSTEM_EVENT 4 |
Definition at line 193 of file kfd_ioctl.h.
#define KFD_IOC_QUEUE_TYPE_COMPUTE 0 |
Definition at line 38 of file kfd_ioctl.h.
#define KFD_IOC_QUEUE_TYPE_COMPUTE_AQL 2 |
Definition at line 40 of file kfd_ioctl.h.
#define KFD_IOC_QUEUE_TYPE_SDMA 1 |
Definition at line 39 of file kfd_ioctl.h.
#define KFD_IOC_WAIT_RESULT_COMPLETE 0 |
Definition at line 199 of file kfd_ioctl.h.
#define KFD_IOC_WAIT_RESULT_FAIL 2 |
Definition at line 201 of file kfd_ioctl.h.
#define KFD_IOC_WAIT_RESULT_TIMEOUT 1 |
Definition at line 200 of file kfd_ioctl.h.
#define KFD_IOCTL_MAJOR_VERSION 1 |
Definition at line 29 of file kfd_ioctl.h.
#define KFD_IOCTL_MINOR_VERSION 2 |
Definition at line 30 of file kfd_ioctl.h.
#define KFD_IS_CROSS_MEMORY_WRITE | ( | flags | ) | (flags & KFD_CROSS_MEMORY_RW_BIT) |
Definition at line 410 of file kfd_ioctl.h.
#define KFD_MAX_QUEUE_PERCENTAGE 100 |
Definition at line 42 of file kfd_ioctl.h.
#define KFD_MAX_QUEUE_PRIORITY 15 |
Definition at line 43 of file kfd_ioctl.h.
#define KFD_SET_CROSS_MEMORY_READ | ( | flags | ) | (flags &= ~KFD_CROSS_MEMORY_RW_BIT) |
Definition at line 408 of file kfd_ioctl.h.
#define KFD_SET_CROSS_MEMORY_WRITE | ( | flags | ) | (flags |= KFD_CROSS_MEMORY_RW_BIT) |
Definition at line 409 of file kfd_ioctl.h.
#define KFD_SIGNAL_EVENT_LIMIT (4096 + 512) |
Definition at line 210 of file kfd_ioctl.h.
#define MAX_ALLOWED_AW_BUFF_SIZE 4096 |
Definition at line 163 of file kfd_ioctl.h.
#define MAX_ALLOWED_NUM_POINTS 100 |
Definition at line 162 of file kfd_ioctl.h.
#define MAX_ALLOWED_WAC_BUFF_SIZE 128 |
Definition at line 164 of file kfd_ioctl.h.
#define NUM_OF_SUPPORTED_GPUS 7 |
Definition at line 123 of file kfd_ioctl.h.