Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/accel/habanalabs/common/mmu/
Dmmu.c33 return hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_is_dram_va()
34 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()
454 page_size = prop->dmmu.page_size; in hl_mmu_unmap_contiguous()
495 mmu_prop = &prop->dmmu; in hl_mmu_pa_page_with_offset()
564 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_get_tlb_info()
[all …]
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()
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()
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-6.12.1/drivers/accel/habanalabs/goya/
Dgoya.c420 prop->dmmu.hop_shifts[MMU_HOP0] = MMU_V1_0_HOP0_SHIFT; in goya_set_fixed_properties()
421 prop->dmmu.hop_shifts[MMU_HOP1] = MMU_V1_0_HOP1_SHIFT; in goya_set_fixed_properties()
422 prop->dmmu.hop_shifts[MMU_HOP2] = MMU_V1_0_HOP2_SHIFT; in goya_set_fixed_properties()
423 prop->dmmu.hop_shifts[MMU_HOP3] = MMU_V1_0_HOP3_SHIFT; in goya_set_fixed_properties()
424 prop->dmmu.hop_shifts[MMU_HOP4] = MMU_V1_0_HOP4_SHIFT; in goya_set_fixed_properties()
425 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()
428 prop->dmmu.hop_masks[MMU_HOP3] = MMU_V1_0_HOP3_MASK; in goya_set_fixed_properties()
429 prop->dmmu.hop_masks[MMU_HOP4] = MMU_V1_0_HOP4_MASK; in goya_set_fixed_properties()
[all …]
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-6.12.1/drivers/accel/habanalabs/gaudi2/
Dgaudi2.c2373 prop->dmmu.start_addr = prop->dram_base_address + in gaudi2_set_dram_properties()
2376 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()
2473 prop->dmmu.hop_shifts[MMU_HOP0] = DHOP0_SHIFT; in gaudi2_set_fixed_properties()
2474 prop->dmmu.hop_shifts[MMU_HOP1] = DHOP1_SHIFT; in gaudi2_set_fixed_properties()
2475 prop->dmmu.hop_shifts[MMU_HOP2] = DHOP2_SHIFT; in gaudi2_set_fixed_properties()
2476 prop->dmmu.hop_shifts[MMU_HOP3] = DHOP3_SHIFT; in gaudi2_set_fixed_properties()
2477 prop->dmmu.hop_masks[MMU_HOP0] = DHOP0_MASK; in gaudi2_set_fixed_properties()
2478 prop->dmmu.hop_masks[MMU_HOP1] = DHOP1_MASK; in gaudi2_set_fixed_properties()
[all …]
Dgaudi2_coresight.c2171 prop->dmmu.start_addr, in gaudi2_etr_validate_address()
2172 prop->dmmu.end_addr)) in gaudi2_etr_validate_address()
/linux-6.12.1/drivers/accel/habanalabs/common/
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()
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()
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()
Dhabanalabs.h713 struct hl_mmu_properties dmmu; member
/linux-6.12.1/drivers/accel/habanalabs/gaudi/
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()