Home
last modified time | relevance | path

Searched refs:asic_prop (Results 1 – 22 of 22) sorted by relevance

/drivers/misc/habanalabs/common/
Dasid.c14 hdev->asid_bitmap = kcalloc(BITS_TO_LONGS(hdev->asic_prop.max_asid), in hl_asid_init()
40 hdev->asic_prop.max_asid); in hl_asid_alloc()
41 if (found == hdev->asic_prop.max_asid) in hl_asid_alloc()
53 if (asid == HL_KERNEL_ASID_ID || asid >= hdev->asic_prop.max_asid) { in hl_asid_free()
Dsysfs.c117 return sprintf(buf, "%s\n", hdev->asic_prop.uboot_ver); in uboot_ver_show()
125 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in armcp_kernel_ver_show()
133 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version); in armcp_ver_show()
142 hdev->asic_prop.cpucp_info.cpld_version); in cpld_ver_show()
150 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in cpucp_kernel_ver_show()
158 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version); in cpucp_ver_show()
167 hdev->asic_prop.cpucp_info.infineon_version); in infineon_ver_show()
175 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.fuse_version); in fuse_ver_show()
183 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.thermal_version); in thermal_ver_show()
191 return sprintf(buf, "%s\n", hdev->asic_prop.preboot_ver); in preboot_btl_ver_show()
[all …]
Dcontext.c89 for (i = 0 ; i < hdev->asic_prop.max_pending_cs ; i++) in hl_ctx_fini()
202 ctx->cs_pending = kcalloc(hdev->asic_prop.max_pending_cs, in hl_ctx_init()
296 struct asic_fixed_properties *asic_prop = &ctx->hdev->asic_prop; in hl_ctx_get_fence_locked() local
302 if (seq + asic_prop->max_pending_cs < ctx->cs_sequence) in hl_ctx_get_fence_locked()
305 fence = ctx->cs_pending[seq & (asic_prop->max_pending_cs - 1)]; in hl_ctx_get_fence_locked()
Ddevice.c374 if (hdev->asic_prop.completion_queues_count) { in device_early_init()
375 hdev->cq_wq = kcalloc(hdev->asic_prop.completion_queues_count, in device_early_init()
384 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) { in device_early_init()
454 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in device_early_init()
490 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in device_early_fini()
558 hdev->high_pll = hdev->asic_prop.high_pll; in device_late_init()
609 max_power = hdev->asic_prop.max_power_default; in hl_device_utilization()
610 dc_power = hdev->asic_prop.dc_power_default; in hl_device_utilization()
1092 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in hl_device_reset()
1293 user_interrupt_cnt = hdev->asic_prop.user_interrupt_count; in hl_device_init()
[all …]
Dfirmware_if.c214 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_fw_send_cpu_message()
609 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_fw_cpucp_info_get()
880 struct asic_fixed_properties *prop = &hdev->asic_prop; in get_used_pll_index()
983 if (hdev->asic_prop.dynamic_fw_load) { in hl_fw_ask_hard_reset_without_linux()
1004 if (hdev->asic_prop.dynamic_fw_load) { in hl_fw_ask_halt_machine_without_linux()
1084 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_fw_read_preboot_caps()
1159 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_fw_static_read_device_fw_version()
1238 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_fw_preboot_update_state()
1311 if (hdev->asic_prop.dynamic_fw_load) in hl_fw_read_preboot_status()
1814 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_fw_dynamic_read_device_fw_version()
[all …]
Dhw_queue.c53 if (!hdev->asic_prop.max_queues || q->queue_type == QUEUE_TYPE_HW) in hl_hw_queue_update_ci()
61 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_hw_queue_update_ci()
381 offset = job->cs->sequence & (hdev->asic_prop.max_pending_cs - 1); in hw_queue_schedule_job()
646 max_queues = hdev->asic_prop.max_queues; in hl_hw_queue_schedule_cs()
903 struct asic_fixed_properties *prop = &hdev->asic_prop; in sync_stream_queue_init()
1072 struct asic_fixed_properties *asic = &hdev->asic_prop; in hl_hw_queues_create()
1114 u32 max_queues = hdev->asic_prop.max_queues; in hl_hw_queues_destroy()
1126 u32 max_queues = hdev->asic_prop.max_queues; in hl_hw_queue_reset()
Dmemory.c65 page_size = hdev->asic_prop.dram_page_size; in alloc_device_memory()
582 struct asic_fixed_properties *prop = &hdev->asic_prop; in get_va_block()
821 huge_page_size = ctx->hdev->asic_prop.pmmu_huge.page_size; in init_phys_pg_pack_from_userptr()
1072 u32 page_size = hdev->asic_prop.pmmu.page_size, in map_device_va()
1073 huge_page_size = hdev->asic_prop.pmmu_huge.page_size; in map_device_va()
1139 va_block_align = hdev->asic_prop.dmmu.page_size; in map_device_va()
1268 prop = &hdev->asic_prop; in unmap_device_va()
1303 hdev->asic_prop.pmmu.page_size) in unmap_device_va()
1592 if (!hdev->asic_prop.dram_supports_virtual_memory) { in hl_mem_ioctl()
1621 if (!hdev->asic_prop.dram_supports_virtual_memory) { in hl_mem_ioctl()
[all …]
Dcommand_buffer.c18 struct asic_fixed_properties *prop = &hdev->asic_prop; in cb_map_mem()
274 cb_size <= hdev->asic_prop.cb_pool_cb_size) { in hl_cb_create()
665 for (i = 0 ; i < hdev->asic_prop.cb_pool_cb_cnt ; i++) { in hl_cb_pool_init()
666 cb = hl_cb_alloc(hdev, hdev->asic_prop.cb_pool_cb_size, in hl_cb_pool_init()
695 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_cb_va_pool_init()
Dcommand_submission.c817 cs->jobs_in_queue_cnt = kcalloc(hdev->asic_prop.max_queues, in allocate_cs()
820 cs->jobs_in_queue_cnt = kcalloc(hdev->asic_prop.max_queues, in allocate_cs()
839 (hdev->asic_prop.max_pending_cs - 1)]; in allocate_cs()
868 (hdev->asic_prop.max_pending_cs - 1)] = in allocate_cs()
913 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in hl_cs_rollback_all()
945 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_release_pending_user_interrupts()
984 struct asic_fixed_properties *asic = &hdev->asic_prop; in validate_queue_index()
1779 if (q_idx >= hdev->asic_prop.max_queues) { in cs_ioctl_reserve_signals()
1786 hw_queue_prop = &hdev->asic_prop.hw_queues_props[q_idx]; in cs_ioctl_reserve_signals()
1971 if (chunk->queue_index >= hdev->asic_prop.max_queues) { in cs_ioctl_signal_wait()
[all …]
Dhabanalabs_drv.c314 hdev->asic_prop.fw_security_enabled = in create_hdev()
317 hdev->asic_prop.fw_security_enabled = false; in create_hdev()
Dhabanalabs_ioctl.c49 struct asic_fixed_properties *prop = &hdev->asic_prop; in hw_ip_info()
124 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_usage_info()
384 struct asic_fixed_properties *prop = &hdev->asic_prop; in sync_manager_info()
Dhwmon.c557 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_hwmon_init()
Ddebugfs.c511 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_is_device_va()
534 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_is_device_internal_memory_va()
Dhabanalabs.h2500 struct asic_fixed_properties asic_prop; member
/drivers/misc/habanalabs/common/mmu/
Dmmu_v1.c32 hdev->asic_prop.mmu_hop_table_size); in _free_hop()
48 struct asic_fixed_properties *prop = &hdev->asic_prop; in alloc_hop()
87 return ctx->hdev->asic_prop.mmu_pgt_addr + in get_phys_hop0_addr()
88 (ctx->asid * ctx->hdev->asic_prop.mmu_hop_table_size); in get_phys_hop0_addr()
94 (ctx->asid * ctx->hdev->asic_prop.mmu_hop_table_size); in get_hop0_addr()
176 return hop_addr + ctx->hdev->asic_prop.mmu_pte_size * in get_hopN_pte_addr()
244 u64 page_mask = (ctx->hdev->asic_prop.mmu_hop_table_size - 1); in get_phys_addr()
260 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_default_mapping_init()
360 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_default_mapping_fini()
418 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_v1_init()
[all …]
Dmmu.c14 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_is_dram_va()
149 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_unmap_page()
237 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_map_page()
351 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_map_contiguous()
409 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_unmap_contiguous()
484 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_pa_page_with_offset()
558 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_get_tlb_info()
/drivers/misc/habanalabs/goya/
Dgoya.c362 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_set_fixed_properties()
542 if (hdev->asic_prop.iatu_done_by_fw) in goya_init_iatu()
590 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_early_init()
627 if (hdev->asic_prop.fw_security_enabled) { in goya_early_init()
628 hdev->asic_prop.iatu_done_by_fw = true; in goya_early_init()
640 hdev->asic_prop.iatu_done_by_fw = true; in goya_early_init()
679 kfree(hdev->asic_prop.hw_queues_props); in goya_early_init()
693 kfree(hdev->asic_prop.hw_queues_props); in goya_early_fini()
729 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_fetch_psoc_frequency()
734 if (hdev->asic_prop.fw_security_enabled) { in goya_fetch_psoc_frequency()
[all …]
Dgoya_coresight.c266 frequency = hdev->asic_prop.psoc_timestamp_frequency; in goya_config_stm()
365 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_etr_validate_address()
437 if (!hdev->asic_prop.fw_security_enabled) { in goya_config_etr()
/drivers/misc/habanalabs/gaudi/
Dgaudi.c505 struct asic_fixed_properties *prop = &hdev->asic_prop; in set_default_power_values()
522 struct asic_fixed_properties *prop = &hdev->asic_prop; in gaudi_set_fixed_properties()
693 if (hdev->asic_prop.iatu_done_by_fw) in gaudi_set_hbm_bar_base()
718 if (hdev->asic_prop.iatu_done_by_fw) in gaudi_init_iatu()
763 struct asic_fixed_properties *prop = &hdev->asic_prop; in gaudi_early_init()
800 if (hdev->asic_prop.fw_security_enabled) { in gaudi_early_init()
801 hdev->asic_prop.iatu_done_by_fw = true; in gaudi_early_init()
807 hdev->asic_prop.gic_interrupts_enable = false; in gaudi_early_init()
819 hdev->asic_prop.iatu_done_by_fw = true; in gaudi_early_init()
851 kfree(hdev->asic_prop.hw_queues_props); in gaudi_early_init()
[all …]
Dgaudi_coresight.c423 frequency = hdev->asic_prop.psoc_timestamp_frequency; in gaudi_config_stm()
531 struct asic_fixed_properties *prop = &hdev->asic_prop; in gaudi_etr_validate_address()
632 if (!hdev->asic_prop.fw_security_enabled) { in gaudi_config_etr()
Dgaudi_security.c1476 if (!hdev->asic_prop.fw_security_enabled) { in gaudi_init_dma_protection_bits()
9163 if (!hdev->asic_prop.fw_security_enabled) { in gaudi_init_tpc_protection_bits()
12854 if (!hdev->asic_prop.fw_security_enabled) { in gaudi_init_protection_bits()
13053 if (!hdev->asic_prop.fw_security_enabled) { in gaudi_init_security()
/drivers/misc/habanalabs/common/pci/
Dpci.c207 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_pci_iatu_write()
261 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_pci_set_inbound_region()
326 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_pci_set_outbound_region()
425 if (hdev->asic_prop.iatu_done_by_fw) { in hl_pci_init()