id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
hl_fw_dynamic_load_image(9) | NAME hl_fw_dynamic_load_image - load FW image using dynamic protocol
SYNOPSIS int hl_fw_dynamic_load_image (struct hl_device *hdev , struct fw_load_mgr *fw_loader , enum hl_fw_component load_fwc , u32 img_ld_timeout );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing struc... |
hl_fw_dynamic_read_and_validate_descriptor(9) | NAME hl_fw_dynamic_read_and_validate_descriptor - read and validate FW descriptor
SYNOPSIS int hl_fw_dynamic_read_and_validate_descriptor (struct hl_device *hdev , struct fw_load_mgr *fw_loader );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing structure for loading devic... |
hl_fw_dynamic_read_device_fw_version(9) | NAME hl_fw_dynamic_read_device_fw_version - read FW version to exposed properties
SYNOPSIS int hl_fw_dynamic_read_device_fw_version (struct hl_device *hdev , enum hl_fw_component fwc , const char *fw_version );
ARGUMENTS hdev pointer to the habanalabs device structure
fwc the firmware component... |
hl_fw_dynamic_report_error_status(9) | NAME hl_fw_dynamic_report_error_status - report error status
SYNOPSIS void hl_fw_dynamic_report_error_status (struct hl_device *hdev , u32 status , enum comms_sts expected_status );
ARGUMENTS hdev pointer to the habanalabs device structure
status value of FW status register
expected_status... |
hl_fw_dynamic_request_descriptor(9) | NAME hl_fw_dynamic_request_descriptor - handshake with CPU to get FW descriptor
SYNOPSIS int hl_fw_dynamic_request_descriptor (struct hl_device *hdev , struct fw_load_mgr *fw_loader , size_t next_image_size );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing structure for ... |
hl_fw_dynamic_send_clear_cmd(9) | NAME hl_fw_dynamic_send_clear_cmd - send clear command to FW
SYNOPSIS int hl_fw_dynamic_send_clear_cmd (struct hl_device *hdev , struct fw_load_mgr *fw_loader );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing structure for loading device's FW
DESCRIPTION return 0 on suc... |
hl_fw_dynamic_send_cmd(9) | NAME hl_fw_dynamic_send_cmd - send LKD to FW cmd
SYNOPSIS void hl_fw_dynamic_send_cmd (struct hl_device *hdev , struct fw_load_mgr *fw_loader , enum comms_cmd cmd , unsigned int size );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing structure for loading device's FW
... |
hl_fw_dynamic_send_msg(9) | NAME hl_fw_dynamic_send_msg - send a COMMS message with attached data
SYNOPSIS int hl_fw_dynamic_send_msg (struct hl_device *hdev , struct fw_load_mgr *fw_loader , u8 msg_type , void *data );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing structure for loading device's F... |
hl_fw_dynamic_send_protocol_cmd(9) | NAME hl_fw_dynamic_send_protocol_cmd - send LKD to FW cmd and wait for ACK
SYNOPSIS int hl_fw_dynamic_send_protocol_cmd (struct hl_device *hdev , struct fw_load_mgr *fw_loader , enum comms_cmd cmd , unsigned int size , bool wait_ok , u32 timeout );
ARGUMENTS hdev pointer to the habanalabs device structure
... |
hl_fw_dynamic_validate_descriptor(9) | NAME hl_fw_dynamic_validate_descriptor - validate FW descriptor
SYNOPSIS int hl_fw_dynamic_validate_descriptor (struct hl_device *hdev , struct fw_load_mgr *fw_loader , struct lkd_fw_comms_desc *fw_desc );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing structure for load... |
hl_fw_dynamic_validate_memory_bound(9) | NAME hl_fw_dynamic_validate_memory_bound - validate memory bounds for memory transfer (image or descriptor) between host and FW
SYNOPSIS int hl_fw_dynamic_validate_memory_bound (struct hl_device *hdev , u64 addr , size_t size , struct pci_mem_region *region );
ARGUMENTS hdev pointer to the habanalabs device st... |
hl_fw_dynamic_wait_for_status(9) | NAME hl_fw_dynamic_wait_for_status - wait for status in dynamic FW load
SYNOPSIS int hl_fw_dynamic_wait_for_status (struct hl_device *hdev , struct fw_load_mgr *fw_loader , enum comms_sts expected_status , u32 timeout );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing str... |
hl_fw_init_cpu(9) | NAME hl_fw_init_cpu - initialize the device CPU
SYNOPSIS int hl_fw_init_cpu (struct hl_device *hdev );
ARGUMENTS hdev pointer to the habanalabs device structure
DESCRIPTION return 0 on success, otherwise non-zero error code perform necessary initializations for device's CPU. takes into account if init protoco... |
hl_fw_linux_update_state(9) | NAME hl_fw_linux_update_state - update internal data structures after Linux is loaded.
SYNOPSIS void hl_fw_linux_update_state (struct hl_device *hdev , u32 cpu_boot_dev_sts0_reg , u32 cpu_boot_dev_sts1_reg );
ARGUMENTS hdev pointer to the habanalabs device structure
cpu_boot_dev_sts0_reg
... |
hl_fw_load_fw_to_device(9) | NAME hl_fw_load_fw_to_device - Load F/W code to device's memory.
SYNOPSIS int hl_fw_load_fw_to_device (struct hl_device *hdev , const char *fw_name , void __iomem *dst , u32 src_offset , u32 size );
ARGUMENTS hdev pointer to hl_device structure.
fw_name the firmware image name
dst I... |
hl_fw_preboot_update_state(9) | NAME hl_fw_preboot_update_state - update internal data structures during handshake with preboot
SYNOPSIS void hl_fw_preboot_update_state (struct hl_device *hdev );
ARGUMENTS hdev pointer to the habanalabs device structure
DESCRIPTION return 0 on success, otherwise non-zero error code
SEE ALSO Kernel file ... |
hl_fw_send_cpu_message(9) | NAME hl_fw_send_cpu_message - send CPU message to the device.
SYNOPSIS int hl_fw_send_cpu_message (struct hl_device *hdev , u32 hw_queue_id , u32 *msg , u16 size , u32 timeout_us , u64 *result );
ARGUMENTS hdev pointer to hl_device structure.
hw_queue_id HW queue ID
msg raw data of the ... |
hl_fw_static_init_cpu(9) | NAME hl_fw_static_init_cpu - initialize the device CPU using static protocol
SYNOPSIS int hl_fw_static_init_cpu (struct hl_device *hdev , struct fw_load_mgr *fw_loader );
ARGUMENTS hdev pointer to the habanalabs device structure
fw_loader managing structure for loading device's FW
DESCRIPTION return... |
hl_fw_version_cmp(9) | NAME hl_fw_version_cmp - compares the FW version to a specific version
SYNOPSIS int hl_fw_version_cmp (struct hl_device *hdev , u32 major , u32 minor , u32 subminor );
ARGUMENTS hdev pointer to hl_device structure
major major number of a reference version
minor minor number of a ref... |
hl_gen_sob_mask(9) | NAME hl_gen_sob_mask - Generates a sob mask to be used in a monitor arm packet
SYNOPSIS int hl_gen_sob_mask (u16 sob_base , u8 sob_mask , u8 *mask );
ARGUMENTS sob_base sob base id
sob_mask sob user mask, each bit represents a sob offset from sob base
mask generated mask
RETURN 0 if give... |
hl_get_pb_block(9) | NAME hl_get_pb_block - return the relevant block within the block array
SYNOPSIS int hl_get_pb_block (struct hl_device *hdev , u32 mm_reg_addr , const u32 pb_blocks[] , int array_size );
ARGUMENTS hdev pointer to hl_device structure
mm_reg_addr register address in the desired block
pb_blocks ... |
hl_get_pci_memory_region(9) | NAME hl_get_pci_memory_region - get PCI region for given address
SYNOPSIS enum pci_region hl_get_pci_memory_region (struct hl_device *hdev , u64 addr );
ARGUMENTS hdev Pointer to hl_device structure.
addr device address
DESCRIPTION return region index on success, otherwise PCI_REGION_NUMBER (in... |
hl_get_preboot_major_minor(9) | NAME hl_get_preboot_major_minor - extract the FW's version major, minor from the version string.
SYNOPSIS int hl_get_preboot_major_minor (struct hl_device *hdev , char *preboot_ver );
ARGUMENTS hdev pointer to the hl_device
preboot_ver the FW's version string
DESCRIPTION preboot_ver is expected to be ... |
hl_get_sg_info(9) | NAME hl_get_sg_info - get number of pages and the DMA address from SG list.
SYNOPSIS u32 hl_get_sg_info (struct scatterlist *sg , dma_addr_t *dma_addr );
ARGUMENTS sg the SG list.
dma_addr pointer to DMA address to return.
DESCRIPTION Calculate the number of consecutive pages described by the SG ... |
hl_get_sw_major_minor_subminor(9) | NAME hl_get_sw_major_minor_subminor - extract the FW's SW version major, minor, sub-minor from the version string
SYNOPSIS int hl_get_sw_major_minor_subminor (struct hl_device *hdev , const char *fw_str );
ARGUMENTS hdev pointer to the hl_device
fw_str the FW's version string
DESCRIPTION The ext... |
hl_get_va_range_type(9) | NAME hl_get_va_range_type - get va_range type for the given address and size.
SYNOPSIS int hl_get_va_range_type (struct hl_ctx *ctx , u64 address , u64 size , enum hl_va_range_type *type );
ARGUMENTS ctx context to fetch va_range from.
address the start address of the area we want to validate.
... |
hl_hw_block_mem_fini(9) | NAME hl_hw_block_mem_fini - HW block memory teardown.
SYNOPSIS void hl_hw_block_mem_fini (struct hl_ctx *ctx );
ARGUMENTS ctx pointer to the habanalabs context structure.
DESCRIPTION This function clears the HW block virtual mapped addresses list and destroys it's lock.
SEE ALSO Kernel file ./drivers/acce... |
hl_hw_block_mem_init(9) | NAME hl_hw_block_mem_init - HW block memory initialization.
SYNOPSIS void hl_hw_block_mem_init (struct hl_ctx *ctx );
ARGUMENTS ctx pointer to the habanalabs context structure.
DESCRIPTION This function initializes the HW block virtual mapped addresses list and it's lock.
SEE ALSO Kernel file ./drivers/ac... |
hl_hw_block_mmap(9) | NAME hl_hw_block_mmap - mmap a hw block to user.
SYNOPSIS int hl_hw_block_mmap (struct hl_fpriv *hpriv , struct vm_area_struct *vma );
ARGUMENTS hpriv pointer to the private data of the fd
vma pointer to vm_area_struct of the process
DESCRIPTION Driver increments context reference for every HW ... |
hl_init_pb(9) | NAME hl_init_pb - set pb in HW according to given configuration
SYNOPSIS int hl_init_pb (struct hl_device *hdev , u32 num_dcores , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32 blocks_array_size , const u32 *user_regs_array , u32 user_regs_array_size );
ARGUMENTS hdev ... |
hl_init_pb_ranges(9) | NAME hl_init_pb_ranges - set pb in HW according to given configuration unsecurring registers ranges instead of specific registers
SYNOPSIS int hl_init_pb_ranges (struct hl_device *hdev , u32 num_dcores , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32 blocks_array_size , const ... |
hl_init_pb_ranges_single_dcore(9) | NAME hl_init_pb_ranges_single_dcore - set pb for a single docre in HW according to given configuration unsecurring registers ranges instead of specific registers
SYNOPSIS int hl_init_pb_ranges_single_dcore (struct hl_device *hdev , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] ... |
hl_init_pb_ranges_with_mask(9) | NAME hl_init_pb_ranges_with_mask - set pb instances using mask in HW according to given configuration unsecurring registers ranges instead of specific registers
SYNOPSIS int hl_init_pb_ranges_with_mask (struct hl_device *hdev , u32 num_dcores , u32 dcore_offset , u32 num_instances , u32 instance_offset... |
hl_init_pb_single_dcore(9) | NAME hl_init_pb_single_dcore - set pb for a single docre in HW according to given configuration
SYNOPSIS int hl_init_pb_single_dcore (struct hl_device *hdev , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32 blocks_array_size , const u32 *user_regs_array , u32 user_regs_array_si... |
hl_init_pb_with_mask(9) | NAME hl_init_pb_with_mask - set selected pb instances with mask in HW according to given configuration
SYNOPSIS int hl_init_pb_with_mask (struct hl_device *hdev , u32 num_dcores , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32 blocks_array_size , const u32 *user_re... |
hl_ioctl_t(9) | NAME hl_ioctl_t - typedef for ioctl function in the driver
SYNOPSIS int hl_ioctl_t (struct hl_fpriv *hpriv , void *data );
ARGUMENTS hpriv pointer to the FD's private data, which contains state of user process
data pointer to the input/output arguments structure of the IOCTL
RETURN 0 for success... |
hl_irq_handler_cq(9) | NAME hl_irq_handler_cq - irq handler for completion queue
SYNOPSIS irqreturn_t hl_irq_handler_cq (int irq , void *arg );
ARGUMENTS irq irq number
arg pointer to completion queue structure
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq.c struct hl_eqe_work(9), hl_cq_inc_ptr(9)... |
hl_irq_handler_dec_abnrm(9) | NAME hl_irq_handler_dec_abnrm - Decoder error interrupt handler
SYNOPSIS irqreturn_t hl_irq_handler_dec_abnrm (int irq , void *arg );
ARGUMENTS irq IRQ number
arg pointer to decoder structure.
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq.c struct hl_eqe_work(9), hl_cq_inc_p... |
hl_irq_handler_eq(9) | NAME hl_irq_handler_eq - irq handler for event queue
SYNOPSIS irqreturn_t hl_irq_handler_eq (int irq , void *arg );
ARGUMENTS irq irq number
arg pointer to event queue structure
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq.c struct hl_eqe_work(9), hl_cq_inc_ptr(9), hl_eq_i... |
hl_irq_user_interrupt_handler(9) | NAME hl_irq_user_interrupt_handler - irq handler for user interrupts.
SYNOPSIS irqreturn_t hl_irq_user_interrupt_handler (int irq , void *arg );
ARGUMENTS irq irq number
arg pointer to user interrupt structure
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq.c struct hl_eqe_work... |
hl_irq_user_interrupt_thread_handler(9) | NAME hl_irq_user_interrupt_thread_handler - irq thread handler for user interrupts. This function is invoked by threaded irq mechanism
SYNOPSIS irqreturn_t hl_irq_user_interrupt_thread_handler (int irq , void *arg );
ARGUMENTS irq irq number
arg pointer to user interrupt structure
SEE ALSO Ke... |
hl_mem_area_crosses_range(9) | NAME hl_mem_area_crosses_range - Checks whether address+size crossing a range.
SYNOPSIS bool hl_mem_area_crosses_range (u64 address , u32 size , u64 range_start_address , u64 range_end_address );
ARGUMENTS address The start address of the area we want to validate.
size The size in bytes of the area... |
hl_mem_area_inside_range(9) | NAME hl_mem_area_inside_range - Checks whether address+size are inside a range.
SYNOPSIS bool hl_mem_area_inside_range (u64 address , u64 size , u64 range_start_address , u64 range_end_address );
ARGUMENTS address The start address of the area we want to validate.
size The size in bytes of the area... |
hl_mem_mgr_fini(9) | NAME hl_mem_mgr_fini - release unified memory manager
SYNOPSIS void hl_mem_mgr_fini (struct hl_mem_mgr *mmg , struct hl_mem_mgr_fini_stats *stats );
ARGUMENTS mmg parent unified memory manager
stats if non-NULL, will return some counters for handles that could not be removed.
DESCRIPTION Releas... |
hl_mem_mgr_idr_destroy(9) | NAME hl_mem_mgr_idr_destroy - destroy memory manager IDR.
SYNOPSIS void hl_mem_mgr_idr_destroy (struct hl_mem_mgr *mmg );
ARGUMENTS mmg parent unified memory manager
DESCRIPTION Destroy the memory manager IDR. Shall be called when IDR is empty and no memory buffers are in use.
SEE ALSO Kernel file ./... |
hl_mem_mgr_init(9) | NAME hl_mem_mgr_init - initialize unified memory manager
SYNOPSIS void hl_mem_mgr_init (struct device *dev , struct hl_mem_mgr *mmg );
ARGUMENTS dev owner device pointer
mmg structure to initialize
DESCRIPTION Initialize an instance of unified memory manager
SEE ALSO Kernel file ./driv... |
hl_mem_mgr_mmap(9) | NAME hl_mem_mgr_mmap - map the given buffer to the user
SYNOPSIS int hl_mem_mgr_mmap (struct hl_mem_mgr *mmg , struct vm_area_struct *vma , void *args );
ARGUMENTS mmg unified memory manager
vma the vma object for which mmap was closed.
args additional args passed to behavior->m... |
hl_mmap_mem_buf_alloc(9) | NAME hl_mmap_mem_buf_alloc - allocate a new mappable buffer
SYNOPSIS struct hl_mmap_mem_buf * hl_mmap_mem_buf_alloc (struct hl_mem_mgr *mmg , struct hl_mmap_mem_buf_behavior *behavior , gfp_t gfp , void *args );
ARGUMENTS mmg parent unified memory manager
behavior behavior object describing this bu... |
hl_mmap_mem_buf_destroy(9) | NAME hl_mmap_mem_buf_destroy - destroy the unused buffer
SYNOPSIS void hl_mmap_mem_buf_destroy (struct hl_mmap_mem_buf *buf );
ARGUMENTS buf memory manager buffer descriptor
DESCRIPTION Internal function, used as a final step of buffer release. Shall be invoked only when the buffer is no longer in use (remov... |
hl_mmap_mem_buf_get(9) | NAME hl_mmap_mem_buf_get - increase the buffer refcount and return a pointer to the buffer descriptor.
SYNOPSIS struct hl_mmap_mem_buf * hl_mmap_mem_buf_get (struct hl_mem_mgr *mmg , u64 handle );
ARGUMENTS mmg parent unified memory manager
handle requested buffer handle
DESCRIPTION Find the buf... |
hl_mmap_mem_buf_put(9) | NAME hl_mmap_mem_buf_put - decrease the reference to the buffer
SYNOPSIS int hl_mmap_mem_buf_put (struct hl_mmap_mem_buf *buf );
ARGUMENTS buf memory manager buffer descriptor
DESCRIPTION Decrease the reference to the buffer, and release it if it was the last one. Shall be called from an interrupt context.
... |
hl_mmap_mem_buf_put_handle(9) | NAME hl_mmap_mem_buf_put_handle - decrease the reference to the buffer with the given handle.
SYNOPSIS int hl_mmap_mem_buf_put_handle (struct hl_mem_mgr *mmg , u64 handle );
ARGUMENTS mmg parent unified memory manager
handle requested buffer handle
DESCRIPTION Decrease the reference to the buffe... |
hl_mmap_mem_buf_release(9) | NAME hl_mmap_mem_buf_release - release buffer
SYNOPSIS void hl_mmap_mem_buf_release (struct kref *kref );
ARGUMENTS kref kref that reached 0.
DESCRIPTION Internal function, used as a kref release callback, when the last user of the buffer is released. Shall be called from an interrupt context.
SEE ALSO Kerne... |
hl_mmap_mem_buf_remove_idr_locked(9) | NAME hl_mmap_mem_buf_remove_idr_locked - remove handle from idr
SYNOPSIS void hl_mmap_mem_buf_remove_idr_locked (struct kref *kref );
ARGUMENTS kref kref that reached 0.
DESCRIPTION Internal function, used for kref put by handle. Assumes mmg lock is taken. Will remove the buffer from idr, without destroying ... |
hl_mmap_mem_buf_vm_close(9) | NAME hl_mmap_mem_buf_vm_close - handle mmap close
SYNOPSIS void hl_mmap_mem_buf_vm_close (struct vm_area_struct *vma );
ARGUMENTS vma the vma object for which mmap was closed.
DESCRIPTION Put the memory buffer if it is no longer mapped.
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/memory_mgr... |
hl_mmu_ctx_init(9) | NAME hl_mmu_ctx_init - initialize a context for using the MMU module.
SYNOPSIS int hl_mmu_ctx_init (struct hl_ctx *ctx );
ARGUMENTS ctx pointer to the context structure to initialize.
DESCRIPTION Initialize a mutex to protect the concurrent mapping flow, a hash to hold all page tables hops related to this co... |
hl_mmu_descramble_addr(9) | NAME hl_mmu_descramble_addr - The generic mmu address descrambling routine.
SYNOPSIS u64 hl_mmu_descramble_addr (struct hl_device *hdev , u64 addr );
ARGUMENTS hdev pointer to device data.
addr The address to descramble.
RETURN The un-scrambled address.
SEE ALSO Kernel file ./drivers/accel/h... |
hl_mmu_fini(9) | NAME hl_mmu_fini - release the MMU module.
SYNOPSIS void hl_mmu_fini (struct hl_device *hdev );
ARGUMENTS hdev habanalabs device structure.
DESCRIPTION This function does the following: - Disable MMU in H/W. - Free the pgt_infos pool. All contexts should be freed before calling this function.
SEE ALSO Kern... |
hl_mmu_get_funcs(9) | NAME hl_mmu_get_funcs - get MMU functions structure
SYNOPSIS struct hl_mmu_funcs * hl_mmu_get_funcs (struct hl_device *hdev , int pgt_residency , bool is_dram_addr );
ARGUMENTS hdev habanalabs device structure.
pgt_residency
page table residency.
is_dram_addr
... |
hl_mmu_get_hop_pte_phys_addr(9) | NAME hl_mmu_get_hop_pte_phys_addr - extract PTE address from HOP
SYNOPSIS u64 hl_mmu_get_hop_pte_phys_addr (struct hl_ctx *ctx , struct hl_mmu_properties *mmu_prop , u8 hop_idx , u64 hop_addr , u64 virt_addr );
ARGUMENTS ctx pointer to the context structure to initialize.
mmu_prop MMU properties.
... |
hl_mmu_hr_alloc_hop(9) | NAME hl_mmu_hr_alloc_hop - allocate HOP
SYNOPSIS struct pgt_info * hl_mmu_hr_alloc_hop (struct hl_ctx *ctx , struct hl_mmu_hr_priv *hr_priv , struct hl_hr_mmu_funcs *hr_func , struct hl_mmu_properties *mmu_prop );
ARGUMENTS ctx pointer to the context structure.
hr_priv host resident private info s... |
hl_mmu_hr_clear_pte(9) | NAME hl_mmu_hr_clear_pte - clear HR PTE
SYNOPSIS void hl_mmu_hr_clear_pte (struct hl_ctx *ctx , struct pgt_info *pgt_info , u64 phys_pte_addr , u32 hop_table_size );
ARGUMENTS ctx pointer to the context structure
pgt_info HOP's page table info structure
phys_pte_addr
phys... |
hl_mmu_hr_fini(9) | NAME hl_mmu_hr_fini - release the MMU module.
SYNOPSIS void hl_mmu_hr_fini (struct hl_device *hdev , struct hl_mmu_hr_priv *hr_priv , u32 hop_table_size );
ARGUMENTS hdev habanalabs device structure.
hr_priv MMU host resident private info.
hop_table_size
HOP table size
D... |
hl_mmu_hr_free_hop_remove_pgt(9) | NAME hl_mmu_hr_free_hop_remove_pgt - free HOP and remove PGT from hash
SYNOPSIS void hl_mmu_hr_free_hop_remove_pgt (struct pgt_info *pgt_info , struct hl_mmu_hr_priv *hr_priv , u32 hop_table_size );
ARGUMENTS pgt_info page table info structure.
hr_priv MMU HR private data.
hop_table_size
... |
hl_mmu_hr_get_alloc_next_hop(9) | NAME hl_mmu_hr_get_alloc_next_hop - get the next HOP, allocate it if it does not exist
SYNOPSIS struct pgt_info * hl_mmu_hr_get_alloc_next_hop (struct hl_ctx *ctx , struct hl_mmu_hr_priv *hr_priv , struct hl_hr_mmu_funcs *hr_func , struct hl_mmu_properties *mmu_prop , u64 curr_pte , bool *is_new_hop );
ARGUMENTS ctx ... |
hl_mmu_hr_get_next_hop_pgt_info(9) | NAME hl_mmu_hr_get_next_hop_pgt_info - get pgt_info structure for the next HOP
SYNOPSIS struct pgt_info * hl_mmu_hr_get_next_hop_pgt_info (struct hl_ctx *ctx , struct hl_hr_mmu_funcs *hr_func , u64 curr_pte );
ARGUMENTS ctx pointer to the context structure.
hr_func host resident functions.
... |
hl_mmu_hr_get_pte(9) | NAME hl_mmu_hr_get_pte - increase PGT PTE count
SYNOPSIS void hl_mmu_hr_get_pte (struct hl_ctx *ctx , struct hl_hr_mmu_funcs *hr_func , u64 phys_hop_addr );
ARGUMENTS ctx pointer to the context structure
hr_func host resident functions
phys_hop_addr
HOP phys address
SEE... |
hl_mmu_hr_get_tlb_info(9) | NAME hl_mmu_hr_get_tlb_info - get the TLB info (info for a specific mapping)
SYNOPSIS int hl_mmu_hr_get_tlb_info (struct hl_ctx *ctx , u64 virt_addr , struct hl_mmu_hop_info *hops , struct hl_hr_mmu_funcs *hr_func );
ARGUMENTS ctx pointer to the context structure.
virt_addr the virt address for whic... |
hl_mmu_hr_init(9) | NAME hl_mmu_hr_init - initialize the MMU module.
SYNOPSIS int hl_mmu_hr_init (struct hl_device *hdev , struct hl_mmu_hr_priv *hr_priv , u32 hop_table_size , u64 pgt_size );
ARGUMENTS hdev habanalabs device structure.
hr_priv MMU HR private data.
hop_table_size
HOP table s... |
hl_mmu_hr_pool_destroy(9) | NAME hl_mmu_hr_pool_destroy - destroy genpool
SYNOPSIS void hl_mmu_hr_pool_destroy (struct hl_device *hdev , struct hl_mmu_hr_priv *hr_priv , u32 hop_table_size );
ARGUMENTS hdev habanalabs device structure.
hr_priv MMU HR private data.
hop_table_size
HOP table size.
DES... |
hl_mmu_hr_pte_phys_to_virt(9) | NAME hl_mmu_hr_pte_phys_to_virt - translate PTE phys addr to virt addr
SYNOPSIS u64 hl_mmu_hr_pte_phys_to_virt (struct hl_ctx *ctx , struct pgt_info *pgt , u64 phys_pte_addr , u32 hop_table_size );
ARGUMENTS ctx pointer to the context structure
pgt pgt_info for the HOP hosting the PTE
... |
hl_mmu_hr_put_pte(9) | NAME hl_mmu_hr_put_pte - put HR PTE and remove it if necessary (no more PTEs)
SYNOPSIS int hl_mmu_hr_put_pte (struct hl_ctx *ctx , struct pgt_info *pgt_info , struct hl_mmu_hr_priv *hr_priv , u32 hop_table_size );
ARGUMENTS ctx pointer to the context structure
pgt_info HOP's page table info structu... |
hl_mmu_hr_write_pte(9) | NAME hl_mmu_hr_write_pte - write HR PTE
SYNOPSIS void hl_mmu_hr_write_pte (struct hl_ctx *ctx , struct pgt_info *pgt_info , u64 phys_pte_addr , u64 val , u32 hop_table_size );
ARGUMENTS ctx pointer to the context structure
pgt_info HOP's page table info structure
phys_pte_addr
... |
hl_mmu_init(9) | NAME hl_mmu_init - initialize the MMU module.
SYNOPSIS int hl_mmu_init (struct hl_device *hdev );
ARGUMENTS hdev habanalabs device structure.
RETURN 0 for success, non-zero for failure.
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/mmu/mmu.c hl_mmu_get_funcs(9), hl_mmu_fini(9), hl_mmu_ctx_init(... |
hl_mmu_scramble_addr(9) | NAME hl_mmu_scramble_addr - The generic mmu address scrambling routine.
SYNOPSIS u64 hl_mmu_scramble_addr (struct hl_device *hdev , u64 addr );
ARGUMENTS hdev pointer to device data.
addr The address to scramble.
RETURN The scrambled address.
SEE ALSO Kernel file ./drivers/accel/habanalabs/c... |
hl_mmu_v1_ctx_init(9) | NAME hl_mmu_v1_ctx_init - initialize a context for using the MMU module.
SYNOPSIS int hl_mmu_v1_ctx_init (struct hl_ctx *ctx );
ARGUMENTS ctx pointer to the context structure to initialize.
DESCRIPTION Initialize a mutex to protect the concurrent mapping flow, a hash to hold all page tables hops related to t... |
hl_mmu_v2_ctx_init(9) | NAME hl_mmu_v2_ctx_init - initialize a context for using the MMU module.
SYNOPSIS int hl_mmu_v2_ctx_init (struct hl_ctx *ctx );
ARGUMENTS ctx pointer to the context structure to initialize.
DESCRIPTION Initialize a mutex to protect the concurrent mapping flow, a hash to hold all page tables hops related to t... |
hl_mmu_v2_hr_ctx_init(9) | NAME hl_mmu_v2_hr_ctx_init - initialize a context for using the MMU module.
SYNOPSIS int hl_mmu_v2_hr_ctx_init (struct hl_ctx *ctx );
ARGUMENTS ctx pointer to the context structure to initialize.
DESCRIPTION Initialize a mutex to protect the concurrent mapping flow, a hash to hold all page tables hops relate... |
hl_mmu_v2_hr_fini(9) | NAME hl_mmu_v2_hr_fini - release the MMU module.
SYNOPSIS void hl_mmu_v2_hr_fini (struct hl_device *hdev );
ARGUMENTS hdev habanalabs device structure.
DESCRIPTION This function does the following: - Disable MMU in H/W. - Free the pgt_infos pool. All contexts should be freed before calling this function.
S... |
hl_mmu_v2_hr_init(9) | NAME hl_mmu_v2_hr_init - initialize the MMU module.
SYNOPSIS int hl_mmu_v2_hr_init (struct hl_device *hdev );
ARGUMENTS hdev habanalabs device structure.
DESCRIPTION This function does the following: - Create a pool of pages for pgt_infos. - Create a shadow table for pgt
RETURN 0 for success, non-zero for f... |
hl_pci_bars_map(9) | NAME hl_pci_bars_map - Map PCI BARs.
SYNOPSIS int hl_pci_bars_map (struct hl_device *hdev , const char * const name[3] , bool is_wc[3] );
ARGUMENTS hdev Pointer to hl_device structure.
name Array of BAR names.
is_wc Array with flag per BAR whether a write-combined mapping is needed... |
hl_pci_bars_unmap(9) | NAME hl_pci_bars_unmap - Unmap PCI BARS.
SYNOPSIS void hl_pci_bars_unmap (struct hl_device *hdev );
ARGUMENTS hdev Pointer to hl_device structure.
DESCRIPTION Release all PCI BARs and unmap their virtual addresses.
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/pci/pci.c hl_pci_bars_map(9), h... |
hl_pci_elbi_write(9) | NAME hl_pci_elbi_write - Write through the ELBI interface.
SYNOPSIS int hl_pci_elbi_write (struct hl_device *hdev , u64 addr , u32 data );
ARGUMENTS hdev Pointer to hl_device structure.
addr Address to write to
data Data to write
RETURN 0 on success, negative value for failure.
... |
hl_pci_err_detected(9) | NAME hl_pci_err_detected - a PCI bus error detected on this device
SYNOPSIS pci_ers_result_t hl_pci_err_detected (struct pci_dev *pdev , pci_channel_state_t state );
ARGUMENTS pdev pointer to pci device
state PCI error type
DESCRIPTION Called by the PCI subsystem whenever a non-correctable PCI b... |
hl_pci_err_resume(9) | NAME hl_pci_err_resume - resume after a PCI slot reset
SYNOPSIS void hl_pci_err_resume (struct pci_dev *pdev );
ARGUMENTS pdev pointer to pci device
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/habanalabs_drv.c create_hdev(9), hl_pci_probe(9), hl_pci_err_detected(9), hl_pci_err_slot_reset(9)
April ... |
hl_pci_err_slot_reset(9) | NAME hl_pci_err_slot_reset - a PCI slot reset has just happened
SYNOPSIS pci_ers_result_t hl_pci_err_slot_reset (struct pci_dev *pdev );
ARGUMENTS pdev pointer to pci device
DESCRIPTION Determine if the driver can recover from the PCI slot reset
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/habanala... |
hl_pci_fini(9) | NAME hl_pci_fini - PCI finalization code.
SYNOPSIS void hl_pci_fini (struct hl_device *hdev );
ARGUMENTS hdev Pointer to hl_device structure
DESCRIPTION Unmap PCI bars and disable PCI device.
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/pci/pci.c hl_pci_bars_map(9), hl_pci_bars_unmap(9), hl_pci_... |
hl_pci_iatu_write(9) | NAME hl_pci_iatu_write - iatu write routine.
SYNOPSIS int hl_pci_iatu_write (struct hl_device *hdev , u32 addr , u32 data );
ARGUMENTS hdev Pointer to hl_device structure.
addr Address to write to
data Data to write
RETURN 0 on success, negative value for failure.
SEE ALSO Kerne... |
hl_pci_init(9) | NAME hl_pci_init - PCI initialization code.
SYNOPSIS int hl_pci_init (struct hl_device *hdev );
ARGUMENTS hdev Pointer to hl_device structure.
DESCRIPTION Set DMA masks, initialize the PCI controller and map the PCI BARs.
RETURN 0 on success, non-zero for failure.
SEE ALSO Kernel file ./drivers/accel/haba... |
hl_pci_probe(9) | NAME hl_pci_probe - probe PCI habanalabs devices
SYNOPSIS int hl_pci_probe (struct pci_dev *pdev , const struct pci_device_id *id );
ARGUMENTS pdev pointer to pci device
id pointer to pci device id structure
DESCRIPTION Standard PCI probe function for habanalabs device. Create a new habanala... |
hl_pci_set_inbound_region(9) | NAME hl_pci_set_inbound_region - Configure inbound region
SYNOPSIS int hl_pci_set_inbound_region (struct hl_device *hdev , u8 region , struct hl_inbound_pci_region *pci_region );
ARGUMENTS hdev Pointer to hl_device structure.
region Inbound region number.
pci_region Inbound region paramet... |
hl_pci_set_outbound_region(9) | NAME hl_pci_set_outbound_region - Configure outbound region 0
SYNOPSIS int hl_pci_set_outbound_region (struct hl_device *hdev , struct hl_outbound_pci_region *pci_region );
ARGUMENTS hdev Pointer to hl_device structure.
pci_region Outbound region parameters.
DESCRIPTION Configure the iATU outbound re... |
hl_pin_host_memory(9) | NAME hl_pin_host_memory - pins a chunk of host memory.
SYNOPSIS int hl_pin_host_memory (struct hl_device *hdev , u64 addr , u64 size , struct hl_userptr *userptr );
ARGUMENTS hdev pointer to the habanalabs device structure.
addr the host virtual address of the memory area.
size th... |
hl_print_resize_sync_engine(9) | NAME hl_print_resize_sync_engine - helper function, format engine name and ID using hl_snprintf_resize
SYNOPSIS int hl_print_resize_sync_engine (char **buf , size_t *size , size_t *offset , enum hl_sync_engine_type engine_type , u32 engine_id );
ARGUMENTS buf destination buffer double pointer to be used with ... |
hl_release_firmware(9) | NAME hl_release_firmware - release FW
SYNOPSIS void hl_release_firmware (const struct firmware *fw );
ARGUMENTS fw fw descriptor
NOTE this inline function added to serve as a comprehensive mirror for the hl_request_fw function.
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/firmware_if.c hl_f... |
hl_secure_block(9) | NAME hl_secure_block - locally memsets a block to 0
SYNOPSIS void hl_secure_block (struct hl_device *hdev , struct hl_block_glbl_sec sgs_array[] , int array_size );
ARGUMENTS hdev pointer to hl_device structure
sgs_array pb array to clear
array_size blocks array size
SEE ALSO Kernel file ... |
hl_snprintf_resize(9) | NAME hl_snprintf_resize - print formatted data to buffer, resize as needed
SYNOPSIS int hl_snprintf_resize (char **buf , size_t *size , size_t *offset , const char *format , ... );
ARGUMENTS buf buffer double pointer, to be written to and resized, must be either NULL or allocated with vmalloc.
size ... |
hl_state_dump(9) | NAME hl_state_dump - dump system state
SYNOPSIS int hl_state_dump (struct hl_device *hdev );
ARGUMENTS hdev pointer to device structure
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/state_dump.c hl_format_as_binary(9), resize_to_fit(9), hl_snprintf_resize(9), hl_sync_engine_to_string(9), hl_prin... |
hl_state_dump_alloc_read_sm_block_monitors(9) | NAME hl_state_dump_alloc_read_sm_block_monitors - read monitors for a specific block
SYNOPSIS struct hl_mon_state_dump * hl_state_dump_alloc_read_sm_block_monitors (struct hl_device *hdev , u32 index );
ARGUMENTS hdev pointer to the device
index sync manager block index starting with E_N
DESCRIP... |
hl_state_dump_free_monitors(9) | NAME hl_state_dump_free_monitors - free the monitors structure
SYNOPSIS void hl_state_dump_free_monitors (struct hl_mon_state_dump *monitors );
ARGUMENTS monitors monitors array created with hl_state_dump_alloc_read_sm_block_monitors
SEE ALSO Kernel file ./drivers/accel/habanalabs/common/state_dump.c hl_format... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.