gem5 v24.0.0.0
|
#include <sys/ioctl.h>
#include <sys/types.h>
#include <cstdint>
Go to the source code of this file.
Namespaces | |
namespace | gem5 |
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved. | |
Enumerations | |
enum | gem5::kfd_smi_event { gem5::KFD_SMI_EVENT_NONE = 0 , gem5::KFD_SMI_EVENT_VMFAULT = 1 , gem5::KFD_SMI_EVENT_THERMAL_THROTTLE = 2 , gem5::KFD_SMI_EVENT_GPU_PRE_RESET = 3 , gem5::KFD_SMI_EVENT_GPU_POST_RESET = 4 } |
enum | gem5::kfd_mmio_remap { gem5::KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL = 0 , gem5::KFD_MMIO_REMAP_HDP_REG_FLUSH_CNTL = 4 } |
#define AMDKFD_COMMAND_END 0x20 |
Definition at line 618 of file kfd_ioctl.h.
#define AMDKFD_COMMAND_START 0x01 |
Definition at line 617 of file kfd_ioctl.h.
#define AMDKFD_IO | ( | nr | ) | _IO(AMDKFD_IOCTL_BASE, nr) |
Definition at line 518 of file kfd_ioctl.h.
#define AMDKFD_IOC_ACQUIRE_VM AMDKFD_IOW(0x15, struct kfd_ioctl_acquire_vm_args) |
Definition at line 584 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_ALLOC_MEMORY_OF_GPU AMDKFD_IOWR(0x16, struct kfd_ioctl_alloc_memory_of_gpu_args) |
Definition at line 587 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_ALLOC_QUEUE_GWS AMDKFD_IOWR(0x1E, struct kfd_ioctl_alloc_queue_gws_args) |
Definition at line 611 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_CREATE_EVENT AMDKFD_IOWR(0x08, struct kfd_ioctl_create_event_args) |
Definition at line 544 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_CREATE_QUEUE AMDKFD_IOWR(0x02, struct kfd_ioctl_create_queue_args) |
Definition at line 526 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_DBG_ADDRESS_WATCH AMDKFD_IOW(0x0F, struct kfd_ioctl_dbg_address_watch_args) |
Definition at line 565 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_DBG_REGISTER AMDKFD_IOW(0x0D, struct kfd_ioctl_dbg_register_args) |
Definition at line 559 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_DBG_UNREGISTER AMDKFD_IOW(0x0E, struct kfd_ioctl_dbg_unregister_args) |
Definition at line 562 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_DBG_WAVE_CONTROL AMDKFD_IOW(0x10, struct kfd_ioctl_dbg_wave_control_args) |
Definition at line 568 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_DESTROY_EVENT AMDKFD_IOW(0x09, struct kfd_ioctl_destroy_event_args) |
Definition at line 547 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_DESTROY_QUEUE AMDKFD_IOWR(0x03, struct kfd_ioctl_destroy_queue_args) |
Definition at line 529 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_FREE_MEMORY_OF_GPU AMDKFD_IOW(0x17, struct kfd_ioctl_free_memory_of_gpu_args) |
Definition at line 590 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_GET_CLOCK_COUNTERS AMDKFD_IOWR(0x05, struct kfd_ioctl_get_clock_counters_args) |
Definition at line 535 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_GET_DMABUF_INFO AMDKFD_IOWR(0x1C, struct kfd_ioctl_get_dmabuf_info_args) |
Definition at line 605 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_GET_PROCESS_APERTURES AMDKFD_IOR(0x06, struct kfd_ioctl_get_process_apertures_args) |
Definition at line 538 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_GET_PROCESS_APERTURES_NEW |
Definition at line 580 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_GET_QUEUE_WAVE_STATE AMDKFD_IOWR(0x1B, struct kfd_ioctl_get_queue_wave_state_args) |
Definition at line 602 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_GET_TILE_CONFIG AMDKFD_IOWR(0x12, struct kfd_ioctl_get_tile_config_args) |
Definition at line 574 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_GET_VERSION AMDKFD_IOR(0x01, struct kfd_ioctl_get_version_args) |
Definition at line 523 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_IMPORT_DMABUF AMDKFD_IOWR(0x1D, struct kfd_ioctl_import_dmabuf_args) |
Definition at line 608 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_MAP_MEMORY_TO_GPU AMDKFD_IOWR(0x18, struct kfd_ioctl_map_memory_to_gpu_args) |
Definition at line 593 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_RESET_EVENT AMDKFD_IOW(0x0B, struct kfd_ioctl_reset_event_args) |
Definition at line 553 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_SET_CU_MASK AMDKFD_IOW(0x1A, struct kfd_ioctl_set_cu_mask_args) |
Definition at line 599 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_SET_EVENT AMDKFD_IOW(0x0A, struct kfd_ioctl_set_event_args) |
Definition at line 550 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_SET_MEMORY_POLICY AMDKFD_IOW(0x04, struct kfd_ioctl_set_memory_policy_args) |
Definition at line 532 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_SET_SCRATCH_BACKING_VA AMDKFD_IOWR(0x11, struct kfd_ioctl_set_scratch_backing_va_args) |
Definition at line 571 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_SET_TRAP_HANDLER AMDKFD_IOW(0x13, struct kfd_ioctl_set_trap_handler_args) |
Definition at line 577 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_SMI_EVENTS AMDKFD_IOWR(0x1F, struct kfd_ioctl_smi_events_args) |
Definition at line 614 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_UNMAP_MEMORY_FROM_GPU AMDKFD_IOWR(0x19, struct kfd_ioctl_unmap_memory_from_gpu_args) |
Definition at line 596 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_UPDATE_QUEUE AMDKFD_IOW(0x07, struct kfd_ioctl_update_queue_args) |
Definition at line 541 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOC_WAIT_EVENTS AMDKFD_IOWR(0x0C, struct kfd_ioctl_wait_events_args) |
Definition at line 556 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define AMDKFD_IOCTL_BASE 'K' |
Definition at line 517 of file kfd_ioctl.h.
#define AMDKFD_IOR | ( | nr, | |
type ) _IOR(AMDKFD_IOCTL_BASE, nr, type) |
Definition at line 519 of file kfd_ioctl.h.
#define AMDKFD_IOW | ( | nr, | |
type ) _IOW(AMDKFD_IOCTL_BASE, nr, type) |
Definition at line 520 of file kfd_ioctl.h.
#define AMDKFD_IOWR | ( | nr, | |
type ) _IOWR(AMDKFD_IOCTL_BASE, nr, type) |
Definition at line 521 of file kfd_ioctl.h.
#define KFD_HW_EXCEPTION_ECC 1 |
Definition at line 237 of file kfd_ioctl.h.
#define KFD_HW_EXCEPTION_GPU_HANG 0 |
Definition at line 236 of file kfd_ioctl.h.
#define KFD_HW_EXCEPTION_PER_ENGINE_RESET 1 |
Definition at line 233 of file kfd_ioctl.h.
#define KFD_HW_EXCEPTION_WHOLE_GPU_RESET 0 |
Definition at line 232 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM (1 << 27) |
Definition at line 386 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_COHERENT (1 << 26) |
Definition at line 387 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL (1 << 3) |
Definition at line 379 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE (1 << 30) |
Definition at line 383 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_GTT (1 << 1) |
Definition at line 377 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP (1 << 4) |
Definition at line 380 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE (1 << 28) |
Definition at line 385 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC (1 << 29) |
Definition at line 384 of file kfd_ioctl.h.
#define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR (1 << 2) |
Definition at line 378 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_IOC_ALLOC_MEM_FLAGS_VRAM (1 << 0) |
Definition at line 376 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE (1 << 31) |
Definition at line 382 of file kfd_ioctl.h.
#define KFD_IOC_CACHE_POLICY_COHERENT 0 |
Definition at line 110 of file kfd_ioctl.h.
#define KFD_IOC_CACHE_POLICY_NONCOHERENT 1 |
Definition at line 111 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_DEBUG_EVENT 5 |
Definition at line 220 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_DEVICESTATECHANGE 2 |
Definition at line 217 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_HW_EXCEPTION 3 |
Definition at line 218 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_MEMORY 8 |
Definition at line 223 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_NODECHANGE 1 |
Definition at line 216 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_PROFILE_EVENT 6 |
Definition at line 221 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_QUEUE_EVENT 7 |
Definition at line 222 of file kfd_ioctl.h.
#define KFD_IOC_EVENT_SIGNAL 0 |
Definition at line 215 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_IOC_EVENT_SYSTEM_EVENT 4 |
Definition at line 219 of file kfd_ioctl.h.
#define KFD_IOC_QUEUE_TYPE_COMPUTE 0 |
Definition at line 48 of file kfd_ioctl.h.
#define KFD_IOC_QUEUE_TYPE_COMPUTE_AQL 2 |
Definition at line 50 of file kfd_ioctl.h.
#define KFD_IOC_QUEUE_TYPE_SDMA 1 |
Definition at line 49 of file kfd_ioctl.h.
#define KFD_IOC_QUEUE_TYPE_SDMA_XGMI 3 |
Definition at line 51 of file kfd_ioctl.h.
#define KFD_IOC_WAIT_RESULT_COMPLETE 0 |
Definition at line 225 of file kfd_ioctl.h.
#define KFD_IOC_WAIT_RESULT_FAIL 2 |
Definition at line 227 of file kfd_ioctl.h.
#define KFD_IOC_WAIT_RESULT_TIMEOUT 1 |
Definition at line 226 of file kfd_ioctl.h.
#define KFD_IOCTL_MAJOR_VERSION 1 |
Definition at line 38 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_IOCTL_MINOR_VERSION 3 |
Definition at line 39 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::ioctl().
#define KFD_MAX_QUEUE_PERCENTAGE 100 |
Definition at line 53 of file kfd_ioctl.h.
#define KFD_MAX_QUEUE_PRIORITY 15 |
Definition at line 54 of file kfd_ioctl.h.
#define KFD_MEM_ERR_GPU_HANG 3 |
Definition at line 243 of file kfd_ioctl.h.
#define KFD_MEM_ERR_NO_RAS 0 |
Definition at line 240 of file kfd_ioctl.h.
#define KFD_MEM_ERR_POISON_CONSUMED 2 |
Definition at line 242 of file kfd_ioctl.h.
#define KFD_MEM_ERR_SRAM_ECC 1 |
Definition at line 241 of file kfd_ioctl.h.
#define KFD_SIGNAL_EVENT_LIMIT 4096 |
Definition at line 229 of file kfd_ioctl.h.
Referenced by gem5::GPUComputeDriver::mmap().
#define KFD_SMI_EVENT_MASK_FROM_INDEX | ( | i | ) | (1ULL << ((i) - 1)) |
Definition at line 501 of file kfd_ioctl.h.
#define MAX_ALLOWED_AW_BUFF_SIZE 4096 |
Definition at line 185 of file kfd_ioctl.h.
#define MAX_ALLOWED_NUM_POINTS 100 |
Definition at line 184 of file kfd_ioctl.h.
#define MAX_ALLOWED_WAC_BUFF_SIZE 128 |
Definition at line 186 of file kfd_ioctl.h.
#define NUM_OF_SUPPORTED_GPUS 7 |
Definition at line 159 of file kfd_ioctl.h.