Searched refs:dmmu (Results 1 – 13 of 13) sorted by relevance
/linux/drivers/accel/habanalabs/common/mmu/ |
H A D | mmu.c | 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() 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 D | mmu_v2.c | 72 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 D | mmu_v2_hr.c | 129 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 D | mmu_v1.c | 230 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 D | goya.c | 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() 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 D | goya_coresight.c | 379 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 D | gaudi2.c | 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() 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 D | gaudi2_coresight.c | 2171 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 D | debugfs.c | 643 (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 D | memory.c | 1139 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 D | habanalabs_ioctl.c | 71 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 D | habanalabs.h | 713 struct hl_mmu_properties dmmu; member
|
/linux/drivers/accel/habanalabs/gaudi/ |
H A D | gaudi.c | 646 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()
|