Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/accel/habanalabs/common/firmware_if.c hl_fw_dynamic_validate_descriptor() -> hl_fw_dynamic_validate_memory_bound()

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_prop.dynamic_fw_load 1-255
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->binned 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->cb_alloc_flags 0-2
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->collective_mode 0-2
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->dram_bd 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->driver_only 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->q_dram_bd_address 0,1153202979584606208-1153484463146991614
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->supports_sync_stream 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->type 0-4
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->fw_components 4-u64max
PARAM_VALUE 0 hdev->kernel_ctx->hdev->kernel_queues->hw_queue_id 0-s32max
PARAM_VALUE 0 hdev->kernel_queues->collective_mode 0-2
PARAM_VALUE 0 hdev->kernel_queues->dram_bd 0-1
PARAM_VALUE 0 hdev->kernel_queues->hw_queue_id 0-s32max
PARAM_VALUE 0 hdev->kernel_queues->pq_dram_address 0,1153202979584606208-1153484463146991614
PARAM_VALUE 0 hdev->kernel_queues->queue_type 0-4
PARAM_VALUE 0 hdev->kernel_queues->valid 0-1
PARAM_VALUE 0 hdev->pci_mem_region 4096-ptr_max
PARAM_VALUE 0 hdev->pcie_bar 4096-ptr_max
PARAM_VALUE 1 addr 0-18446744073709551614
PARAM_VALUE 3 region 4096-ptr_max
PARAM_VALUE 3 region->bar_id 0,2,4
PARAM_VALUE 3 region->offset_in_bar 0,66977792,67108864,201326592,218103808
PARAM_VALUE 3 region->region_base 0,549487378432,549688573952,549688705024,1152922054228443136,1153202979533225984,1153202979583557632
PARAM_VALUE 3 region->used 1
CAPPED_DATA 1 addr 1
CAPPED_DATA 1 addr 1
DATA_SOURCE 0 hdev $0
BIT_INFO 0 hdev->fw_components 0x4,0xffffffffffffffff
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.hard_reset_done_by_fw 0-1
HOST_DATA 1 addr 0-18446744073709551614[c]
USER_DATA 0 hdev->fw_inner_major_ver 0-u32max
USER_DATA 0 hdev->fw_inner_minor_ver 0-u32max
USER_DATA 0 hdev->fw_sw_major_ver 0-u32max
USER_DATA 0 hdev->fw_sw_minor_ver 0-u32max
USER_DATA 0 hdev->fw_sw_sub_minor_ver 0-u32max
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/accel/habanalabs/common/firmware_if.c hl_fw_dynamic_validate_response() -> hl_fw_dynamic_validate_memory_bound()

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_prop.dynamic_fw_load 1-255
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->binned 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->cb_alloc_flags 0-2
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->collective_mode 0-2
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->dram_bd 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->driver_only 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->q_dram_bd_address 0,1153202979584606208-1153484463146991614
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->supports_sync_stream 0-1
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props->type 0-4
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->fw_components 4-u64max
PARAM_VALUE 0 hdev->kernel_ctx->hdev->kernel_queues->hw_queue_id 0-s32max
PARAM_VALUE 0 hdev->kernel_queues->collective_mode 0-2
PARAM_VALUE 0 hdev->kernel_queues->dram_bd 0-1
PARAM_VALUE 0 hdev->kernel_queues->hw_queue_id 0-s32max
PARAM_VALUE 0 hdev->kernel_queues->pq_dram_address 0,1153202979584606208-1153484463146991614
PARAM_VALUE 0 hdev->kernel_queues->queue_type 0-4
PARAM_VALUE 0 hdev->kernel_queues->valid 0-1
PARAM_VALUE 0 hdev->pci_mem_region 4096-ptr_max
PARAM_VALUE 2 size 1280
PARAM_VALUE 3 region 4096-ptr_max
DATA_SOURCE 0 hdev $0
DATA_SOURCE 3 region $2
BIT_INFO 0 hdev->fw_components 0x4,0xffffffffffffffff
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.hard_reset_done_by_fw 0-1
HOST_DATA 1 addr 0-1153202983878524924
USER_DATA 0 hdev->fw_inner_major_ver 0-u32max
USER_DATA 0 hdev->fw_inner_minor_ver 0-u32max
USER_DATA 0 hdev->fw_sw_major_ver 0-u32max
USER_DATA 0 hdev->fw_sw_minor_ver 0-u32max
USER_DATA 0 hdev->fw_sw_sub_minor_ver 0-u32max
UNITS 1 addr unit_byte
UNITS 2 size unit_byte