/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_queue.c | 282 if (properties->ctl_stack_size != topo_dev->node_props.ctl_stack_size) { in kfd_queue_acquire_buffers() 284 properties->ctl_stack_size, in kfd_queue_acquire_buffers() 285 topo_dev->node_props.ctl_stack_size); in kfd_queue_acquire_buffers() 421 u32 ctl_stack_size; in kfd_queue_ctx_save_restore_size() local 435 ctl_stack_size = wave_num * CNTL_STACK_BYTES_PER_WAVE(gfxv) + 8; in kfd_queue_ctx_save_restore_size() 436 ctl_stack_size = ALIGN(SIZEOF_HSA_USER_CONTEXT_SAVE_AREA_HEADER + ctl_stack_size, in kfd_queue_ctx_save_restore_size() 444 ctl_stack_size = min(ctl_stack_size, 0x7000); in kfd_queue_ctx_save_restore_size() 447 props->ctl_stack_size = ctl_stack_size; in kfd_queue_ctx_save_restore_size() 449 props->cwsr_size = ctl_stack_size + wg_data_size; in kfd_queue_ctx_save_restore_size()
|
H A D | kfd_process_queue_manager.c | 733 uint32_t *ctl_stack_size) in get_queue_data_sizes() argument 740 ctl_stack_size); in get_queue_data_sizes() 766 uint32_t mqd_size, ctl_stack_size; in kfd_process_get_queue_info() local 774 extra_data_sizes += mqd_size + ctl_stack_size; in kfd_process_get_queue_info() 870 uint32_t ctl_stack_size; in criu_checkpoint_queues_device() local 881 ret = get_queue_data_sizes(pdd, q, &mqd_size, &ctl_stack_size); in criu_checkpoint_queues_device() 885 q_data_size = sizeof(*q_data) + mqd_size + ctl_stack_size; in criu_checkpoint_queues_device() 903 q_data->ctl_stack_size = ctl_stack_size; in criu_checkpoint_queues_device() 963 qp->ctl_stack_size = q_data->ctl_stack_size; in set_queue_properties_from_criu() 1057 uint32_t *ctl_stack_size) in pqm_get_queue_checkpoint_info() argument [all …]
|
H A D | kfd_mqd_manager_vi.c | 146 m->cp_hqd_cntl_stack_size = q->ctl_stack_size; in init_mqd() 147 m->cp_hqd_cntl_stack_offset = q->ctl_stack_size; in init_mqd() 148 m->cp_hqd_wg_state_offset = q->ctl_stack_size; in init_mqd() 277 static void get_checkpoint_info(struct mqd_manager *mm, void *mqd, u32 *ctl_stack_size) in get_checkpoint_info() argument 280 *ctl_stack_size = 0; in get_checkpoint_info() 296 const void *ctl_stack_src, const u32 ctl_stack_size) in restore_mqd() argument 401 const void *ctl_stack_src, const u32 ctl_stack_size) in restore_mqd_sdma() argument
|
H A D | kfd_mqd_manager_v9.c | 46 return ALIGN(q->ctl_stack_size, PAGE_SIZE) + in mqd_stride_v9() 138 (ALIGN(q->ctl_stack_size, PAGE_SIZE) + in allocate_mqd() 216 m->cp_hqd_cntl_stack_size = q->ctl_stack_size; in init_mqd() 217 m->cp_hqd_cntl_stack_offset = q->ctl_stack_size; in init_mqd() 218 m->cp_hqd_wg_state_offset = q->ctl_stack_size; in init_mqd() 367 static void get_checkpoint_info(struct mqd_manager *mm, void *mqd, u32 *ctl_stack_size) in get_checkpoint_info() argument 371 *ctl_stack_size = m->cp_hqd_cntl_stack_size; in get_checkpoint_info() 390 const void *ctl_stack_src, u32 ctl_stack_size) in restore_mqd() argument 407 memcpy(ctl_stack, ctl_stack_src, ctl_stack_size); in restore_mqd() 513 const void *ctl_stack_src, const u32 ctl_stack_size) in restore_mqd_sdma() argument
|
H A D | kfd_mqd_manager_v10.c | 137 m->cp_hqd_cntl_stack_size = q->ctl_stack_size; in init_mqd() 138 m->cp_hqd_cntl_stack_offset = q->ctl_stack_size; in init_mqd() 139 m->cp_hqd_wg_state_offset = q->ctl_stack_size; in init_mqd() 285 const void *ctl_stack_src, const u32 ctl_stack_size) in restore_mqd() argument 405 const u32 ctl_stack_size) in restore_mqd_sdma() argument
|
H A D | kfd_mqd_manager.h | 105 void (*get_checkpoint_info)(struct mqd_manager *mm, void *mqd, uint32_t *ctl_stack_size); 117 const u32 ctl_stack_size);
|
H A D | kfd_mqd_manager_v11.c | 191 m->cp_hqd_cntl_stack_size = q->ctl_stack_size; in init_mqd() 192 m->cp_hqd_cntl_stack_offset = q->ctl_stack_size; in init_mqd() 193 m->cp_hqd_wg_state_offset = q->ctl_stack_size; in init_mqd() 338 const void *ctl_stack_src, const u32 ctl_stack_size) in restore_mqd() argument
|
H A D | kfd_mqd_manager_v12.c | 154 m->cp_hqd_cntl_stack_size = q->ctl_stack_size; in init_mqd() 155 m->cp_hqd_cntl_stack_offset = q->ctl_stack_size; in init_mqd() 156 m->cp_hqd_wg_state_offset = q->ctl_stack_size; in init_mqd()
|
H A D | kfd_topology.h | 78 uint32_t ctl_stack_size; member
|
H A D | kfd_mqd_manager_cik.c | 264 const void *ctl_stack_src, const u32 ctl_stack_size) in restore_mqd() argument 302 const void *ctl_stack_src, const u32 ctl_stack_size) in restore_mqd_sdma() argument
|
H A D | kfd_device_queue_manager.h | 197 u32 *ctl_stack_size);
|
H A D | kfd_priv.h | 524 uint32_t ctl_stack_size; member 1260 uint32_t ctl_stack_size; member 1386 u32 *ctl_stack_size);
|
H A D | kfd_device_queue_manager.c | 651 qd->ctl_stack_size); in create_queue_nocpsch() 1993 qd->ctl_stack_size); in create_queue_cpsch() 2605 u32 *ctl_stack_size) in get_queue_checkpoint_info() argument 2614 *ctl_stack_size = 0; in get_queue_checkpoint_info() 2617 mqd_mgr->get_checkpoint_info(mqd_mgr, q->mqd, ctl_stack_size); in get_queue_checkpoint_info()
|
H A D | kfd_chardev.c | 256 q_properties->ctl_stack_size = args->ctl_stack_size; in set_queue_properties_from_user()
|
/linux/include/uapi/linux/ |
H A D | kfd_ioctl.h | 82 __u32 ctl_stack_size; /* to KFD */ member
|