Home
last modified time | relevance | path

Searched refs:dmmu (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c34 prop->dmmu.start_addr, in hl_is_dram_va()
35 prop->dmmu.end_addr); in hl_is_dram_va()
199 return &prop->dmmu; in hl_mmu_get_prop()
393 prop->dmmu.start_addr, prop->dmmu.end_addr)) in hl_mmu_map_contiguous()
394 page_size = prop->dmmu.page_size; in hl_mmu_map_contiguous()
453 prop->dmmu.start_addr, prop->dmmu.end_addr)) in hl_mmu_unmap_contiguous()
495 mmu_prop = &prop->dmmu; in hl_mmu_pa_page_with_offset()
565 prop->dmmu.start_addr, in hl_mmu_get_tlb_info()
566 prop->dmmu.end_addr); in hl_mmu_get_tlb_info()
1333 prop->dmmu.hop_table_size); in hl_mmu_dr_alloc_hop()
[all …]
H A Dmmu_v2.c72 mmu_prop = &prop->dmmu; in hl_mmu_v2_unmap()
145 mmu_prop = &prop->dmmu; in hl_mmu_v2_map()
253 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v2_get_tlb_info()
254 prop->dmmu.start_addr, in hl_mmu_v2_get_tlb_info()
255 prop->dmmu.end_addr); in hl_mmu_v2_get_tlb_info()
261 mmu_prop = &prop->dmmu; in hl_mmu_v2_get_tlb_info()
H A Dmmu_v2_hr.c129 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in _hl_mmu_v2_hr_unmap()
226 mmu_prop = &prop->dmmu; in _hl_mmu_v2_hr_map()
341 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v2_hr_get_tlb_mapping_params()
342 prop->dmmu.start_addr, in hl_mmu_v2_hr_get_tlb_mapping_params()
343 prop->dmmu.end_addr); in hl_mmu_v2_hr_get_tlb_mapping_params()
352 *mmu_prop = &prop->dmmu; in hl_mmu_v2_hr_get_tlb_mapping_params()
H A Dmmu_v1.c230 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in hl_mmu_v1_unmap()
341 mmu_prop = &prop->dmmu; in hl_mmu_v1_map()
462 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v1_get_tlb_info()
463 prop->dmmu.start_addr, in hl_mmu_v1_get_tlb_info()
464 prop->dmmu.end_addr); in hl_mmu_v1_get_tlb_info()
473 mmu_prop = &prop->dmmu; in hl_mmu_v1_get_tlb_info()
/linux/drivers/accel/habanalabs/goya/
H A Dgoya.c425 prop->dmmu.hop_masks[MMU_HOP0] = MMU_V1_0_HOP0_MASK; in goya_set_fixed_properties()
426 prop->dmmu.hop_masks[MMU_HOP1] = MMU_V1_0_HOP1_MASK; in goya_set_fixed_properties()
427 prop->dmmu.hop_masks[MMU_HOP2] = MMU_V1_0_HOP2_MASK; in goya_set_fixed_properties()
430 prop->dmmu.start_addr = VA_DDR_SPACE_START; in goya_set_fixed_properties()
431 prop->dmmu.end_addr = VA_DDR_SPACE_END; in goya_set_fixed_properties()
432 prop->dmmu.page_size = PAGE_SIZE_2MB; in goya_set_fixed_properties()
433 prop->dmmu.num_hops = MMU_ARCH_5_HOPS; in goya_set_fixed_properties()
434 prop->dmmu.last_mask = LAST_MASK; in goya_set_fixed_properties()
436 prop->dmmu.hop_table_size = HOP_TABLE_SIZE_512_PTE; in goya_set_fixed_properties()
440 memcpy(&prop->pmmu, &prop->dmmu, sizeof(prop->dmmu)); in goya_set_fixed_properties()
[all …]
H A Dgoya_coresight.c379 range_start = prop->dmmu.start_addr; in goya_etr_validate_address()
380 range_end = prop->dmmu.end_addr; in goya_etr_validate_address()
/linux/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2.c2376 prop->dmmu.end_addr = prop->dmmu.start_addr + prop->dram_page_size * in gaudi2_set_dram_properties()
2377 div_u64((VA_HBM_SPACE_END - prop->dmmu.start_addr), prop->dmmu.page_size); in gaudi2_set_dram_properties()
2470 prop->dmmu.pgt_size = HMMU_PAGE_TABLES_SIZE; in gaudi2_set_fixed_properties()
2477 prop->dmmu.hop_masks[MMU_HOP0] = DHOP0_MASK; in gaudi2_set_fixed_properties()
2481 prop->dmmu.page_size = PAGE_SIZE_1GB; in gaudi2_set_fixed_properties()
2482 prop->dmmu.num_hops = MMU_ARCH_4_HOPS; in gaudi2_set_fixed_properties()
2483 prop->dmmu.last_mask = LAST_MASK; in gaudi2_set_fixed_properties()
2484 prop->dmmu.host_resident = 0; in gaudi2_set_fixed_properties()
3093 if (prop->dmmu.host_resident) in gaudi2_mmu_clear_pgt_range()
6798 asic_prop->dmmu.start_addr, in gaudi2_validate_cb_address()
[all …]
H A Dgaudi2_coresight.c2171 prop->dmmu.start_addr, in gaudi2_etr_validate_address()
2172 prop->dmmu.end_addr)) in gaudi2_etr_validate_address()
/linux/drivers/accel/habanalabs/common/
H A Ddebugfs.c643 (addr >= prop->dmmu.start_addr && addr < prop->dmmu.end_addr)) in hl_is_device_va()
664 dram_start_addr = prop->dmmu.start_addr; in hl_is_device_internal_memory_va()
665 dram_end_addr = prop->dmmu.end_addr; in hl_is_device_internal_memory_va()
H A Dmemory.c1139 va_block_align = hdev->asic_prop.dmmu.page_size; in map_device_va()
2716 dram_range_start = prop->dmmu.start_addr; in hl_vm_ctx_init()
2717 dram_range_end = prop->dmmu.end_addr - 1; in hl_vm_ctx_init()
2719 prop->dram_page_size : prop->dmmu.page_size; in hl_vm_ctx_init()
H A Dhabanalabs_ioctl.c71 prop->dmmu.start_addr : prop->dram_user_base_address; in hw_ip_info()
671 info.page_order_bitmask = hdev->asic_prop.dmmu.supported_pages_mask; in dev_mem_alloc_page_sizes_info()
H A Dhabanalabs.h713 struct hl_mmu_properties dmmu; member
/linux/drivers/accel/habanalabs/gaudi/
H A Dgaudi.c646 memcpy(&prop->dmmu, &prop->pmmu, sizeof(prop->pmmu)); in gaudi_set_fixed_properties()
647 prop->dmmu.start_addr = (VA_HOST_SPACE_START + VA_HOST_SPACE_SIZE / 2); in gaudi_set_fixed_properties()
648 prop->dmmu.end_addr = VA_HOST_SPACE_END; in gaudi_set_fixed_properties()
649 prop->dmmu.page_size = PAGE_SIZE_2MB; in gaudi_set_fixed_properties()
650 prop->dmmu.pgt_size = prop->mmu_pgt_size; in gaudi_set_fixed_properties()
3652 (i * prop->dmmu.hop_table_size); in gaudi_mmu_init()