Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c add_all_kfd_queues_mes() -> add_queue_mes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dqm | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->adev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd->shared_resources.enable_mes | 1 |
| PARAM_VALUE | 0 | dqm->lock_hidden.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dqm->lock_hidden.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dqm->saved_flags | 0,2048 |
| PARAM_VALUE | 0 | dqm->sched_halt | 0 |
| PARAM_VALUE | 0 | dqm->sched_running | 1 |
| PARAM_VALUE | 1 | q | 4096-ptr_max |
| PARAM_VALUE | 1 | q->properties.is_active | 1 |
| CAPPED_DATA | 0 | &dqm->queues | 1 |
| CAPPED_DATA | 2 | &qpd->queues_list | 1 |
| DATA_SOURCE | 0 | dqm | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | dqm->packet_mgr.dqm->wait_times | 0-u32max |
| LOCK2 | 0 | &dqm->lock_hidden | |
| HALF_LOCKED2 | &adev->enforce_isolation_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct device_queue_manager)->lock_hidden |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c create_queue_cpsch() -> add_queue_mes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dqm | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd->shared_resources.enable_mes | 1 |
| PARAM_VALUE | 0 | dqm->lock_hidden.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dqm->lock_hidden.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dqm->mqd_mgrs | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->saved_flags | 0,2048 |
| PARAM_VALUE | 0 | dqm->total_queue_count | 0-4294967294 |
| PARAM_VALUE | 1 | q | 4096-ptr_max |
| PARAM_VALUE | 1 | q->device | 4096-ptr_max |
| PARAM_VALUE | 1 | q->device->adev | 4096-ptr_max |
| PARAM_VALUE | 1 | q->list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | q->list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | q->mqd_mem_obj | 4096-ptr_max |
| PARAM_VALUE | 1 | q->process->n_pdds | 1-u32max |
| PARAM_VALUE | 1 | q->process->runtime_info.runtime_state | 0-3 |
| PARAM_VALUE | 1 | q->process->runtime_info.ttmp_setup | 0-1 |
| PARAM_VALUE | 1 | q->properties.exception_status | 0,1073741824 |
| PARAM_VALUE | 1 | q->properties.is_active | 1 |
| PARAM_VALUE | 1 | q->properties.is_gws | 0 |
| PARAM_VALUE | 1 | q->properties.is_reset | 0 |
| PARAM_VALUE | 1 | q->properties.metadata_queue_size | 0-u32max |
| PARAM_VALUE | 1 | q->properties.pm4_target_xcc | 0-255 |
| PARAM_VALUE | 1 | q->properties.queue_id | 0-1023 |
| PARAM_VALUE | 1 | q->properties.type | 0-3 |
| PARAM_VALUE | 1 | q->properties.vmid | 0 |
| PARAM_VALUE | 2 | qpd | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->dqm | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->dqm->dev | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->dqm->dev->adev | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->pqm | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->pqm->process | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->queues_list.next | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->queues_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->queues_list.next->prev | 4096-ptr_max |
| CAPPED_DATA | 0 | dqm->total_queue_count | 1 |
| CAPPED_DATA | 1 | q->properties.queue_id | 1 |
| DATA_SOURCE | 0 | dqm | $0 |
| DATA_SOURCE | 1 | q | $1 |
| DATA_SOURCE | 2 | qpd | $2 |
| NOSPEC | 1 | q->properties.ctl_stack_size | |
| NOSPEC | 1 | q->properties.queue_id | |
| USER_DATA | 1 | q->properties.ctl_stack_size | 0-u32max |
| USER_DATA | 1 | q->properties.ctx_save_restore_area_address | 0-u64max |
| USER_DATA | 1 | q->properties.ctx_save_restore_area_size | 0-u32max |
| USER_DATA | 1 | q->properties.eop_ring_buffer_address | 0-u64max |
| USER_DATA | 1 | q->properties.eop_ring_buffer_size | 0-u32max |
| USER_DATA | 1 | q->properties.format | 0-u32max |
| USER_DATA | 1 | q->properties.metadata_queue_size | 0-u32max[u] |
| USER_DATA | 1 | q->properties.pm4_target_xcc | 0-255[c] |
| USER_DATA | 1 | q->properties.priority | 0-u32max |
| USER_DATA | 1 | q->properties.queue_address | 0-u64max |
| USER_DATA | 1 | q->properties.queue_id | 0-1023[c] |
| USER_DATA | 1 | q->properties.queue_percent | 0-u32max |
| USER_DATA | 1 | q->properties.queue_size | 0-u64max |
| USER_DATA | 1 | q->properties.sdma_engine_id | 0-u32max |
| USER_DATA | 1 | q->properties.sdma_queue_id | 0-s32max[c] |
| USER_DATA | 1 | q->properties.type | 0,2 |
| USER_DATA | 1 | q->sdma_id | 0-s32max[c] |
| LOCK2 | &p->mutex | ||
| LOCK2 | 0 | &dqm->lock_hidden | |
| TYPE_LOCK | (struct device_queue_manager)->lock_hidden | ||
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c restore_process_queues_cpsch() -> add_queue_mes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dqm | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->adev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd->shared_resources.enable_mes | 1 |
| PARAM_VALUE | 0 | dqm->lock_hidden.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dqm->lock_hidden.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dqm->saved_flags | 0,2048 |
| PARAM_VALUE | 1 | q | 4096-ptr_max |
| PARAM_VALUE | 1 | q->properties.is_active | 1 |
| PARAM_VALUE | 1 | q->properties.is_evicted | 0 |
| PARAM_VALUE | 2 | qpd | 4096-ptr_max |
| PARAM_VALUE | 2 | qpd->evicted | 1 |
| CAPPED_DATA | 2 | &qpd->queues_list | 1 |
| DATA_SOURCE | 0 | dqm | $0 |
| DATA_SOURCE | 2 | qpd | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &dqm->lock_hidden | |
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct device_queue_manager)->lock_hidden |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c resume_single_queue() -> add_queue_mes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dqm | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->adev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd->shared_resources.enable_mes | 1 |
| PARAM_VALUE | 0 | dqm->lock_hidden.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dqm->lock_hidden.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dqm->saved_flags | 0,2048 |
| PARAM_VALUE | 1 | q | 4096-ptr_max |
| PARAM_VALUE | 1 | q->properties.is_suspended | 0 |
| PARAM_VALUE | 2 | qpd | 4096-ptr_max |
| DATA_SOURCE | 0 | dqm | $0 |
| DATA_SOURCE | 1 | q | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &dqm->lock_hidden | |
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct device_queue_manager)->lock_hidden |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c update_queue() -> add_queue_mes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dqm | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->adev | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->dev->kfd->shared_resources.enable_mes | 1 |
| PARAM_VALUE | 0 | dqm->lock_hidden.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dqm->lock_hidden.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dqm->lock_hidden.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dqm->mqd_mgrs | 4096-ptr_max |
| PARAM_VALUE | 0 | dqm->packet_mgr.pmf->unmap_queues_size | 24 |
| PARAM_VALUE | 0 | dqm->saved_flags | 0,2048 |
| PARAM_VALUE | 0 | dqm->sched_policy | s32min-1,3-s32max |
| PARAM_VALUE | 1 | q | 4096-ptr_max |
| PARAM_VALUE | 1 | q->device | 4096-ptr_max |
| PARAM_VALUE | 1 | q->device->dqm | 4096-ptr_max |
| PARAM_VALUE | 1 | q->device->dqm->packet_mgr.pmf->unmap_queues_size | 24 |
| PARAM_VALUE | 1 | q->process | 4096-ptr_max |
| PARAM_VALUE | 1 | q->process->n_pdds | 1-u32max |
| PARAM_VALUE | 1 | q->properties.is_active | 1 |
| PARAM_VALUE | 2 | qpd | 4096-ptr_max |
| CAPPED_DATA | 0 | dqm->dev | 1 |
| CAPPED_DATA | 1 | q->device | 1 |
| CAPPED_DATA | 1 | q->process->n_pdds | 1 |
| DATA_SOURCE | 0 | dqm | $0 |
| DATA_SOURCE | 1 | q | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | q->properties.pm4_target_xcc | 0-255[c] |
| USER_DATA | 1 | q->properties.priority | 0-15[u] |
| USER_DATA | 1 | q->properties.queue_address | 0-u64max[c] |
| USER_DATA | 1 | q->properties.queue_size | 1024-u32max[u] |
| LOCK2 | 0 | &dqm->lock_hidden | |
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct device_queue_manager)->lock_hidden |