gem5 v24.0.0.0
Loading...
Searching...
No Matches
kfd_ioctl.h File Reference
#include <sys/ioctl.h>
#include <sys/types.h>
#include <cstdint>

Go to the source code of this file.

Classes

struct  gem5::kfd_ioctl_get_version_args
 
struct  gem5::kfd_ioctl_create_queue_args
 
struct  gem5::kfd_ioctl_destroy_queue_args
 
struct  gem5::kfd_ioctl_update_queue_args
 
struct  gem5::kfd_ioctl_set_cu_mask_args
 
struct  gem5::kfd_ioctl_get_queue_wave_state_args
 
struct  gem5::kfd_ioctl_set_memory_policy_args
 
struct  gem5::kfd_ioctl_get_clock_counters_args
 
struct  gem5::kfd_process_device_apertures
 
struct  gem5::kfd_ioctl_get_process_apertures_args
 
struct  gem5::kfd_ioctl_get_process_apertures_new_args
 
struct  gem5::kfd_ioctl_dbg_register_args
 
struct  gem5::kfd_ioctl_dbg_unregister_args
 
struct  gem5::kfd_ioctl_dbg_address_watch_args
 
struct  gem5::kfd_ioctl_dbg_wave_control_args
 
struct  gem5::kfd_ioctl_create_event_args
 
struct  gem5::kfd_ioctl_destroy_event_args
 
struct  gem5::kfd_ioctl_set_event_args
 
struct  gem5::kfd_ioctl_reset_event_args
 
struct  gem5::kfd_memory_exception_failure
 
struct  gem5::kfd_hsa_memory_exception_data
 
struct  gem5::kfd_hsa_hw_exception_data
 
struct  gem5::kfd_event_data
 
struct  gem5::kfd_ioctl_wait_events_args
 
struct  gem5::kfd_ioctl_set_scratch_backing_va_args
 
struct  gem5::kfd_ioctl_get_tile_config_args
 
struct  gem5::kfd_ioctl_set_trap_handler_args
 
struct  gem5::kfd_ioctl_acquire_vm_args
 
struct  gem5::kfd_ioctl_alloc_memory_of_gpu_args
 
struct  gem5::kfd_ioctl_free_memory_of_gpu_args
 
struct  gem5::kfd_ioctl_map_memory_to_gpu_args
 
struct  gem5::kfd_ioctl_unmap_memory_from_gpu_args
 
struct  gem5::kfd_ioctl_alloc_queue_gws_args
 
struct  gem5::kfd_ioctl_get_dmabuf_info_args
 
struct  gem5::kfd_ioctl_import_dmabuf_args
 
struct  gem5::kfd_ioctl_smi_events_args
 

Namespaces

namespace  gem5
 Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
 

Macros

#define KFD_IOCTL_MAJOR_VERSION   1
 
#define KFD_IOCTL_MINOR_VERSION   3
 
#define KFD_IOC_QUEUE_TYPE_COMPUTE   0
 
#define KFD_IOC_QUEUE_TYPE_SDMA   1
 
#define KFD_IOC_QUEUE_TYPE_COMPUTE_AQL   2
 
#define KFD_IOC_QUEUE_TYPE_SDMA_XGMI   3
 
#define KFD_MAX_QUEUE_PERCENTAGE   100
 
#define KFD_MAX_QUEUE_PRIORITY   15
 
#define KFD_IOC_CACHE_POLICY_COHERENT   0
 
#define KFD_IOC_CACHE_POLICY_NONCOHERENT   1
 
#define NUM_OF_SUPPORTED_GPUS   7
 
#define MAX_ALLOWED_NUM_POINTS   100
 
#define MAX_ALLOWED_AW_BUFF_SIZE   4096
 
#define MAX_ALLOWED_WAC_BUFF_SIZE   128
 
#define KFD_IOC_EVENT_SIGNAL   0
 
#define KFD_IOC_EVENT_NODECHANGE   1
 
