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_free_memory_of_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->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 4096-ptr_max
PARAM_VALUE 1 mem->bo 0,4096-ptr_max
PARAM_VALUE 2 drm_priv 4096-ptr_max
PARAM_VALUE 3 size 0
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
NOCHECK_CALL
UNITS 2 drm_priv unit_byte
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c kfd_process_device_free_bos() -> amdgpu_amdkfd_gpuvm_free_memory_of_gpu()

Type Parameter Key Value
PARAM_VALUE 1 mem 1-u64max
PARAM_VALUE 3 size 0
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
DATA_SOURCE 1 mem r idr_get_next
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &kfd_processes_mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c kfd_process_free_gpuvm() -> amdgpu_amdkfd_gpuvm_free_memory_of_gpu()

Type Parameter Key Value
PARAM_VALUE 1 mem 4096-ptr_max
PARAM_VALUE 1 mem->bo 4096-ptr_max
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->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 mem->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 mem->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 mem->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
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 2 drm_priv 4096-ptr_max
PARAM_VALUE 3 size 0
BUF_SIZE 2 drm_priv s32min-(-1),1-s32max
BUF_SIZE 2 drm_priv s32min-(-1),1-s32max
DATA_SOURCE 1 mem $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &p->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c kfd_process_free_gpuvm_map() -> amdgpu_amdkfd_gpuvm_free_memory_of_gpu()

Type Parameter Key Value
PARAM_VALUE 1 mem 4096-ptr_max
PARAM_VALUE 1 mem->bo 4096-ptr_max
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->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 mem->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 mem->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 mem->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
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 2 drm_priv 4096-ptr_max
PARAM_VALUE 3 size 0
BUF_SIZE 2 drm_priv s32min-(-1),1-s32max
BUF_SIZE 2 drm_priv s32min-(-1),1-s32max
DATA_SOURCE 1 mem $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &p->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c criu_restore_memory_of_gpu() -> amdgpu_amdkfd_gpuvm_free_memory_of_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
PARAM_VALUE 3 size 0
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
NOCHECK_CALL
UNITS 2 drm_priv unit_byte
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_alloc_memory_of_gpu() -> amdgpu_amdkfd_gpuvm_free_memory_of_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
PARAM_VALUE 3 size 0
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
NOCHECK_CALL
UNITS 2 drm_priv unit_byte
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_free_memory_of_gpu() -> amdgpu_amdkfd_gpuvm_free_memory_of_gpu()

Type Parameter Key Value
PARAM_VALUE 1 mem 1-u64max
PARAM_VALUE 3 size 319069397235265536
PARAM_VALUE 3 *size 0
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

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

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->ddev.object_name_lock.dep_map->name 0-255
PARAM_VALUE 0 adev->ddev.object_name_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->ddev.object_name_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 adev->ddev.object_name_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 adev->ddev.object_name_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 adev->ddev.object_name_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 adev->ddev.object_name_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 adev->ddev.object_name_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 adev->ddev.object_name_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 adev->kfd.client.file->prime.dmabufs.rb_node 1-u64max
PARAM_VALUE 0 adev->kfd.client.file->prime.handles.rb_node 4096-ptr_max
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.dep_map->name 0-255
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 adev->kfd.client.file->prime.lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 adev->kfd.client.file->table_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 mem 4096-ptr_max
PARAM_VALUE 2 drm_priv 1-u64max
PARAM_VALUE 3 size 0
BUF_SIZE 2 drm_priv s32min-(-2),1-s32max
NOCHECK_CALL
UNITS 2 drm_priv unit_byte
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex