/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ids.c | 206 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_grab_idle() 223 struct amdgpu_ring *r = adev->vm_manager.concurrent_flush ? in amdgpu_vmid_grab_idle() 234 u64 fence_context = adev->vm_manager.fence_context + ring->idx; in amdgpu_vmid_grab_idle() 235 unsigned seqno = ++adev->vm_manager.seqno[ring->idx]; in amdgpu_vmid_grab_idle() 281 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_grab_reserved() 297 if (adev->vm_manager.concurrent_flush) in amdgpu_vmid_grab_reserved() 342 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_grab_used() 368 if (needs_flush && !adev->vm_manager.concurrent_flush) in amdgpu_vmid_grab_used() 402 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_grab() 465 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_alloc_reserved() [all …]
|
D | amdgpu_vm.c | 149 r = xa_err(xa_erase_irq(&adev->vm_manager.pasids, vm->pasid)); in amdgpu_vm_set_pasid() 157 r = xa_err(xa_store_irq(&adev->vm_manager.pasids, pasid, vm, in amdgpu_vm_set_pasid() 383 adev->vm_manager.vm_pte_scheds, in amdgpu_vm_init_entities() 384 adev->vm_manager.vm_pte_num_scheds, NULL); in amdgpu_vm_init_entities() 389 adev->vm_manager.vm_pte_scheds, in amdgpu_vm_init_entities() 390 adev->vm_manager.vm_pte_num_scheds, NULL); in amdgpu_vm_init_entities() 570 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vm_need_pipeline_sync() 604 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vm_flush() 1112 vram_base = bo_adev->vm_manager.vram_base_offset; in amdgpu_vm_bo_update() 1195 spin_lock_irqsave(&adev->vm_manager.prt_lock, flags); in amdgpu_vm_update_prt_state() [all …]
|
D | amdgpu_vm_pt.c | 57 adev->vm_manager.block_size; in amdgpu_vm_pt_level_shift() 79 shift = amdgpu_vm_pt_level_shift(adev, adev->vm_manager.root_level); in amdgpu_vm_pt_num_entries() 80 if (level == adev->vm_manager.root_level) in amdgpu_vm_pt_num_entries() 82 return round_up(adev->vm_manager.max_pfn, 1ULL << shift) in amdgpu_vm_pt_num_entries() 104 shift = amdgpu_vm_pt_level_shift(adev, adev->vm_manager.root_level); in amdgpu_vm_pt_num_ats_entries() 120 if (level <= adev->vm_manager.root_level) in amdgpu_vm_pt_entries_mask() 179 cursor->level = adev->vm_manager.root_level; in amdgpu_vm_pt_start() 378 unsigned int level = adev->vm_manager.root_level; in amdgpu_vm_pt_clear() 745 enum amdgpu_vm_level root = adev->vm_manager.root_level; in amdgpu_vm_pt_is_root_clean() 776 level += params->adev->vm_manager.root_level; in amdgpu_vm_pde_update() [all …]
|
D | gfxhub_v3_0_3.c | 173 + adev->vm_manager.vram_base_offset; in gfxhub_v3_0_3_init_system_aperture_regs() 306 adev->vm_manager.num_level); in gfxhub_v3_0_3_setup_vmid_config() 323 adev->vm_manager.block_size - 9); in gfxhub_v3_0_3_setup_vmid_config() 336 lower_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v3_0_3_setup_vmid_config() 339 upper_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v3_0_3_setup_vmid_config()
|
D | gmc_v6_0.c | 438 uint32_t high = adev->vm_manager.max_pfn - in gmc_v6_0_set_prt() 495 field = adev->vm_manager.fragment_size; in gmc_v6_0_gart_enable() 519 WREG32(mmVM_CONTEXT1_PAGE_TABLE_END_ADDR, adev->vm_manager.max_pfn - 1); in gmc_v6_0_gart_enable() 540 ((adev->vm_manager.block_size - 9) in gmc_v6_0_gart_enable() 867 adev->vm_manager.first_kfd_vmid = 8; in gmc_v6_0_sw_init() 875 adev->vm_manager.vram_base_offset = tmp; in gmc_v6_0_sw_init() 877 adev->vm_manager.vram_base_offset = 0; in gmc_v6_0_sw_init()
|
D | amdgpu_vm.h | 55 #define AMDGPU_VM_PTE_COUNT(adev) (1 << (adev)->vm_manager.block_size) 389 #define amdgpu_vm_copy_pte(adev, ib, pe, src, count) ((adev)->vm_manager.vm_pte_funcs->copy_pte((ib… 390 #define amdgpu_vm_write_pte(adev, ib, pe, value, count, incr) ((adev)->vm_manager.vm_pte_funcs->wri… 391 #define amdgpu_vm_set_pte_pde(adev, ib, pe, addr, count, incr, flags) ((adev)->vm_manager.vm_pte_fu…
|
D | gfxhub_v3_0.c | 168 + adev->vm_manager.vram_base_offset; in gfxhub_v3_0_init_system_aperture_regs() 301 adev->vm_manager.num_level); in gfxhub_v3_0_setup_vmid_config() 318 adev->vm_manager.block_size - 9); in gfxhub_v3_0_setup_vmid_config() 331 lower_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v3_0_setup_vmid_config() 334 upper_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v3_0_setup_vmid_config()
|
D | mmhub_v3_0_2.c | 185 adev->vm_manager.vram_base_offset; in mmhub_v3_0_2_init_system_aperture_regs() 322 adev->vm_manager.num_level); in mmhub_v3_0_2_setup_vmid_config() 340 adev->vm_manager.block_size - 9); in mmhub_v3_0_2_setup_vmid_config() 353 lower_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v3_0_2_setup_vmid_config() 356 upper_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v3_0_2_setup_vmid_config()
|
D | mmhub_v3_0_1.c | 192 adev->vm_manager.vram_base_offset; in mmhub_v3_0_1_init_system_aperture_regs() 317 adev->vm_manager.num_level); in mmhub_v3_0_1_setup_vmid_config() 335 adev->vm_manager.block_size - 9); in mmhub_v3_0_1_setup_vmid_config() 348 lower_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v3_0_1_setup_vmid_config() 351 upper_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v3_0_1_setup_vmid_config()
|
D | gfxhub_v1_0.c | 255 num_level = adev->vm_manager.num_level; in gfxhub_v1_0_setup_vmid_config() 256 block_size = adev->vm_manager.block_size; in gfxhub_v1_0_setup_vmid_config() 301 lower_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v1_0_setup_vmid_config() 304 upper_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v1_0_setup_vmid_config()
|
D | mmhub_v3_0.c | 193 adev->vm_manager.vram_base_offset; in mmhub_v3_0_init_system_aperture_regs() 330 adev->vm_manager.num_level); in mmhub_v3_0_setup_vmid_config() 348 adev->vm_manager.block_size - 9); in mmhub_v3_0_setup_vmid_config() 361 lower_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v3_0_setup_vmid_config() 364 upper_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v3_0_setup_vmid_config()
|
D | gfxhub_v2_0.c | 293 adev->vm_manager.num_level); in gfxhub_v2_0_setup_vmid_config() 310 adev->vm_manager.block_size - 9); in gfxhub_v2_0_setup_vmid_config() 323 lower_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v2_0_setup_vmid_config() 326 upper_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v2_0_setup_vmid_config()
|
D | gmc_v7_0.c | 571 uint32_t high = adev->vm_manager.max_pfn - in gmc_v7_0_set_prt() 640 field = adev->vm_manager.fragment_size; in gmc_v7_0_gart_enable() 669 WREG32(mmVM_CONTEXT1_PAGE_TABLE_END_ADDR, adev->vm_manager.max_pfn - 1); in gmc_v7_0_gart_enable() 687 adev->vm_manager.block_size - 9); in gmc_v7_0_gart_enable() 1047 adev->vm_manager.first_kfd_vmid = 8; in gmc_v7_0_sw_init() 1055 adev->vm_manager.vram_base_offset = tmp; in gmc_v7_0_sw_init() 1057 adev->vm_manager.vram_base_offset = 0; in gmc_v7_0_sw_init()
|
D | mmhub_v2_0.c | 373 adev->vm_manager.num_level); in mmhub_v2_0_setup_vmid_config() 391 adev->vm_manager.block_size - 9); in mmhub_v2_0_setup_vmid_config() 404 lower_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v2_0_setup_vmid_config() 407 upper_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v2_0_setup_vmid_config()
|
D | mmhub_v2_3.c | 291 adev->vm_manager.num_level); in mmhub_v2_3_setup_vmid_config() 309 adev->vm_manager.block_size - 9); in mmhub_v2_3_setup_vmid_config() 322 lower_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v2_3_setup_vmid_config() 325 upper_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v2_3_setup_vmid_config()
|
D | gfxhub_v1_2.c | 322 num_level = adev->vm_manager.num_level; in gfxhub_v1_2_xcc_setup_vmid_config() 323 block_size = adev->vm_manager.block_size; in gfxhub_v1_2_xcc_setup_vmid_config() 375 lower_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v1_2_xcc_setup_vmid_config() 379 upper_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v1_2_xcc_setup_vmid_config()
|
D | mmhub_v1_0.c | 237 num_level = adev->vm_manager.num_level; in mmhub_v1_0_setup_vmid_config() 238 block_size = adev->vm_manager.block_size; in mmhub_v1_0_setup_vmid_config() 279 lower_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v1_0_setup_vmid_config() 282 upper_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v1_0_setup_vmid_config()
|
D | amdgpu_csa.c | 31 uint64_t addr = adev->vm_manager.max_pfn << AMDGPU_GPU_PAGE_SHIFT; in amdgpu_csa_vaddr()
|
D | gmc_v8_0.c | 786 uint32_t high = adev->vm_manager.max_pfn - in gmc_v8_0_set_prt() 856 field = adev->vm_manager.fragment_size; in gmc_v8_0_gart_enable() 900 WREG32(mmVM_CONTEXT1_PAGE_TABLE_END_ADDR, adev->vm_manager.max_pfn - 1); in gmc_v8_0_gart_enable() 925 adev->vm_manager.block_size - 9); in gmc_v8_0_gart_enable() 1160 adev->vm_manager.first_kfd_vmid = 8; in gmc_v8_0_sw_init() 1168 adev->vm_manager.vram_base_offset = tmp; in gmc_v8_0_sw_init() 1170 adev->vm_manager.vram_base_offset = 0; in gmc_v8_0_sw_init()
|
D | gfxhub_v2_1.c | 302 adev->vm_manager.num_level); in gfxhub_v2_1_setup_vmid_config() 319 adev->vm_manager.block_size - 9); in gfxhub_v2_1_setup_vmid_config() 332 lower_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v2_1_setup_vmid_config() 335 upper_32_bits(adev->vm_manager.max_pfn - 1)); in gfxhub_v2_1_setup_vmid_config()
|
D | gmc_v11_0.c | 501 *addr = adev->vm_manager.vram_base_offset + *addr - in gmc_v11_0_get_vm_pde() 688 adev->vm_manager.vram_base_offset = 0; in gmc_v11_0_vram_gtt_location() 690 adev->vm_manager.vram_base_offset = adev->mmhub.funcs->get_mc_fb_offset(adev); in gmc_v11_0_vram_gtt_location() 854 adev->vm_manager.first_kfd_vmid = 8; in gmc_v11_0_sw_init()
|
D | mmhub_v1_8.c | 335 num_level = adev->vm_manager.num_level; in mmhub_v1_8_setup_vmid_config() 336 block_size = adev->vm_manager.block_size; in mmhub_v1_8_setup_vmid_config() 386 lower_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v1_8_setup_vmid_config() 390 upper_32_bits(adev->vm_manager.max_pfn - 1)); in mmhub_v1_8_setup_vmid_config()
|
D | amdgpu_amdkfd.c | 151 ((1 << adev->vm_manager.first_kfd_vmid) - 1), in amdgpu_amdkfd_device_init() 154 .gpuvm_size = min(adev->vm_manager.max_pfn in amdgpu_amdkfd_device_init() 722 return vmid >= adev->vm_manager.first_kfd_vmid; in amdgpu_amdkfd_is_kfd_vmid()
|
D | si_dma.c | 840 adev->vm_manager.vm_pte_funcs = &si_dma_vm_pte_funcs; in si_dma_set_vm_pte_funcs() 842 adev->vm_manager.vm_pte_scheds[i] = in si_dma_set_vm_pte_funcs() 845 adev->vm_manager.vm_pte_num_scheds = adev->sdma.num_instances; in si_dma_set_vm_pte_funcs()
|
/Linux-v6.6/drivers/gpu/drm/radeon/ |
D | radeon_vm.c | 62 return rdev->vm_manager.max_pfn >> radeon_vm_block_size; in radeon_vm_num_pdes() 89 if (!rdev->vm_manager.enabled) { in radeon_vm_manager_init() 94 rdev->vm_manager.enabled = true; in radeon_vm_manager_init() 110 if (!rdev->vm_manager.enabled) in radeon_vm_manager_fini() 114 radeon_fence_unref(&rdev->vm_manager.active[i]); in radeon_vm_manager_fini() 116 rdev->vm_manager.enabled = false; in radeon_vm_manager_fini() 189 vm_id->last_id_use == rdev->vm_manager.active[vm_id->id]) in radeon_vm_grab_id() 196 for (i = 1; i < rdev->vm_manager.nvm; ++i) { in radeon_vm_grab_id() 197 struct radeon_fence *fence = rdev->vm_manager.active[i]; in radeon_vm_grab_id() 216 return rdev->vm_manager.active[choices[i]]; in radeon_vm_grab_id() [all …]
|