Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_alloc_memory_of_gpu() -> kfd_process_device_create_obj_handle()

Type Parameter Key Value
PARAM_VALUE 0 pdd 4096-ptr_max
PARAM_VALUE 0 pdd->dev->kfd 4096-ptr_max
PARAM_VALUE 0 pdd->dev->kfd->adev 4096-ptr_max
PARAM_VALUE 0 pdd->drm_priv 4096-ptr_max
PARAM_VALUE 0 pdd->runtime_inuse 1
PARAM_VALUE 1 mem 4096-ptr_max
PARAM_VALUE 1 mem->alloc_flags 0-4294967295
PARAM_VALUE 1 mem->bo->notifier.mm->binfmt->module->refcnt.counter 0-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->process_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->process_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->request_key_auth->user->qnbytes s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->request_key_auth->user->qnkeys s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->session_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->session_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->thread_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_cred->thread_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->exe_file->f_task_work.func 5179756662909861888
PARAM_VALUE 1 mem->bo->notifier.mm->mmap_lock.dep_map->name 0-255
PARAM_VALUE 1 mem->bo->notifier.mm->mmap_lock.first_waiter->handoff_set 1
PARAM_VALUE 1 mem->bo->notifier.mm->mmap_lock.first_waiter->list.next 2212933610777083904,2624917664208203776
PARAM_VALUE 1 mem->bo->notifier.mm->mmap_lock.first_waiter->list.prev 2212933610777083904,2624917664208203776
PARAM_VALUE 1 mem->bo->notifier.mm->mmap_lock.first_waiter->type 0-1
PARAM_VALUE 1 mem->bo->notifier.mm->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 mem->bo->notifier.mm->notifier_subscriptions->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 mem->bo->notifier.ops 6256248928733786112,7945183118039220224
PARAM_VALUE 1 mem->bo->notifier.ops->invalidate_finish 0,2193403108630056960
PARAM_VALUE 1 mem->bo->notifier.ops->invalidate_start 0,7606346720449052672
PARAM_VALUE 1 mem->bo->placement.num_placement 1-3
PARAM_VALUE 1 mem->bo->tbo.base.resv->fences->max_fences 0-4294967295
PARAM_VALUE 1 mem->bo->tbo.base.resv->fences->num_fences 0-4294967295
PARAM_VALUE 1 mem->bo->tbo.base.resv->lock.base.dep_map->name 0-255
PARAM_VALUE 1 mem->bo->tbo.base.resv->lock.base.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 mem->bo->tbo.base.resv->lock.base.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 1 mem->bo->tbo.base.resv->lock.base.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 mem->bo->tbo.base.resv->lock.base.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 mem->bo->tbo.base.resv->lock.base.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 mem->bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 mem->bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 1 mem->bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 1 mem->bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 mem->bo->tbo.bdev->lru_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 mem->bo->tbo.ttm->caching 1-2
PARAM_VALUE 1 mem->bo->tbo.ttm->page_flags 0,2,4,6,12,14,16,18,20,22,28,30
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->alloced_page 0-s64max
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->alloced_page->_refcount.counter s32min-s32max
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->alloced_page->page_type 0-4294967295
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->alloced_pages 0-s64max
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->first_dma 0-s64max
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->order 0-4294967295
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->page_caching 0-4294967295
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->restored_pages 0-s64max
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->snapshot_alloc.remaining_pages 0-4294967295
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->snapshot_alloc.tt_caching 0-4294967295
PARAM_VALUE 1 mem->domain 2,4
PARAM_VALUE 1 mem->gem_handle 0-s32max
PARAM_VALUE 1 mem->lock.dep_map->name 0-255
PARAM_VALUE 1 mem->lock.first_waiter 0
PARAM_VALUE 1 mem->lock.osq.tail.counter 0
PARAM_VALUE 1 mem->lock.owner.counter 0
PARAM_VALUE 1 mem->mapped_to_gpu_memory 0
PARAM_VALUE 1 mem->process_info->lock.dep_map->name 0-255
PARAM_VALUE 1 mem->process_info->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 mem->process_info->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 1 mem->process_info->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 mem->process_info->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 mem->process_info->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 mem->process_info->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 1 mem->process_info->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 mem->process_info->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 mem->process_info->notifier_lock.dep_map->name 0-255
PARAM_VALUE 1 mem->process_info->notifier_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 mem->process_info->notifier_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 1 mem->process_info->notifier_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 mem->process_info->notifier_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 mem->process_info->notifier_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 mem->process_info->notifier_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 mem->process_info->notifier_lock.osq.tail.counter 0-s32max
DATA_SOURCE 0 pdd r kfd_bind_process_to_device
USER_DATA 1 mem->alloc_flags 0-4294967295[u]
USER_DATA 1 mem->bo->notifier.interval_tree.__subtree_last s64min-s64max[c]
USER_DATA 1 mem->bo->tbo.ttm->num_pages 0-4294967295[c]
USER_DATA 1 mem->bo->tbo.ttm->restore->snapshot_alloc.remaining_pages 0-4294967295[c]
USER_DATA 1 mem->va s64min-s64max[u]
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_import_dmabuf() -> kfd_process_device_create_obj_handle()

Type Parameter Key Value
PARAM_VALUE 0 pdd 4096-ptr_max
PARAM_VALUE 0 pdd->dev 4096-ptr_max
PARAM_VALUE 0 pdd->dev->adev 4096-ptr_max
PARAM_VALUE 0 pdd->drm_priv 1-u64max
PARAM_VALUE 0 pdd->runtime_inuse 1
PARAM_VALUE 1 mem 4096-ptr_max
PARAM_VALUE 1 mem->alloc_flags 3221225473-3221225474
PARAM_VALUE 1 mem->bo s64min-(-4096),4096-s64max
PARAM_VALUE 1 mem->bo->preferred_domains 2-4294967295
PARAM_VALUE 1 mem->domain 2,4
PARAM_VALUE 1 mem->is_imported 1
PARAM_VALUE 1 mem->lock.dep_map->name 0-255
PARAM_VALUE 1 mem->lock.first_waiter 0
PARAM_VALUE 1 mem->lock.osq.tail.counter 0
PARAM_VALUE 1 mem->lock.owner.counter 0
PARAM_VALUE 1 mem->mapped_to_gpu_memory 0
CAPPED_DATA 0 pdd->dev 1
DATA_SOURCE 0 pdd r kfd_bind_process_to_device
USER_DATA 1 mem->va s64min-s64max[u]
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex