Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
- drivers/gpu/drm/amd/amdkfd/kfd_events.c, line 309
- drivers/gpu/drm/amd/amdkfd/kfd_svm.c, line 1536
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_events.c kfd_kmap_event_page() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| PARAM_VALUE | 1 | p->signal_page | 0 |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| DATA_SOURCE | 1 | p | $0 |
| USER_DATA | 1 | p->xnack_enabled | 0-1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c criu_restore_bo() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->kgd_process_info | 4096-ptr_max |
| PARAM_VALUE | 1 | p->kgd_process_info->block_mmu_notifications | 1 |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 1 | p->kgd_process_info->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | p->n_pdds | 1 |
| DATA_SOURCE | 1 | p | $0 |
| USER_DATA | 1 | p->xnack_enabled | 0-1 |
| LOCK2 | 1 | &p->mutex | |
| HALF_LOCKED2 | &gobj->dev->object_name_lock | ||
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c criu_restore_devices() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 1-u64max |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | dev | 1 |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | p->n_pdds | 1 |
| DATA_SOURCE | 0 | dev | r kfd_device_by_id |
| DATA_SOURCE | 1 | p | $0 |
| USER_DATA | 1 | p->xnack_enabled | 0-1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_alloc_memory_of_gpu() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->kfd | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->kfd->adev | 4096-ptr_max |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| PARAM_VALUE | 1 | p->svms.deferred_list_work.lockdep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->svms.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->svms.lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->svms.lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->svms.lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->svms.lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->svms.lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | p->svms.lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 1 | p->svms.lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 1 | p->svms.lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->svms.lock.wait_lock.dep_map->name | 0-255 |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| CAPPED_DATA | 1 | &p->svms.lock | 1 |
| DATA_SOURCE | 1 | p | $1 |
| PARAM_COMPARE | 1 | &p->svms.deferred_range_list | == $1->svms.deferred_range_list.next |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_create_queue() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| DATA_SOURCE | 1 | p | $1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_import_dmabuf() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| DATA_SOURCE | 1 | p | $1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_map_memory_to_gpu() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| DATA_SOURCE | 1 | p | $1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_map_memory_to_gpu() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | dev->adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | dev->adev->reset_domain->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | dev->adev->reset_domain->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| DATA_SOURCE | 1 | p | $1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_set_memory_policy() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| DATA_SOURCE | 1 | p | $1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_set_scratch_backing_va() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| DATA_SOURCE | 1 | p | $1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_set_trap_handler() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->lead_thread | 4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | p->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | p->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | p->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | p | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | p->lead_thread | 1 |
| CAPPED_DATA | 1 | &p->mutex | 1 |
| DATA_SOURCE | 1 | p | $1 |
| LOCK2 | 1 | &p->mutex | |
| TYPE_LOCK | (struct kfd_process)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c svm_range_map_to_gpus() -> kfd_bind_process_to_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | dev->adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 0 | dev->adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max |
| PARAM_VALUE | 0 | dev->adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | dev->adev->reset_domain->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | dev->adev->reset_domain->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->n_pdds | 1-u32max |
| CAPPED_DATA | 1 | p->n_pdds | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &prange->lock | ||
| LOCK2 | &prange->migrate_mutex | ||
| LOCK2 | &svms->lock | ||
| HALF_LOCKED2 | &process_info->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct svm_range)->lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex | ||
| TYPE_LOCK | (struct svm_range_list)->lock |