Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->asic_funcs 4096-ptr_max
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 hdev->dma_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 hdev->dma_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->fpriv_list_lock.dep_map->name 0-255
PARAM_VALUE 0 hdev->fpriv_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hdev->fpriv_list_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hdev->fpriv_list_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 hdev->fpriv_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 hdev->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hdev->pdev->dev.dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 hdev->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->pdev->dev.dma_uses_io_tlb 1
PARAM_VALUE 0 hdev->reset_info.in_reset 0
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->refcount.refcount.refs.counter (-1073741824),0-s32max
PARAM_VALUE 2 type 0
PARAM_VALUE 3 size 2097152
PARAM_VALUE 4 alignment 0
DATA_SOURCE 0 hdev $0
DATA_SOURCE 1 ctx r hl_get_compute_ctx

drivers/accel/habanalabs/gaudi2/gaudi2.c gaudi2_internal_cb_pool_init() -> hl_reserve_va_block()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->asic_funcs 4096-ptr_max
PARAM_VALUE 0 hdev->asic_funcs->rreg 4096-ptr_max
PARAM_VALUE 0 hdev->asic_funcs->wreg 4096-ptr_max
PARAM_VALUE 0 hdev->asic_specific 4096-ptr_max
PARAM_VALUE 0 hdev->compute_ctx_in_release 0
PARAM_VALUE 0 hdev->device_fini_pending 0
PARAM_VALUE 0 hdev->disabled 0
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 hdev->dma_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 hdev->dma_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->fpriv_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hdev->fpriv_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 hdev->fpriv_list_lock.wait_lock.owner (-1)
PARAM_VALUE 0 hdev->fpriv_list_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 hdev->internal_cb_pool 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->algo 7427687418366767104
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.next->next 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.next->prev 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.prev 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.prev->next 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.prev->prev 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->data 0
PARAM_VALUE 0 hdev->internal_cb_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->internal_cb_pool->min_alloc_order 3
PARAM_VALUE 0 hdev->internal_cb_pool->name 0
PARAM_VALUE 0 hdev->internal_cb_pool_virt_addr 1-ptr_max
PARAM_VALUE 0 hdev->is_compute_ctx_active 0
PARAM_VALUE 0 hdev->is_in_dram_scrub 0
PARAM_VALUE 0 hdev->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hdev->pdev->dev.dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 hdev->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->pdev->dev.dma_uses_io_tlb 1
PARAM_VALUE 0 hdev->reset_info.in_reset 0
PARAM_VALUE 0 hdev->reset_info.needs_reset 0
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->asid 1-64
PARAM_VALUE 1 ctx->cs_pending 16,4096-ptr_max
PARAM_VALUE 1 ctx->cs_sequence 1
PARAM_VALUE 1 ctx->dram_phys_mem.counter 0
PARAM_VALUE 1 ctx->handle 0-s32max
PARAM_VALUE 1 ctx->hdev 4096-ptr_max
PARAM_VALUE 1 ctx->hdev->asic_funcs 4096-ptr_max
PARAM_VALUE 1 ctx->hdev->asic_funcs->rreg 4096-ptr_max
PARAM_VALUE 1 ctx->hdev->asic_funcs->wreg 4096-ptr_max
PARAM_VALUE 1 ctx->hdev->compute_ctx_in_release 0
PARAM_VALUE 1 ctx->hdev->device_fini_pending 0
PARAM_VALUE 1 ctx->hdev->disabled 0
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.wait_lock.owner (-1)
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 ctx->hdev->is_compute_ctx_active 0
PARAM_VALUE 1 ctx->hdev->is_in_dram_scrub 0
PARAM_VALUE 1 ctx->hdev->reset_info.in_reset 0
PARAM_VALUE 1 ctx->hdev->reset_info.needs_reset 0
PARAM_VALUE 1 ctx->hw_block_list_lock.dep_map->name 0-255
PARAM_VALUE 1 ctx->hw_block_list_lock.first_waiter 0
PARAM_VALUE 1 ctx->hw_block_list_lock.magic 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_list_lock.owner.counter 0
PARAM_VALUE 1 ctx->hw_block_mem_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.nodes_pool 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.outcome_map 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->refcount.refcount.refs.counter 1
PARAM_VALUE 1 ctx->thread_ctx_switch_token.counter 1
PARAM_VALUE 1 ctx->thread_ctx_switch_wait_token 0
PARAM_VALUE 2 type 0
PARAM_VALUE 3 size 2097152
PARAM_VALUE 4 alignment 0
BUF_SIZE 0 hdev->internal_cb_pool 120
BUF_SIZE 0 hdev->internal_cb_pool_virt_addr s32min-s32max
BUF_SIZE 1 ctx->cs_pending 0-s32max
CAPPED_DATA 1 ctx->asid 1
DATA_SOURCE 0 hdev $0
DATA_SOURCE 1 ctx $1
CAPABLE 0 21
TASK_NOT_RUNNING
UNITS 0 hdev unit_byte
LOCK2 &hdev->fpriv_list_lock
TYPE_LOCK (struct hl_device)->fpriv_list_lock