#define KFD_IOC_EVENT_DEVICESTATECHANGE   2
 
#define KFD_IOC_EVENT_HW_EXCEPTION   3
 
#define KFD_IOC_EVENT_SYSTEM_EVENT   4
 
#define KFD_IOC_EVENT_DEBUG_EVENT   5
 
#define KFD_IOC_EVENT_PROFILE_EVENT   6
 
#define KFD_IOC_EVENT_QUEUE_EVENT   7
 
#define KFD_IOC_EVENT_MEMORY   8
 
#define KFD_IOC_WAIT_RESULT_COMPLETE   0
 
#define KFD_IOC_WAIT_RESULT_TIMEOUT   1
 
#define KFD_IOC_WAIT_RESULT_FAIL   2
 
#define KFD_SIGNAL_EVENT_LIMIT   4096
 
#define KFD_HW_EXCEPTION_WHOLE_GPU_RESET   0
 
#define KFD_HW_EXCEPTION_PER_ENGINE_RESET   1
 
#define KFD_HW_EXCEPTION_GPU_HANG   0
 
#define KFD_HW_EXCEPTION_ECC   1
 
#define KFD_MEM_ERR_NO_RAS   0
 
#define KFD_MEM_ERR_SRAM_ECC   1
 
#define KFD_MEM_ERR_POISON_CONSUMED   2
 
#define KFD_MEM_ERR_GPU_HANG   3
 
#define KFD_IOC_ALLOC_MEM_FLAGS_VRAM   (1 << 0)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_GTT   (1 << 1)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR   (1 << 2)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL   (1 << 3)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP   (1 << 4)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE   (1 << 31)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE   (1 << 30)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC   (1 << 29)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE   (1 << 28)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM   (1 << 27)
 
#define KFD_IOC_ALLOC_MEM_FLAGS_COHERENT   (1 << 26)
 
#define KFD_SMI_EVENT_MASK_FROM_INDEX(i)   (1ULL << ((i) - 1))
 
#define AMDKFD_IOCTL_BASE   'K'
 
#define AMDKFD_IO(nr)   _IO(AMDKFD_IOCTL_BASE, nr)
 
#define AMDKFD_IOR(nr, type)   _IOR(AMDKFD_IOCTL_BASE, nr, type)
 
#define AMDKFD_IOW(nr, type)   _IOW(AMDKFD_IOCTL_BASE, nr, type)
 
#define AMDKFD_IOWR(nr, type)   _IOWR(AMDKFD_IOCTL_BASE, nr, type)
 
#define AMDKFD_IOC_GET_VERSION    AMDKFD_IOR(0x01, struct kfd_ioctl_get_version_args)
 
#define AMDKFD_IOC_CREATE_QUEUE    AMDKFD_IOWR(0x02, struct kfd_ioctl_create_queue_args)
 
#define AMDKFD_IOC_DESTROY_QUEUE    AMDKFD_IOWR(0x03, struct kfd_ioctl_destroy_queue_args)
 
#define AMDKFD_IOC_SET_MEMORY_POLICY    AMDKFD_IOW(0x04, struct kfd_ioctl_set_memory_policy_args)
 
#define AMDKFD_IOC_GET_CLOCK_COUNTERS    AMDKFD_IOWR(0x05, struct kfd_ioctl_get_clock_counters_args)
 
#define AMDKFD_IOC_GET_PROCESS_APERTURES    AMDKFD_IOR(0x06, struct kfd_ioctl_get_process_apertures_args)
 
#define AMDKFD_IOC_UPDATE_QUEUE    AMDKFD_IOW(0x07, struct kfd_ioctl_update_queue_args)
 
#define AMDKFD_IOC_CREATE_EVENT    AMDKFD_IOWR(0x08, struct kfd_ioctl_create_event_args)
 
#define AMDKFD_IOC_DESTROY_EVENT    AMDKFD_IOW(0x09, struct kfd_ioctl_destroy_event_args)
 
#define AMDKFD_IOC_SET_EVENT    AMDKFD_IOW(0x0A, struct kfd_ioctl_set_event_args)
 
#define AMDKFD_IOC_RESET_EVENT    AMDKFD_IOW(0x0B, struct kfd_ioctl_reset_event_args)
 
#define AMDKFD_IOC_WAIT_EVENTS    AMDKFD_IOWR(0x0C, struct kfd_ioctl_wait_events_args)
 
#define AMDKFD_IOC_DBG_REGISTER    AMDKFD_IOW(0x0D, struct kfd_ioctl_dbg_register_args)
 
#define AMDKFD_IOC_DBG_UNREGISTER    AMDKFD_IOW(0x0E, struct kfd_ioctl_dbg_unregister_args)
 
#define AMDKFD_IOC_DBG_ADDRESS_WATCH    AMDKFD_IOW(0x0F, struct kfd_ioctl_dbg_address_watch_args)
 
#define AMDKFD_IOC_DBG_WAVE_CONTROL    AMDKFD_IOW(0x10, struct kfd_ioctl_dbg_wave_control_args)
 
#define AMDKFD_IOC_SET_SCRATCH_BACKING_VA    AMDKFD_IOWR(0x11, struct kfd_ioctl_set_scratch_backing_va_args)
 
#define AMDKFD_IOC_GET_TILE_CONFIG    AMDKFD_IOWR(0x12, struct kfd_ioctl_get_tile_config_args)
 
#define AMDKFD_IOC_SET_TRAP_HANDLER    AMDKFD_IOW(0x13, struct kfd_ioctl_set_trap_handler_args)
 
#define AMDKFD_IOC_GET_PROCESS_APERTURES_NEW
 
#define AMDKFD_IOC_ACQUIRE_VM    AMDKFD_IOW(0x15, struct kfd_ioctl_acquire_vm_args)
 
#define AMDKFD_IOC_ALLOC_MEMORY_OF_GPU    AMDKFD_IOWR(0x16, struct kfd_ioctl_alloc_memory_of_gpu_args)
 
#define AMDKFD_IOC_FREE_MEMORY_OF_GPU    AMDKFD_IOW(0x17, struct kfd_ioctl_free_memory_of_gpu_args)
 
#define AMDKFD_IOC_MAP_MEMORY_TO_GPU    AMDKFD_IOWR(0x18, struct kfd_ioctl_map_memory_to_gpu_args)
 
#define AMDKFD_IOC_UNMAP_MEMORY_FROM_GPU    AMDKFD_IOWR(0x19, struct kfd_ioctl_unmap_memory_from_gpu_args)
 
#define AMDKFD_IOC_SET_CU_MASK    AMDKFD_IOW(0x1A, struct kfd_ioctl_set_cu_mask_args)
 
#define AMDKFD_IOC_GET_QUEUE_WAVE_STATE    AMDKFD_IOWR(0x1B, struct kfd_ioctl_get_queue_wave_state_args)
 
#define AMDKFD_IOC_GET_DMABUF_INFO    AMDKFD_IOWR(0x1C, struct kfd_ioctl_get_dmabuf_info_args)
 
#define AMDKFD_IOC_IMPORT_DMABUF    AMDKFD_IOWR(0x1D, struct kfd_ioctl_import_dmabuf_args)
 
#define AMDKFD_IOC_ALLOC_QUEUE_GWS    AMDKFD_IOWR(0x1E, struct kfd_ioctl_alloc_queue_gws_args)
 
#define AMDKFD_IOC_SMI_EVENTS    AMDKFD_IOWR(0x1F, struct kfd_ioctl_smi_events_args)
 
#define AMDKFD_COMMAND_START   0x01
 
#define AMDKFD_COMMAND_END   0x20
 

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 }
 

Macro Definition Documentation

◆ AMDKFD_COMMAND_END

#define AMDKFD_COMMAND_END   0x20

Definition at line 618 of file kfd_ioctl.h.

◆ AMDKFD_COMMAND_START

#define AMDKFD_COMMAND_START   0x01

Definition at line 617 of file kfd_ioctl.h.

◆ AMDKFD_IO

#define AMDKFD_IO ( nr)    _IO(AMDKFD_IOCTL_BASE, nr)

Definition at line 518 of file kfd_ioctl.h.

◆ AMDKFD_IOC_ACQUIRE_VM

#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().

◆ AMDKFD_IOC_ALLOC_MEMORY_OF_GPU

#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().

◆ AMDKFD_IOC_ALLOC_QUEUE_GWS

#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().

◆ AMDKFD_IOC_CREATE_EVENT

#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().

◆ AMDKFD_IOC_CREATE_QUEUE

#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().

◆ AMDKFD_IOC_DBG_ADDRESS_WATCH

#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().

◆ AMDKFD_IOC_DBG_REGISTER

#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().

◆ AMDKFD_IOC_DBG_UNREGISTER

#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().

◆ AMDKFD_IOC_DBG_WAVE_CONTROL

#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().

◆ AMDKFD_IOC_DESTROY_EVENT

#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().

◆ AMDKFD_IOC_DESTROY_QUEUE

#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().

◆ AMDKFD_IOC_FREE_MEMORY_OF_GPU

#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().

◆ AMDKFD_IOC_GET_CLOCK_COUNTERS

#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().

◆ AMDKFD_IOC_GET_DMABUF_INFO

#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().

◆ AMDKFD_IOC_GET_PROCESS_APERTURES

#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().

◆ AMDKFD_IOC_GET_PROCESS_APERTURES_NEW

#define AMDKFD_IOC_GET_PROCESS_APERTURES_NEW
Value:
AMDKFD_IOWR(0x14, \
struct kfd_ioctl_get_process_apertures_new_args)
#define AMDKFD_IOWR(nr, type)
Definition kfd_ioctl.h:521

Definition at line 580 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ AMDKFD_IOC_GET_QUEUE_WAVE_STATE

#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().

◆ AMDKFD_IOC_GET_TILE_CONFIG

#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().

◆ AMDKFD_IOC_GET_VERSION

#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().

◆ AMDKFD_IOC_IMPORT_DMABUF

#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().

◆ AMDKFD_IOC_MAP_MEMORY_TO_GPU

#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().

◆ AMDKFD_IOC_RESET_EVENT

#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().

◆ AMDKFD_IOC_SET_CU_MASK

#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().

◆ AMDKFD_IOC_SET_EVENT

#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().

◆ AMDKFD_IOC_SET_MEMORY_POLICY

#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().

◆ AMDKFD_IOC_SET_SCRATCH_BACKING_VA

#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().

◆ AMDKFD_IOC_SET_TRAP_HANDLER

#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().

◆ AMDKFD_IOC_SMI_EVENTS

#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().

◆ AMDKFD_IOC_UNMAP_MEMORY_FROM_GPU

#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().

◆ AMDKFD_IOC_UPDATE_QUEUE

#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().

◆ AMDKFD_IOC_WAIT_EVENTS

#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().

◆ AMDKFD_IOCTL_BASE

#define AMDKFD_IOCTL_BASE   'K'

Definition at line 517 of file kfd_ioctl.h.

◆ AMDKFD_IOR

#define AMDKFD_IOR ( nr,
type )   _IOR(AMDKFD_IOCTL_BASE, nr, type)

Definition at line 519 of file kfd_ioctl.h.

◆ AMDKFD_IOW

#define AMDKFD_IOW ( nr,
type )   _IOW(AMDKFD_IOCTL_BASE, nr, type)

Definition at line 520 of file kfd_ioctl.h.

◆ AMDKFD_IOWR

#define AMDKFD_IOWR ( nr,
type )   _IOWR(AMDKFD_IOCTL_BASE, nr, type)

Definition at line 521 of file kfd_ioctl.h.

◆ KFD_HW_EXCEPTION_ECC

#define KFD_HW_EXCEPTION_ECC   1

Definition at line 237 of file kfd_ioctl.h.

◆ KFD_HW_EXCEPTION_GPU_HANG

#define KFD_HW_EXCEPTION_GPU_HANG   0

Definition at line 236 of file kfd_ioctl.h.

◆ KFD_HW_EXCEPTION_PER_ENGINE_RESET

#define KFD_HW_EXCEPTION_PER_ENGINE_RESET   1

Definition at line 233 of file kfd_ioctl.h.

◆ KFD_HW_EXCEPTION_WHOLE_GPU_RESET

#define KFD_HW_EXCEPTION_WHOLE_GPU_RESET   0

Definition at line 232 of file kfd_ioctl.h.

◆ KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM

#define KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM   (1 << 27)

Definition at line 386 of file kfd_ioctl.h.

◆ KFD_IOC_ALLOC_MEM_FLAGS_COHERENT

#define KFD_IOC_ALLOC_MEM_FLAGS_COHERENT   (1 << 26)

Definition at line 387 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL

#define KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL   (1 << 3)

Definition at line 379 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE

#define KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE   (1 << 30)

Definition at line 383 of file kfd_ioctl.h.

◆ KFD_IOC_ALLOC_MEM_FLAGS_GTT

#define KFD_IOC_ALLOC_MEM_FLAGS_GTT   (1 << 1)

Definition at line 377 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP

#define KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP   (1 << 4)

Definition at line 380 of file kfd_ioctl.h.

◆ KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE

#define KFD_IOC_ALLOC_MEM_FLAGS_NO_SUBSTITUTE   (1 << 28)

Definition at line 385 of file kfd_ioctl.h.

◆ KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC

#define KFD_IOC_ALLOC_MEM_FLAGS_PUBLIC   (1 << 29)

Definition at line 384 of file kfd_ioctl.h.

◆ KFD_IOC_ALLOC_MEM_FLAGS_USERPTR

#define KFD_IOC_ALLOC_MEM_FLAGS_USERPTR   (1 << 2)

Definition at line 378 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_IOC_ALLOC_MEM_FLAGS_VRAM

#define KFD_IOC_ALLOC_MEM_FLAGS_VRAM   (1 << 0)

Definition at line 376 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE

#define KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE   (1 << 31)

Definition at line 382 of file kfd_ioctl.h.

◆ KFD_IOC_CACHE_POLICY_COHERENT

#define KFD_IOC_CACHE_POLICY_COHERENT   0

Definition at line 110 of file kfd_ioctl.h.

◆ KFD_IOC_CACHE_POLICY_NONCOHERENT

#define KFD_IOC_CACHE_POLICY_NONCOHERENT   1

Definition at line 111 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_DEBUG_EVENT

#define KFD_IOC_EVENT_DEBUG_EVENT   5

Definition at line 220 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_DEVICESTATECHANGE

#define KFD_IOC_EVENT_DEVICESTATECHANGE   2

Definition at line 217 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_HW_EXCEPTION

#define KFD_IOC_EVENT_HW_EXCEPTION   3

Definition at line 218 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_MEMORY

#define KFD_IOC_EVENT_MEMORY   8

Definition at line 223 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_NODECHANGE

#define KFD_IOC_EVENT_NODECHANGE   1

Definition at line 216 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_PROFILE_EVENT

#define KFD_IOC_EVENT_PROFILE_EVENT   6

Definition at line 221 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_QUEUE_EVENT

#define KFD_IOC_EVENT_QUEUE_EVENT   7

Definition at line 222 of file kfd_ioctl.h.

◆ KFD_IOC_EVENT_SIGNAL

#define KFD_IOC_EVENT_SIGNAL   0

Definition at line 215 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_IOC_EVENT_SYSTEM_EVENT

#define KFD_IOC_EVENT_SYSTEM_EVENT   4

Definition at line 219 of file kfd_ioctl.h.

◆ KFD_IOC_QUEUE_TYPE_COMPUTE

#define KFD_IOC_QUEUE_TYPE_COMPUTE   0

Definition at line 48 of file kfd_ioctl.h.

◆ KFD_IOC_QUEUE_TYPE_COMPUTE_AQL

#define KFD_IOC_QUEUE_TYPE_COMPUTE_AQL   2

Definition at line 50 of file kfd_ioctl.h.

◆ KFD_IOC_QUEUE_TYPE_SDMA

#define KFD_IOC_QUEUE_TYPE_SDMA   1

Definition at line 49 of file kfd_ioctl.h.

◆ KFD_IOC_QUEUE_TYPE_SDMA_XGMI

#define KFD_IOC_QUEUE_TYPE_SDMA_XGMI   3

Definition at line 51 of file kfd_ioctl.h.

◆ KFD_IOC_WAIT_RESULT_COMPLETE

#define KFD_IOC_WAIT_RESULT_COMPLETE   0

Definition at line 225 of file kfd_ioctl.h.

◆ KFD_IOC_WAIT_RESULT_FAIL

#define KFD_IOC_WAIT_RESULT_FAIL   2

Definition at line 227 of file kfd_ioctl.h.

◆ KFD_IOC_WAIT_RESULT_TIMEOUT

#define KFD_IOC_WAIT_RESULT_TIMEOUT   1

Definition at line 226 of file kfd_ioctl.h.

◆ KFD_IOCTL_MAJOR_VERSION

#define KFD_IOCTL_MAJOR_VERSION   1

Definition at line 38 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_IOCTL_MINOR_VERSION

#define KFD_IOCTL_MINOR_VERSION   3

Definition at line 39 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::ioctl().

◆ KFD_MAX_QUEUE_PERCENTAGE

#define KFD_MAX_QUEUE_PERCENTAGE   100

Definition at line 53 of file kfd_ioctl.h.

◆ KFD_MAX_QUEUE_PRIORITY

#define KFD_MAX_QUEUE_PRIORITY   15

Definition at line 54 of file kfd_ioctl.h.

◆ KFD_MEM_ERR_GPU_HANG

#define KFD_MEM_ERR_GPU_HANG   3

Definition at line 243 of file kfd_ioctl.h.

◆ KFD_MEM_ERR_NO_RAS

#define KFD_MEM_ERR_NO_RAS   0

Definition at line 240 of file kfd_ioctl.h.

◆ KFD_MEM_ERR_POISON_CONSUMED

#define KFD_MEM_ERR_POISON_CONSUMED   2

Definition at line 242 of file kfd_ioctl.h.

◆ KFD_MEM_ERR_SRAM_ECC

#define KFD_MEM_ERR_SRAM_ECC   1

Definition at line 241 of file kfd_ioctl.h.

◆ KFD_SIGNAL_EVENT_LIMIT

#define KFD_SIGNAL_EVENT_LIMIT   4096

Definition at line 229 of file kfd_ioctl.h.

Referenced by gem5::GPUComputeDriver::mmap().

◆ KFD_SMI_EVENT_MASK_FROM_INDEX

#define KFD_SMI_EVENT_MASK_FROM_INDEX ( i)    (1ULL << ((i) - 1))

Definition at line 501 of file kfd_ioctl.h.

◆ MAX_ALLOWED_AW_BUFF_SIZE

#define MAX_ALLOWED_AW_BUFF_SIZE   4096

Definition at line 185 of file kfd_ioctl.h.

◆ MAX_ALLOWED_NUM_POINTS

#define MAX_ALLOWED_NUM_POINTS   100

Definition at line 184 of file kfd_ioctl.h.

◆ MAX_ALLOWED_WAC_BUFF_SIZE

#define MAX_ALLOWED_WAC_BUFF_SIZE   128

Definition at line 186 of file kfd_ioctl.h.

◆ NUM_OF_SUPPORTED_GPUS

#define NUM_OF_SUPPORTED_GPUS   7

Definition at line 159 of file kfd_ioctl.h.


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0