/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_ids.c | 205 unsigned vmhub = ring->funcs->vmhub; in amdgpu_vmid_grab_idle() local 280 unsigned vmhub = ring->funcs->vmhub; in amdgpu_vmid_grab_reserved() local 341 unsigned vmhub = ring->funcs->vmhub; in amdgpu_vmid_grab_used() local 401 unsigned vmhub = ring->funcs->vmhub; in amdgpu_vmid_grab() local 412 if (vm->reserved_vmid[vmhub]) { in amdgpu_vmid_grab() 464 unsigned vmhub) in amdgpu_vmid_alloc_reserved() argument 469 if (vm->reserved_vmid[vmhub]) in amdgpu_vmid_alloc_reserved() 482 vm->reserved_vmid[vmhub] = true; in amdgpu_vmid_alloc_reserved() 491 unsigned vmhub) in amdgpu_vmid_free_reserved() argument 496 if (vm->reserved_vmid[vmhub] && in amdgpu_vmid_free_reserved() [all …]
|
A D | gmc_v11_0.c | 169 uint32_t vmhub) in gmc_v11_0_use_invalidate_semaphore() argument 171 return ((vmhub == AMDGPU_MMHUB_0) && in gmc_v11_0_use_invalidate_semaphore() 192 unsigned int vmhub, uint32_t flush_type) in gmc_v11_0_flush_vm_hub() argument 195 struct amdgpu_vmhub *hub = &adev->vmhub[vmhub]; in gmc_v11_0_flush_vm_hub() 203 hub_ip = (vmhub == AMDGPU_GFXHUB_0) ? in gmc_v11_0_flush_vm_hub() 252 if ((vmhub != AMDGPU_GFXHUB_0) && in gmc_v11_0_flush_vm_hub() 281 uint32_t vmhub, uint32_t flush_type) in gmc_v11_0_flush_gpu_tlb() argument 294 struct amdgpu_vmhub *hub = &adev->vmhub[vmhub]; in gmc_v11_0_flush_gpu_tlb() 306 gmc_v11_0_flush_vm_hub(adev, vmid, vmhub, 0); in gmc_v11_0_flush_gpu_tlb() 378 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in gmc_v11_0_emit_flush_gpu_tlb() [all …]
|
A D | gmc_v10_0.c | 213 uint32_t vmhub) in gmc_v10_0_use_invalidate_semaphore() argument 215 return ((vmhub == AMDGPU_MMHUB_0 || in gmc_v10_0_use_invalidate_semaphore() 216 vmhub == AMDGPU_MMHUB_1) && in gmc_v10_0_use_invalidate_semaphore() 244 struct amdgpu_vmhub *hub = &adev->vmhub[vmhub]; in gmc_v10_0_flush_vm_hub() 252 hub_ip = (vmhub == AMDGPU_GFXHUB_0) ? in gmc_v10_0_flush_vm_hub() 287 if ((vmhub == AMDGPU_GFXHUB_0) && in gmc_v10_0_flush_vm_hub() 332 uint32_t vmhub, uint32_t flush_type) in gmc_v10_0_flush_gpu_tlb() argument 349 struct amdgpu_vmhub *hub = &adev->vmhub[vmhub]; in gmc_v10_0_flush_gpu_tlb() 364 if (vmhub == AMDGPU_MMHUB_0) { in gmc_v10_0_flush_gpu_tlb() 370 BUG_ON(vmhub != AMDGPU_GFXHUB_0); in gmc_v10_0_flush_gpu_tlb() [all …]
|
A D | amdgpu_ids.h | 83 unsigned vmhub); 86 unsigned vmhub); 89 void amdgpu_vmid_reset(struct amdgpu_device *adev, unsigned vmhub,
|
A D | gmc_v9_0.c | 483 hub = &adev->vmhub[j]; in gmc_v9_0_vm_fault_interrupt_state() 511 hub = &adev->vmhub[j]; in gmc_v9_0_vm_fault_interrupt_state() 736 uint32_t vmhub) in gmc_v9_0_use_invalidate_semaphore() argument 742 vmhub == AMDGPU_MMHUB_1) && in gmc_v9_0_use_invalidate_semaphore() 785 BUG_ON(vmhub >= adev->num_vmhubs); in gmc_v9_0_flush_gpu_tlb() 787 hub = &adev->vmhub[vmhub]; in gmc_v9_0_flush_gpu_tlb() 831 if (vmhub == AMDGPU_GFXHUB_0) in gmc_v9_0_flush_gpu_tlb() 846 if (vmhub == AMDGPU_GFXHUB_0) in gmc_v9_0_flush_gpu_tlb() 862 if (vmhub == AMDGPU_GFXHUB_0) in gmc_v9_0_flush_gpu_tlb() 882 if (vmhub == AMDGPU_GFXHUB_0) in gmc_v9_0_flush_gpu_tlb() [all …]
|
A D | amdgpu_gmc.c | 488 unsigned vmhub, inv_eng; in amdgpu_gmc_allocate_vm_inv_eng() local 492 for (vmhub = 0; vmhub < AMDGPU_MAX_VMHUBS; vmhub++) in amdgpu_gmc_allocate_vm_inv_eng() 493 vm_inv_engs[vmhub] &= ~(1 << 5); in amdgpu_gmc_allocate_vm_inv_eng() 498 vmhub = ring->funcs->vmhub; in amdgpu_gmc_allocate_vm_inv_eng() 503 inv_eng = ffs(vm_inv_engs[vmhub]); in amdgpu_gmc_allocate_vm_inv_eng() 511 vm_inv_engs[vmhub] &= ~(1 << ring->vm_inv_eng); in amdgpu_gmc_allocate_vm_inv_eng() 514 ring->name, ring->vm_inv_eng, ring->funcs->vmhub); in amdgpu_gmc_allocate_vm_inv_eng() 609 hub = &adev->vmhub[hub_type]; in amdgpu_gmc_set_vm_fault_masks()
|
A D | vcn_sw_ring.c | 68 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in vcn_dec_sw_ring_emit_vm_flush()
|
A D | gfxhub_v1_0.c | 43 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_setup_vm_pt_regs() 250 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_setup_vmid_config() 310 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_program_invalidation() 341 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_gart_disable() 414 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_init()
|
A D | gfxhub_v2_0.c | 123 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_setup_vm_pt_regs() 285 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_setup_vmid_config() 334 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_program_invalidation() 363 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_gart_disable() 436 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_init()
|
A D | gfxhub_v3_0_3.c | 125 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_3_setup_vm_pt_regs() 298 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_3_setup_vmid_config() 347 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_3_program_invalidation() 376 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_3_gart_disable() 454 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_3_init()
|
A D | gfxhub_v3_0.c | 122 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_setup_vm_pt_regs() 293 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_setup_vmid_config() 342 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_program_invalidation() 383 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_gart_disable() 488 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v3_0_init()
|
A D | mmhub_v3_0_2.c | 132 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_2_setup_vm_pt_regs() 314 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_2_setup_vmid_config() 364 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_2_program_invalidation() 393 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_2_gart_disable() 472 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_2_init()
|
A D | mmhub_v3_0_1.c | 141 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_1_setup_vm_pt_regs() 309 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_1_setup_vmid_config() 359 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_1_program_invalidation() 388 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_1_gart_disable() 462 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_1_init()
|
A D | amdgpu_gmc.h | 116 uint32_t vmhub, uint32_t flush_type); 295 …ne amdgpu_gmc_flush_gpu_tlb(adev, vmid, vmhub, type) ((adev)->gmc.gmc_funcs->flush_gpu_tlb((adev),… argument
|
A D | mmhub_v2_0.c | 190 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_0_setup_vm_pt_regs() 365 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_0_setup_vmid_config() 415 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_0_program_invalidation() 444 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_0_gart_disable() 523 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_0_init()
|
A D | mmhub_v2_3.c | 124 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_3_setup_vm_pt_regs() 283 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_3_setup_vmid_config() 333 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_3_program_invalidation() 376 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_3_gart_disable() 449 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v2_3_init()
|
A D | mmhub_v3_0.c | 139 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_setup_vm_pt_regs() 322 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_setup_vmid_config() 372 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_program_invalidation() 401 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_gart_disable() 480 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v3_0_init()
|
A D | gfxhub_v2_1.c | 126 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_setup_vm_pt_regs() 294 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_setup_vmid_config() 343 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_program_invalidation() 384 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_gart_disable() 465 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_init() 654 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_halt()
|
A D | mmhub_v1_0.c | 57 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_0_setup_vm_pt_regs() 232 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_0_setup_vmid_config() 288 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_0_program_invalidation() 341 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_0_gart_disable() 418 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_0_init()
|
A D | jpeg_v1_0.c | 379 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in jpeg_v1_0_decode_ring_emit_vm_flush() 551 .vmhub = AMDGPU_MMHUB_0,
|
A D | jpeg_v2_0.c | 616 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in jpeg_v2_0_dec_ring_emit_vm_flush() 765 .vmhub = AMDGPU_MMHUB_0,
|
A D | mmhub_v1_7.c | 57 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_7_setup_vm_pt_regs() 264 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_7_setup_vmid_config() 322 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_7_program_invalidation() 351 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_7_gart_disable() 428 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v1_7_init()
|
A D | mmhub_v9_4.c | 60 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v9_4_setup_hubid_vm_pt_regs() 297 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v9_4_setup_vmid_config() 366 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v9_4_program_invalidation() 407 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0]; in mmhub_v9_4_gart_disable() 511 {&adev->vmhub[AMDGPU_MMHUB_0], &adev->vmhub[AMDGPU_MMHUB_1]}; in mmhub_v9_4_init()
|
A D | uvd_v7_0.c | 1400 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in uvd_v7_0_ring_emit_vm_flush() 1443 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in uvd_v7_0_enc_ring_emit_vm_flush() 1805 .vmhub = AMDGPU_MMHUB_0, 1838 .vmhub = AMDGPU_MMHUB_0,
|
A D | vcn_v1_0.c | 1551 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in vcn_v1_0_dec_ring_emit_vm_flush() 1696 struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub]; in vcn_v1_0_enc_ring_emit_vm_flush() 1980 .vmhub = AMDGPU_MMHUB_0, 2015 .vmhub = AMDGPU_MMHUB_0,
|