drivers/accel/habanalabs/common/command_buffer.c hl_cb_va_pool_init() -> hl_reserve_va_block()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->compute_ctx_in_release 0
PARAM_VALUE 0 hdev->device_fini_pending 0
PARAM_VALUE 0 hdev->disabled 0
PARAM_VALUE 0 hdev->fpriv_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hdev->fpriv_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 hdev->fpriv_list_lock.wait_lock.owner (-1)
PARAM_VALUE 0 hdev->fpriv_list_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 hdev->fpriv_list_lock.wait_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 hdev->is_compute_ctx_active 0
PARAM_VALUE 0 hdev->is_in_dram_scrub 0
PARAM_VALUE 0 hdev->reset_info.in_reset 0
PARAM_VALUE 0 hdev->reset_info.needs_reset 0
PARAM_VALUE 0 hdev->supports_cb_mapping 1-255
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->asid 1-64
PARAM_VALUE 1 ctx->cb_va_pool 4096-ptr_max
PARAM_VALUE 1 ctx->cb_va_pool->algo 7427687418366767104
PARAM_VALUE 1 ctx->cb_va_pool->chunks.next 4096-ptr_max
PARAM_VALUE 1 ctx->cb_va_pool->chunks.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->cb_va_pool->chunks.prev 4096-ptr_max
PARAM_VALUE 1 ctx->cb_va_pool->chunks.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->cb_va_pool->chunks.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->cb_va_pool->data 0
PARAM_VALUE 1 ctx->cb_va_pool->name 0
PARAM_VALUE 1 ctx->cs_pending 16,4096-ptr_max
PARAM_VALUE 1 ctx->cs_sequence 1
PARAM_VALUE 1 ctx->dram_phys_mem.counter 0
PARAM_VALUE 1 ctx->handle 0-s32max
PARAM_VALUE 1 ctx->hdev 4096-ptr_max
PARAM_VALUE 1 ctx->hdev->compute_ctx_in_release 0
PARAM_VALUE 1 ctx->hdev->device_fini_pending 0
PARAM_VALUE 1 ctx->hdev->disabled 0
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.wait_lock.owner (-1)
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.wait_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 1 ctx->hdev->is_compute_ctx_active 0
PARAM_VALUE 1 ctx->hdev->is_in_dram_scrub 0
PARAM_VALUE 1 ctx->hdev->reset_info.in_reset 0
PARAM_VALUE 1 ctx->hdev->reset_info.needs_reset 0
PARAM_VALUE 1 ctx->hdev->supports_cb_mapping 1-255
PARAM_VALUE 1 ctx->hw_block_list_lock.dep_map->name 0-255
PARAM_VALUE 1 ctx->hw_block_list_lock.first_waiter 0
PARAM_VALUE 1 ctx->hw_block_list_lock.magic 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_list_lock.owner.counter 0
PARAM_VALUE 1 ctx->hw_block_mem_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.nodes_pool 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.outcome_map 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->refcount.refcount.refs.counter 1
PARAM_VALUE 1 ctx->thread_ctx_switch_token.counter 1
PARAM_VALUE 1 ctx->thread_ctx_switch_wait_token 0
PARAM_VALUE 2 type 0
PARAM_VALUE 3 size 4294967296
PARAM_VALUE 4 alignment 0
BUF_SIZE 1 ctx 20448
BUF_SIZE 1 ctx->cb_va_pool 120
BUF_SIZE 1 ctx->cs_pending 0-s32max
CAPPED_DATA 1 ctx->asid 1
DATA_SOURCE 1 ctx $0
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hdev unit_byte
LOCK2 &hdev->fpriv_list_lock
TYPE_LOCK (struct hl_device)->fpriv_list_lock

drivers/accel/habanalabs/gaudi/gaudi.c gaudi_internal_cb_pool_init() -> hl_reserve_va_block()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->asic_funcs 4096-ptr_max
PARAM_VALUE 0 hdev->asic_specific 4096-ptr_max
PARAM_VALUE 0 hdev->compute_ctx_in_release 0
PARAM_VALUE 0 hdev->device_fini_pending 0
PARAM_VALUE 0 hdev->disabled 0
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 hdev->dma_pool->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 hdev->dma_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 hdev->dma_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->fpriv_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hdev->fpriv_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 hdev->fpriv_list_lock.wait_lock.owner (-1)
PARAM_VALUE 0 hdev->fpriv_list_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 hdev->internal_cb_pool 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->algo 7427687418366767104
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.next->next 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.next->prev 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.prev 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.prev->next 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->chunks.prev->prev 4096-ptr_max
PARAM_VALUE 0 hdev->internal_cb_pool->data 0
PARAM_VALUE 0 hdev->internal_cb_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->internal_cb_pool->name 0
PARAM_VALUE 0 hdev->internal_cb_pool_virt_addr 1-ptr_max
PARAM_VALUE 0 hdev->is_compute_ctx_active 0
PARAM_VALUE 0 hdev->is_in_dram_scrub 0
PARAM_VALUE 0 hdev->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hdev->pdev->dev.dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 hdev->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->pdev->dev.dma_uses_io_tlb 1
PARAM_VALUE 0 hdev->reset_info.in_reset 0
PARAM_VALUE 0 hdev->reset_info.needs_reset 0
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->asid 1-64
PARAM_VALUE 1 ctx->cs_pending 16,4096-ptr_max
PARAM_VALUE 1 ctx->cs_sequence 1
PARAM_VALUE 1 ctx->dram_phys_mem.counter 0
PARAM_VALUE 1 ctx->handle 0-s32max
PARAM_VALUE 1 ctx->hdev 4096-ptr_max
PARAM_VALUE 1 ctx->hdev->compute_ctx_in_release 0
PARAM_VALUE 1 ctx->hdev->device_fini_pending 0
PARAM_VALUE 1 ctx->hdev->disabled 0
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.wait_lock.owner (-1)
PARAM_VALUE 1 ctx->hdev->fpriv_list_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 ctx->hdev->is_compute_ctx_active 0
PARAM_VALUE 1 ctx->hdev->is_in_dram_scrub 0
PARAM_VALUE 1 ctx->hdev->reset_info.in_reset 0
PARAM_VALUE 1 ctx->hdev->reset_info.needs_reset 0
PARAM_VALUE 1 ctx->hw_block_list_lock.dep_map->name 0-255
PARAM_VALUE 1 ctx->hw_block_list_lock.first_waiter 0
PARAM_VALUE 1 ctx->hw_block_list_lock.magic 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_list_lock.owner.counter 0
PARAM_VALUE 1 ctx->hw_block_mem_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->hw_block_mem_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.free_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.nodes_pool 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.outcome_map 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.next->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev->next 4096-ptr_max
PARAM_VALUE 1 ctx->outcome_store.used_list.prev->prev 4096-ptr_max
PARAM_VALUE 1 ctx->refcount.refcount.refs.counter 1
PARAM_VALUE 1 ctx->thread_ctx_switch_token.counter 1
PARAM_VALUE 1 ctx->thread_ctx_switch_wait_token 0
PARAM_VALUE 2 type 0
PARAM_VALUE 3 size 2097152
PARAM_VALUE 4 alignment 0
BUF_SIZE 0 hdev->internal_cb_pool 120
BUF_SIZE 0 hdev->internal_cb_pool_virt_addr s32min-s32max
BUF_SIZE 1 ctx->cs_pending 0-s32max
CAPPED_DATA 1 ctx->asid 1
DATA_SOURCE 0 hdev $0
DATA_SOURCE 1 ctx $1
CAPABLE 0 21
TASK_NOT_RUNNING
UNITS 0 hdev unit_byte
LOCK2 &hdev->fpriv_list_lock
TYPE_LOCK (struct hl_device)->fpriv_list_lock