Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

drivers/accel/habanalabs/common/device.c device_hard_reset_pending() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter 0-s32max
DATA_SOURCE 0 ctx r hl_get_compute_ctx
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/accel/habanalabs/common/device.c hl_capture_user_mappings() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->mem_hash 4096-ptr_max
PARAM_VALUE 0 ctx->mem_hash_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
CAPPED_DATA 0 &ctx->mem_hash_lock 1
DATA_SOURCE 0 ctx r hl_get_compute_ctx
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/accel/habanalabs/common/device.c hl_device_cond_reset() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hpriv 4096-ptr_max
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
DATA_SOURCE 0 ctx r hl_get_compute_ctx
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/accel/habanalabs/common/device.c hl_device_cond_reset() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hpriv 4096-ptr_max
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
DATA_SOURCE 0 ctx r hl_get_compute_ctx
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/accel/habanalabs/common/device.c hl_device_fini() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex

drivers/accel/habanalabs/gaudi2/gaudi2.c gaudi2_debugfs_read_dma() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev 4096-ptr_max
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
DATA_SOURCE 0 ctx r hl_get_compute_ctx
NOCHECK_CALL

drivers/accel/habanalabs/common/command_buffer.c hl_cb_mmap_mem_alloc() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/accel/habanalabs/common/command_buffer.c hl_cb_mmap_mem_release() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx->hdev->asic_funcs->mmu_invalidate_cache 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/accel/habanalabs/common/hldio.c hl_dio_put_iopath() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
DATA_SOURCE 0 ctx $0
NOCHECK_CALL

drivers/accel/habanalabs/common/context.c encaps_handle_do_release() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx->sig_mgr.lock.rlock.dep_map->name 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/accel/habanalabs/common/debugfs.c device_va_to_pa() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->mmu_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->hdev->mmu_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->mem_hash 4096-ptr_max
PARAM_VALUE 0 ctx->mem_hash_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
CAPPED_DATA 0 &ctx->mem_hash_lock 1
DATA_SOURCE 0 ctx r hl_get_compute_ctx
NOCHECK_CALL

drivers/accel/habanalabs/common/debugfs.c mmu_show() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
DATA_SOURCE 0 ctx r hl_get_compute_ctx
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &s->lock
TYPE_LOCK (struct seq_file)->lock

drivers/accel/habanalabs/common/debugfs.c vm_show() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
PARAM_VALUE 0 ctx->va_range 4096-ptr_max
DATA_SOURCE 0 ctx r hl_get_compute_ctx
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &s->lock
TYPE_LOCK (struct seq_file)->lock

drivers/accel/habanalabs/common/mmu/mmu.c hl_mmu_prefetch_work_function() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->asic_funcs 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->device_fini_pending 0
PARAM_VALUE 0 ctx->hdev->disabled 0
PARAM_VALUE 0 ctx->hdev->mmu_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->hdev->mmu_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->hdev->mmu_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->hdev->mmu_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hdev->reset_info.in_reset 0
PARAM_VALUE 0 ctx->hdev->reset_info.needs_reset 0
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/accel/habanalabs/common/command_submission.c _hl_cs_wait_ioctl() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->cs_lock.rlock.dep_map->name 0-255
CAPPED_DATA 0 ctx->cs_sequence 1
DATA_SOURCE 0 ctx $1
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c _hl_interrupt_ts_reg_ioctl() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->ts_reg_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->ts_reg_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->ts_reg_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->ts_reg_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->ts_reg_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->ts_reg_lock.wait_lock.owner (-1)
PARAM_VALUE 0 ctx->ts_reg_lock.wait_lock.owner_cpu u32max
DATA_SOURCE 0 ctx $1
NOCHECK_CALL
LOCK2 0 &ctx->ts_reg_lock
TYPE_LOCK (struct hl_ctx)->ts_reg_lock

drivers/accel/habanalabs/common/command_submission.c _hl_interrupt_ts_reg_ioctl() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->ts_reg_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->ts_reg_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->ts_reg_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->ts_reg_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->ts_reg_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->ts_reg_lock.wait_lock.owner (-1)
PARAM_VALUE 0 ctx->ts_reg_lock.wait_lock.owner_cpu u32max
DATA_SOURCE 0 ctx $1
NOCHECK_CALL
LOCK2 0 &ctx->ts_reg_lock
TYPE_LOCK (struct hl_ctx)->ts_reg_lock

drivers/accel/habanalabs/common/command_submission.c _hl_interrupt_wait_ioctl() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
DATA_SOURCE 0 ctx $1
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c _hl_interrupt_wait_ioctl() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
DATA_SOURCE 0 ctx $1
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c _hl_interrupt_wait_ioctl_user_addr() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
DATA_SOURCE 0 ctx $1
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c _hl_interrupt_wait_ioctl_user_addr() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
DATA_SOURCE 0 ctx $1
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c allocate_cs() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->cs_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->cs_pending 4096-ptr_max
PARAM_VALUE 0 ctx->hpriv->hdev->pdev->dev.cma_area->nranges s32min-s32max
DATA_SOURCE 0 ctx $1
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c cs_do_release() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->cs_mirror_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hdev->hl_debugfs.cs_spinlock.rlock.dep_map->name 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c cs_ioctl_reserve_signals() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hw_block_list_lock.magic 0
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->mem_hash_lock.magic 0
PARAM_VALUE 0 ctx->mem_hash_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->outcome_store.free_list.next 4096-ptr_max
PARAM_VALUE 0 ctx->thread_ctx_switch_token.counter 0-s32max
PARAM_VALUE 0 ctx->thread_ctx_switch_wait_token 1
PARAM_VALUE 0 ctx->ts_reg_lock.magic 0
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c cs_ioctl_unreserve_signals() -> hl_ctx_put()

Type Parameter Key Value
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c hl_multi_cs_wait_ioctl() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
NOCHECK_CALL

drivers/accel/habanalabs/common/command_submission.c release_reserved_encaps_signals() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
DATA_SOURCE 0 ctx r hl_get_compute_ctx
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->mutex

drivers/accel/habanalabs/common/memory.c hl_release_dmabuf() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/accel/habanalabs/common/memory.c hw_block_vm_close() -> hl_ctx_put()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hw_block_list_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hw_block_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->hw_block_list_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->hw_block_list_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hw_block_list_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->hw_block_list_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->hw_block_list_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->hw_block_list_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->hw_block_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->hw_block_list_lock.wait_lock.dep_map->name 0-255
CAPPED_DATA 0 &ctx->hw_block_list_lock 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL