/openbmc/qemu/target/sparc/ |
H A D | mmu_helper.c | 562 context = env->dmmu.mmu_primary_context & 0x1fff; in get_physical_address_data() 568 context = env->dmmu.mmu_secondary_context & 0x1fff; in get_physical_address_data() 625 env->dmmu.sfsr = sfsr; in get_physical_address_data() 639 env->dmmu.tag_access = (address & ~0x1fffULL) | context; in get_physical_address_data() 661 context = env->dmmu.mmu_primary_context & 0x1fff; in get_physical_address_code() 670 context = env->dmmu.mmu_primary_context & 0x1fff; in get_physical_address_code() 788 env->dmmu.mmu_primary_context, in dump_mmu() 789 env->dmmu.mmu_secondary_context); in dump_mmu() 791 "\n", env->dmmu.tag_access, env->dmmu.tsb_tag_target); in dump_mmu() 919 env->dmmu.sfsr = build_sfsr(env, mmu_idx, access_type); in sparc_cpu_do_unaligned_access() [all …]
|
H A D | ldst_helper.c | 158 context = env1->dmmu.mmu_primary_context; in demap_tlb() 161 context = env1->dmmu.mmu_secondary_context; in demap_tlb() 1477 ret = env->dmmu.sfsr; in helper_ld_asi() 1480 ret = env->dmmu.sfar; in helper_ld_asi() 1483 ret = env->dmmu.tsb; in helper_ld_asi() 1486 ret = env->dmmu.tag_access; in helper_ld_asi() 1804 oldreg = env->dmmu.mmuregs[reg]; in helper_st_asi() 1812 env->dmmu.sfar = 0; in helper_st_asi() 1814 env->dmmu.sfsr = val; in helper_st_asi() 1831 env->dmmu.tsb = val; in helper_st_asi() [all …]
|
H A D | machine.c | 218 VMSTATE_UINT64_ARRAY(env.dmmu.mmuregs, SPARCCPU, 16),
|
H A D | cpu.h | 475 SparcV9MMU dmmu; member
|
/openbmc/linux/drivers/accel/habanalabs/common/mmu/ |
H A D | mmu.c | 33 prop->dmmu.start_addr, in hl_is_dram_va() 34 prop->dmmu.end_addr); in hl_is_dram_va() 198 return &prop->dmmu; in hl_mmu_get_prop() 392 prop->dmmu.start_addr, prop->dmmu.end_addr)) in hl_mmu_map_contiguous() 393 page_size = prop->dmmu.page_size; in hl_mmu_map_contiguous() 452 prop->dmmu.start_addr, prop->dmmu.end_addr)) in hl_mmu_unmap_contiguous() 453 page_size = prop->dmmu.page_size; in hl_mmu_unmap_contiguous() 494 mmu_prop = &prop->dmmu; in hl_mmu_pa_page_with_offset() 564 prop->dmmu.start_addr, in hl_mmu_get_tlb_info() 565 prop->dmmu.end_addr); in hl_mmu_get_tlb_info() [all …]
|
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 | 494 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in hl_mmu_v1_unmap() 605 mmu_prop = &prop->dmmu; in hl_mmu_v1_map() 726 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v1_get_tlb_info() 727 prop->dmmu.start_addr, in hl_mmu_v1_get_tlb_info() 728 prop->dmmu.end_addr); in hl_mmu_v1_get_tlb_info() 737 mmu_prop = &prop->dmmu; in hl_mmu_v1_get_tlb_info()
|
/openbmc/linux/drivers/accel/habanalabs/goya/ |
H A D | goya.c | 427 prop->dmmu.hop_masks[MMU_HOP0] = MMU_V1_0_HOP0_MASK; in goya_set_fixed_properties() 428 prop->dmmu.hop_masks[MMU_HOP1] = MMU_V1_0_HOP1_MASK; in goya_set_fixed_properties() 429 prop->dmmu.hop_masks[MMU_HOP2] = MMU_V1_0_HOP2_MASK; in goya_set_fixed_properties() 430 prop->dmmu.hop_masks[MMU_HOP3] = MMU_V1_0_HOP3_MASK; in goya_set_fixed_properties() 431 prop->dmmu.hop_masks[MMU_HOP4] = MMU_V1_0_HOP4_MASK; in goya_set_fixed_properties() 432 prop->dmmu.start_addr = VA_DDR_SPACE_START; in goya_set_fixed_properties() 433 prop->dmmu.end_addr = VA_DDR_SPACE_END; in goya_set_fixed_properties() 434 prop->dmmu.page_size = PAGE_SIZE_2MB; in goya_set_fixed_properties() 435 prop->dmmu.num_hops = MMU_ARCH_5_HOPS; in goya_set_fixed_properties() 436 prop->dmmu.last_mask = LAST_MASK; in goya_set_fixed_properties() [all …]
|
H A D | goya_coresight.c | 374 range_start = prop->dmmu.start_addr; in goya_etr_validate_address() 375 range_end = prop->dmmu.end_addr; in goya_etr_validate_address()
|
/openbmc/linux/drivers/accel/habanalabs/gaudi2/ |
H A D | gaudi2.c | 2263 prop->dmmu.end_addr = prop->dmmu.start_addr + prop->dram_page_size * in gaudi2_set_dram_properties() 2264 div_u64((VA_HBM_SPACE_END - prop->dmmu.start_addr), prop->dmmu.page_size); in gaudi2_set_dram_properties() 2339 prop->dmmu.hop_masks[MMU_HOP0] = DHOP0_MASK; in gaudi2_set_fixed_properties() 2340 prop->dmmu.hop_masks[MMU_HOP1] = DHOP1_MASK; in gaudi2_set_fixed_properties() 2341 prop->dmmu.hop_masks[MMU_HOP2] = DHOP2_MASK; in gaudi2_set_fixed_properties() 2344 prop->dmmu.page_size = PAGE_SIZE_1GB; in gaudi2_set_fixed_properties() 2345 prop->dmmu.num_hops = MMU_ARCH_6_HOPS; in gaudi2_set_fixed_properties() 2346 prop->dmmu.last_mask = LAST_MASK; in gaudi2_set_fixed_properties() 2347 prop->dmmu.host_resident = 1; in gaudi2_set_fixed_properties() 6671 asic_prop->dmmu.start_addr, in gaudi2_validate_cb_address() [all …]
|
H A D | gaudi2_coresight.c | 2159 prop->dmmu.start_addr, in gaudi2_etr_validate_address() 2160 prop->dmmu.end_addr)) in gaudi2_etr_validate_address()
|
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | debugfs.c | 650 (addr >= prop->dmmu.start_addr && addr < prop->dmmu.end_addr)) in hl_is_device_va() 671 dram_start_addr = prop->dmmu.start_addr; in hl_is_device_internal_memory_va() 672 dram_end_addr = prop->dmmu.end_addr; in hl_is_device_internal_memory_va()
|
H A D | memory.c | 1140 va_block_align = hdev->asic_prop.dmmu.page_size; in map_device_va() 2698 dram_range_start = prop->dmmu.start_addr; in hl_vm_ctx_init() 2699 dram_range_end = prop->dmmu.end_addr - 1; in hl_vm_ctx_init() 2701 prop->dram_page_size : prop->dmmu.page_size; in hl_vm_ctx_init()
|
H A D | habanalabs_ioctl.c | 66 prop->dmmu.start_addr : prop->dram_user_base_address; in hw_ip_info() 665 info.page_order_bitmask = hdev->asic_prop.dmmu.supported_pages_mask; in dev_mem_alloc_page_sizes_info()
|
H A D | habanalabs.h | 700 struct hl_mmu_properties dmmu; member
|
/openbmc/linux/drivers/accel/habanalabs/gaudi/ |
H A D | gaudi.c | 644 memcpy(&prop->dmmu, &prop->pmmu, sizeof(prop->pmmu)); in gaudi_set_fixed_properties() 645 prop->dmmu.start_addr = (VA_HOST_SPACE_START + VA_HOST_SPACE_SIZE / 2); in gaudi_set_fixed_properties() 646 prop->dmmu.end_addr = VA_HOST_SPACE_END; in gaudi_set_fixed_properties() 647 prop->dmmu.page_size = PAGE_SIZE_2MB; in gaudi_set_fixed_properties()
|