Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/accel/habanalabs/common/command_submission.c, line 1781
- drivers/accel/habanalabs/common/debugfs.c, line 1605
- drivers/accel/habanalabs/common/device.c
- drivers/accel/habanalabs/common/habanalabs_drv.c, line 706
- drivers/accel/habanalabs/common/sysfs.c
- drivers/accel/habanalabs/goya/goya.c
Smatch caller information:
drivers/accel/habanalabs/common/device.c device_hard_reset_pending() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 0,2-u32max |
| BIT_INFO | 1 | flags | 0x2,0xffffffff |
| HALF_LOCKED2 | &pool->lock |
drivers/accel/habanalabs/common/device.c device_release_watchdog_func() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 0,256-u32max |
| BIT_INFO | 1 | flags | 0x101,0xffffffff |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/accel/habanalabs/common/device.c hl_device_cond_reset() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 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->hl_debugfs.state_dump_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | hdev->hl_debugfs.state_dump_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | flags | 1-194 |
| DATA_SOURCE | 0 | hdev | $0 |
| BIT_INFO | 1 | flags | 0x1,0xff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hdev | unit_byte |
drivers/accel/habanalabs/common/device.c hl_device_release() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->compute_ctx_in_release | 1 |
| PARAM_VALUE | 0 | hdev->cs_mirror_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 1 | flags | 1 |
| DATA_SOURCE | 0 | hdev | r to_hl_device |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/accel/habanalabs/common/device.c hl_device_resume() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->pdev->bus | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->pdev->error_state | 0-2,4-u32max |
| PARAM_VALUE | 0 | hdev->pdev->is_busmaster | 1 |
| PARAM_VALUE | 0 | hdev->pdev->is_virtfn | 0 |
| PARAM_VALUE | 0 | hdev->pdev->pcie_cap | 0-1 |
| PARAM_VALUE | 0 | hdev->pdev->sriov->offset | 0-u16max |
| PARAM_VALUE | 0 | hdev->pdev->sriov->stride | 0-u16max |
| PARAM_VALUE | 0 | hdev->pdev->state_saved | 0 |
| PARAM_VALUE | 0 | hdev->reset_info.in_reset | 0 |
| PARAM_VALUE | 0 | hdev->reset_info.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *hdev->pdev->saved_config_space | 0-4294967295 |
| PARAM_VALUE | 1 | flags | 1 |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | hdev->pdev | 1 |
| DATA_SOURCE | 0 | hdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | hdev->asic_prop.dynamic_fw_load | 0 |
| HOST_DATA | 0 | hdev->asic_prop.faulty_dram_cluster_map | 1-u32max[c] |
| HOST_DATA | 0 | hdev->asic_prop.fw_app_cpu_boot_dev_sts0 | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.fw_app_cpu_boot_dev_sts1 | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.fw_bootfit_cpu_boot_dev_sts0 | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.fw_bootfit_cpu_boot_dev_sts1 | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.fw_preboot_cpu_boot_dev_sts0 | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.fw_preboot_cpu_boot_dev_sts1 | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.fw_security_enabled | 0-1 |
| HOST_DATA | 0 | hdev->asic_prop.hard_reset_done_by_fw | 0-1 |
| HOST_DATA | 0 | hdev->asic_prop.psoc_pci_pll_div_factor | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.psoc_pci_pll_nf | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.psoc_pci_pll_nr | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.psoc_pci_pll_od | 0-u32max |
| HOST_DATA | 0 | hdev->asic_prop.psoc_timestamp_frequency | 50[c] |
| HOST_DATA | 0 | hdev->pdev->current_state | 0-3[c] |
| HOST_DATA | 0 | hdev->pdev->devfn | 0-503[c] |
| HOST_DATA | 0 | hdev->pdev->pcie_flags_reg | 0-u16max |
| HOST_DATA | 0 | hdev->pdev->sriov->offset | 0-u16max |
| HOST_DATA | 0 | hdev->pdev->sriov->stride | 0-u16max |
| UNITS | 0 | hdev | unit_byte |
drivers/accel/habanalabs/common/device.c hpriv_release() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_funcs | 4096-ptr_max |
| 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.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | flags | 16 |
| CAPPED_DATA | 0 | &hdev->fpriv_list_lock | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/accel/habanalabs/common/device.c hpriv_release() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->driver | 0,4096-ptr_max |
| 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.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hdev->fpriv_list_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->memory_scrub | 1-255 |
| PARAM_VALUE | 0 | hdev->reset_info.watchdog_active | 0 |
| PARAM_VALUE | 0 | hdev->reset_upon_device_release | 0 |
| PARAM_VALUE | 1 | flags | 1 |
| CAPPED_DATA | 0 | &hdev->fpriv_list_lock | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/accel/habanalabs/common/habanalabs_drv.c hl_pci_reset_done() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 1-u64max |
| PARAM_VALUE | 1 | flags | 33 |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | hdev | unit_byte |
| HALF_LOCKED2 | &pdev->dev.mutex |
drivers/accel/habanalabs/common/debugfs.c hl_stop_on_err_write() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_prop.configurable_stop_on_err | 1-255 |
| PARAM_VALUE | 0 | hdev->reset_info.in_reset | 0 |
| PARAM_VALUE | 0 | hdev->stop_on_err | 0-1 |
| PARAM_VALUE | 1 | flags | 0 |
| FUZZY_MAX | 0 | hdev->stop_on_err | 1 |
| HARD_MAX | 0 | hdev->stop_on_err | 1 |
| NOCHECK_CALL |
drivers/accel/habanalabs/common/command_submission.c hl_cs_ctx_switch() -> hl_device_reset()
| 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->hw_queues_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->driver | 0,4096-ptr_max |
| 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.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->dma_pool->dev->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | hdev->dma_pool->dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | hdev->dma_pool->dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | hdev->dma_pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | hdev->dma_pool->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->hl_debugfs.cs_job_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->hl_debugfs.cs_job_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->hl_debugfs.cs_job_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->hl_debugfs.cs_job_spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hdev->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | hdev->pdev->dev.dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | hdev->pdev->dev.iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | hdev->reset_info.in_reset | 0 |
| PARAM_VALUE | 0 | hdev->reset_info.needs_reset | 0 |
| PARAM_VALUE | 0 | hdev->supports_ctx_switch | 1-255 |
| PARAM_VALUE | 1 | flags | 0 |
| NOCHECK_CALL |
drivers/accel/habanalabs/common/sysfs.c hard_reset_store() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 1 | flags | 1 |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | hdev | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/accel/habanalabs/common/sysfs.c soft_reset_store() -> hl_device_reset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->asic_prop.allow_inference_soft_reset | 1-255 |
| PARAM_VALUE | 0 | hdev->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | hdev | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | hdev | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/accel/habanalabs/goya/goya.c goya_handle_eqe() -> hl_device_reset()
| 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->hard_reset_on_fw_events | 1-255 |
| PARAM_VALUE | 1 | flags | 65 |
| DATA_SOURCE | 0 | hdev | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/accel/habanalabs/goya/goya.c goya_handle_eqe() -> hl_device_reset()
| 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->hard_reset_on_fw_events | 1-255 |
| PARAM_VALUE | 1 | flags | 1 |
| DATA_SOURCE | 0 | hdev | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/accel/habanalabs/goya/goya.c goya_handle_eqe() -> hl_device_reset()
| 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->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hdev->hard_reset_on_fw_events | 1-255 |
| PARAM_VALUE | 1 | flags | 1 |
| DATA_SOURCE | 0 | hdev | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |