Documented in 1 files:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/accel/habanalabs/common/memory.c hl_unreserve_va_block() -> add_va_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_funcs->mmu_invalidate_cache | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_funcs->mmu_invalidate_cache_range | 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->pdev->dev.cma_area->available_count | 0-s64max |
| PARAM_VALUE | 2 | start | 0-18446744073709551614 |
| BUF_SIZE | 0 | hdev->internal_cb_pool | (-1),120 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 3 | end | 1 |
| DATA_SOURCE | 0 | hdev | $0 |
| DATA_SOURCE | 2 | start | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | hdev->asic_prop.completion_queues_count | |
| NO_OVERFLOW_SIMPLE | 0 | hdev->asic_prop.max_pending_cs | |
| UNITS | 0 | hdev | unit_byte |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |
| HALF_LOCKED2 | &hdev->fpriv_list_lock | ||
| HALF_LOCKED2 | 0 | &hdev->mmu_lock |
drivers/accel/habanalabs/common/memory.c map_device_va() -> add_va_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_funcs->mmu_invalidate_cache_range | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->mmu_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mmu_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->mmu_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->vm.idr_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | va_range | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | va_range->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | va_range->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | va_range->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | va_range->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 1 | va_range->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | va_range->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 1 | va_range->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 1 | va_range->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | start | 1-u64max |
| CAPPED_DATA | 0 | hdev->asic_prop.dmmu.start_addr | 1 |
| CAPPED_DATA | 0 | &hdev->mmu_lock | 1 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 3 | end | 1 |
| DATA_SOURCE | 2 | start | r get_va_block |
| USER_DATA | 2 | start | 1-u64max[c] |
| UNITS | 0 | hdev | unit_byte |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |
drivers/accel/habanalabs/common/memory.c unmap_device_va() -> add_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->mmu_invalidate_cache_range | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->mmu_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mmu_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->mmu_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->mmu_lock.wait_lock.dep_map->name | 0-255 |
| CAPPED_DATA | 0 | &hdev->mmu_lock | 1 |
| RX_PATH | |||
| USER_DATA | 2 | start | 0-u64max[c] |
| UNITS | 0 | hdev | unit_byte |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |
drivers/accel/habanalabs/common/memory.c va_range_init() -> add_va_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->device_fini_pending | 0 |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->is_compute_ctx_active | 0 |
| PARAM_VALUE | 0 | hdev->mmu_disable | 0 |
| PARAM_VALUE | 1 | va_range | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | va_range->list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 2 | start | 0-18446744073709551614 |
| PARAM_VALUE | 3 | end | 1-u64max |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 2 | start | 1 |
| DATA_SOURCE | 0 | hdev | $0 |
| DATA_SOURCE | 2 | start | $3 [m] |
| DATA_SOURCE | 3 | end | $4 [m] |
| PARAM_COMPARE | 2 | start | < $3 |
| PARAM_COMPARE | 3 | end | > $2 |
| PARAM_COMPARE | 3 | end | > $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | hdev->asic_prop.completion_queues_count | |
| NO_OVERFLOW_SIMPLE | 0 | hdev->asic_prop.max_pending_cs | |
| UNITS | 0 | hdev | unit_byte |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |
| HALF_LOCKED2 | &hdev->fpriv_list_lock |