Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c kfd_process_alloc_gpuvm() -> amdgpu_amdkfd_gpuvm_map_memory_to_gpu()

Type Parameter Key Value
PARAM_VALUE 0 adev->kfd.client.file->table_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 adev->mman.bdev.pool.dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 adev->mman.bdev.pool.dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 1 mem 4096-ptr_max
PARAM_VALUE 2 drm_priv 4096-ptr_max
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
UNITS 2 drm_priv unit_byte
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c criu_restore_bo() -> amdgpu_amdkfd_gpuvm_map_memory_to_gpu()

Type Parameter Key Value
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->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.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->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->_refcount.counter s32min-s32max
PARAM_VALUE 1 mem->bo->tbo.ttm->restore->alloced_page->page_type 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,4096-ptr_max
PARAM_VALUE 1 mem->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 mem->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 mem->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 mem->mapped_to_gpu_memory 0-4294967295
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 0-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 s32min-s32max
PARAM_VALUE 2 drm_priv 1-u64max
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
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->dmabuf->size 0-u64max
USER_DATA 1 mem->va s64min-s64max[u]
LOCK2 &p->mutex
HALF_LOCKED2 &gobj->dev->object_name_lock
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_map_memory_to_gpu() -> amdgpu_amdkfd_gpuvm_map_memory_to_gpu()

Type Parameter Key Value
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 1 mem 1-u64max
PARAM_VALUE 2 drm_priv 1-u64max
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
DATA_SOURCE 1 mem r kfd_process_device_translate_handle
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex