crash.software
Projects
Pull Requests
Issues
Builds
criu
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
criu
Files
🤬
Sign In
676b4579
ROOT
/
plugins
/
amdgpu
/
kfd_ioctl.h
Search
History
786 lines
|
ISO-8859-1
|
26 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
KFD_IOCTL_H_INCLUDED
KFD_IOCTL_MAJOR_VERSION
KFD_IOCTL_MINOR_VERSION
KFD_IOC_QUEUE_TYPE_COMPUTE
KFD_IOC_QUEUE_TYPE_SDMA
KFD_IOC_QUEUE_TYPE_COMPUTE_AQL
KFD_IOC_QUEUE_TYPE_SDMA_XGMI
KFD_MAX_QUEUE_PERCENTAGE
KFD_MAX_QUEUE_PRIORITY
KFD_IOC_CACHE_POLICY_COHERENT
KFD_IOC_CACHE_POLICY_NONCOHERENT
NUM_OF_SUPPORTED_GPUS
MAX_ALLOWED_NUM_POINTS
MAX_ALLOWED_AW_BUFF_SIZE
MAX_ALLOWED_WAC_BUFF_SIZE
KFD_INVALID_FD
KFD_IOC_EVENT_SIGNAL
KFD_IOC_EVENT_NODECHANGE
KFD_IOC_EVENT_DEVICESTATECHANGE
KFD_IOC_EVENT_HW_EXCEPTION
KFD_IOC_EVENT_SYSTEM_EVENT
KFD_IOC_EVENT_DEBUG_EVENT
KFD_IOC_EVENT_PROFILE_EVENT
KFD_IOC_EVENT_QUEUE_EVENT
KFD_IOC_EVENT_MEMORY
KFD_IOC_WAIT_RESULT_COMPLETE
KFD_IOC_WAIT_RESULT_TIMEOUT
KFD_IOC_WAIT_RESULT_FAIL
KFD_SIGNAL_EVENT_LIMIT
KFD_HW_EXCEPTION_WHOLE_GPU_RESET
KFD_HW_EXCEPTION_PER_ENGINE_RESET
KFD_HW_EXCEPTION_GPU_HANG
KFD_HW_EXCEPTION_ECC
KFD_MEM_ERR_NO_RAS
KFD_MEM_ERR_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AMDKFD_IOC_DBG_REGISTER_DEPRECATED
AMDKFD_IOC_DBG_UNREGISTER_DEPRECATED
AMDKFD_IOC_DBG_ADDRESS_WATCH_DEPRECATED
AMDKFD_IOC_DBG_WAVE_CONTROL_DEPRECATED
AMDKFD_IOC_SET_SCRATCH_BACKING_VA
AMDKFD_IOC_GET_TILE_CONFIG
AMDKFD_IOC_SET_TRAP_HANDLER
AMDKFD_IOC_GET_PROCESS_APERTURES_NEW
AMDKFD_IOC_ACQUIRE_VM
AMDKFD_IOC_ALLOC_MEMORY_OF_GPU
AMDKFD_IOC_FREE_MEMORY_OF_GPU
AMDKFD_IOC_MAP_MEMORY_TO_GPU
AMDKFD_IOC_UNMAP_MEMORY_FROM_GPU
AMDKFD_IOC_SET_CU_MASK
AMDKFD_IOC_GET_QUEUE_WAVE_STATE
AMDKFD_IOC_GET_DMABUF_INFO
AMDKFD_IOC_IMPORT_DMABUF
AMDKFD_IOC_ALLOC_QUEUE_GWS
AMDKFD_IOC_SMI_EVENTS
AMDKFD_IOC_SVM
AMDKFD_IOC_SET_XNACK_MODE
AMDKFD_IOC_CRIU_OP
AMDKFD_COMMAND_START
AMDKFD_COMMAND_END
kfd_ioctl_get_version_args
major_version
:
__u32
minor_version
:
__u32
kfd_ioctl_create_queue_args
ring_base_address
:
__u64
write_pointer_address
:
__u64
read_pointer_address
:
__u64
doorbell_offset
:
__u64
ring_size
:
__u32
gpu_id
:
__u32
queue_type
:
__u32
queue_percentage
:
__u32
queue_priority
:
__u32
queue_id
:
__u32
eop_buffer_address
:
__u64
eop_buffer_size
:
__u64
ctx_save_restore_address
:
__u64
ctx_save_restore_size
:
__u32
ctl_stack_size
:
__u32
kfd_ioctl_destroy_queue_args
queue_id
:
__u32
pad
:
__u32
kfd_ioctl_update_queue_args
ring_base_address
:
__u64
queue_id
:
__u32
ring_size
:
__u32
queue_percentage
:
__u32
queue_priority
:
__u32
kfd_ioctl_set_cu_mask_args
queue_id
:
__u32
num_cu_mask
:
__u32
cu_mask_ptr
:
__u64
kfd_ioctl_get_queue_wave_state_args
ctl_stack_address
:
__u64
ctl_stack_used_size
:
__u32
save_area_used_size
:
__u32
queue_id
:
__u32
pad
:
__u32
kfd_ioctl_set_memory_policy_args
alternate_aperture_base
:
__u64
alternate_aperture_size
:
__u64
gpu_id
:
__u32
default_policy
:
__u32
alternate_policy
:
__u32
pad
:
__u32
kfd_ioctl_get_clock_counters_args
gpu_clock_counter
:
__u64
cpu_clock_counter
:
__u64
system_clock_counter
:
__u64
system_clock_freq
:
__u64
gpu_id
:
__u32
pad
:
__u32
kfd_process_device_apertures
lds_base
:
__u64
lds_limit
:
__u64
scratch_base
:
__u64
scratch_limit
:
__u64
gpuvm_base
:
__u64
gpuvm_limit
:
__u64
gpu_id
:
__u32
pad
:
__u32
kfd_ioctl_get_process_apertures_args
process_apertures
:
struct kfd_process_device_apertures[NUM_OF_SUPPORTED_GPUS]
num_of_nodes
:
__u32
pad
:
__u32
kfd_ioctl_get_process_apertures_new_args
kfd_process_device_apertures_ptr
:
__u64
num_of_nodes
:
__u32
pad
:
__u32
kfd_ioctl_dbg_register_args
gpu_id
:
__u32
pad
:
__u32
kfd_ioctl_dbg_unregister_args
gpu_id
:
__u32
pad
:
__u32
kfd_ioctl_dbg_address_watch_args
content_ptr
:
__u64
gpu_id
:
__u32
buf_size_in_bytes
:
__u32
kfd_ioctl_dbg_wave_control_args
content_ptr
:
__u64
gpu_id
:
__u32
buf_size_in_bytes
:
__u32
kfd_ioctl_create_event_args
event_page_offset
:
__u64
event_trigger_data
:
__u32
event_type
:
__u32
auto_reset
:
__u32
node_id
:
__u32
event_id
:
__u32
event_slot_index
:
__u32
kfd_ioctl_destroy_event_args
event_id
:
__u32
pad
:
__u32
kfd_ioctl_set_event_args
event_id
:
__u32
pad
:
__u32
kfd_ioctl_reset_event_args
event_id
:
__u32
pad
:
__u32
kfd_memory_exception_failure
NotPresent
:
__u32
ReadOnly
:
__u32
NoExecute
:
__u32
imprecise
:
__u32
kfd_hsa_memory_exception_data
failure
:
struct kfd_memory_exception_failure
va
:
__u64
gpu_id
:
__u32
ErrorType
:
__u32
kfd_hsa_hw_exception_data
reset_type
:
__u32
reset_cause
:
__u32
memory_lost
:
__u32
gpu_id
:
__u32
kfd_event_data
(anonymous)
kfd_event_data_ext
:
__u64
event_id
:
__u32
pad
:
__u32
kfd_ioctl_wait_events_args
events_ptr
:
__u64
num_events
:
__u32
wait_for_all
:
__u32
timeout
:
__u32
wait_result
:
__u32
kfd_ioctl_set_scratch_backing_va_args
va_addr
:
__u64
gpu_id
:
__u32
pad
:
__u32
kfd_ioctl_get_tile_config_args
tile_config_ptr
:
__u64
macro_tile_config_ptr
:
__u64
num_tile_configs
:
__u32
num_macro_tile_configs
:
__u32
gpu_id
:
__u32
gb_addr_config
:
__u32
num_banks
:
__u32
num_ranks
:
__u32
kfd_ioctl_set_trap_handler_args
tba_addr
:
__u64
tma_addr
:
__u64
gpu_id
:
__u32
pad
:
__u32
kfd_ioctl_acquire_vm_args
drm_fd
:
__u32
gpu_id
:
__u32
kfd_ioctl_alloc_memory_of_gpu_args
va_addr
:
__u64
size
:
__u64
handle
:
__u64
mmap_offset
:
__u64
gpu_id
:
__u32
flags
:
__u32
kfd_ioctl_free_memory_of_gpu_args
handle
:
__u64
kfd_ioctl_map_memory_to_gpu_args
handle
:
__u64
device_ids_array_ptr
:
__u64
n_devices
:
__u32
n_success
:
__u32
kfd_ioctl_unmap_memory_from_gpu_args
handle
:
__u64
device_ids_array_ptr
:
__u64
n_devices
:
__u32
n_success
:
__u32
kfd_ioctl_alloc_queue_gws_args
queue_id
:
__u32
num_gws
:
__u32
first_gws
:
__u32
pad
:
__u32
kfd_ioctl_get_dmabuf_info_args
size
:
__u64
metadata_ptr
:
__u64
metadata_size
:
__u32
gpu_id
:
__u32
flags
:
__u32
dmabuf_fd
:
__u32
kfd_ioctl_import_dmabuf_args
va_addr
:
__u64
handle
:
__u64
gpu_id
:
__u32
dmabuf_fd
:
__u32
kfd_smi_event
KFD_SMI_EVENT_NONE
KFD_SMI_EVENT_VMFAULT
KFD_SMI_EVENT_THERMAL_THROTTLE
KFD_SMI_EVENT_GPU_PRE_RESET
KFD_SMI_EVENT_GPU_POST_RESET
kfd_ioctl_smi_events_args
gpuid
:
__u32
anon_fd
:
__u32
kfd_criu_op
KFD_CRIU_OP_PROCESS_INFO
KFD_CRIU_OP_CHECKPOINT
KFD_CRIU_OP_UNPAUSE
KFD_CRIU_OP_RESTORE
KFD_CRIU_OP_RESUME
kfd_ioctl_criu_args
devices
:
__u64
bos
:
__u64
priv_data
:
__u64
priv_data_size
:
__u64
num_devices
:
__u32
num_bos
:
__u32
num_objects
:
__u32
pid
:
__u32
op
:
__u32
kfd_criu_device_bucket
user_gpu_id
:
__u32
actual_gpu_id
:
__u32
drm_fd
:
__u32
pad
:
__u32
kfd_criu_bo_bucket
addr
:
__u64
size
:
__u64
offset
:
__u64
restored_offset
:
__u64
gpu_id
:
__u32
alloc_flags
:
__u32
dmabuf_fd
:
__u32
pad
:
__u32
kfd_mmio_remap
KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL
KFD_MMIO_REMAP_HDP_REG_FLUSH_CNTL
kfd_ioctl_svm_op
KFD_IOCTL_SVM_OP_SET_ATTR
KFD_IOCTL_SVM_OP_GET_ATTR
kfd_ioctl_svm_location
KFD_IOCTL_SVM_LOCATION_SYSMEM
KFD_IOCTL_SVM_LOCATION_UNDEFINED
kfd_ioctl_svm_attr_type
KFD_IOCTL_SVM_ATTR_PREFERRED_LOC
KFD_IOCTL_SVM_ATTR_PREFETCH_LOC
KFD_IOCTL_SVM_ATTR_ACCESS
KFD_IOCTL_SVM_ATTR_ACCESS_IN_PLACE
KFD_IOCTL_SVM_ATTR_NO_ACCESS
KFD_IOCTL_SVM_ATTR_SET_FLAGS
KFD_IOCTL_SVM_ATTR_CLR_FLAGS
KFD_IOCTL_SVM_ATTR_GRANULARITY
kfd_ioctl_svm_attribute
type
:
__u32
value
:
__u32
kfd_ioctl_svm_args
start_addr
:
__u64
size
:
__u64
op
:
__u32
nattr
:
__u32
attrs
:
struct kfd_ioctl_svm_attribute[0]
kfd_ioctl_set_xnack_mode_args
xnack_enabled
:
__s32
All occurrences
Please wait...
Page is in error, reload to recover