Lines Matching full:vmid

51 			uint32_t queue, uint32_t vmid, uint32_t inst)  in kgd_gfx_v9_lock_srbm()  argument
54 soc15_grbm_select(adev, mec, pipe, queue, vmid, GET_INST(GC, inst)); in kgd_gfx_v9_lock_srbm()
86 void kgd_gfx_v9_program_sh_mem_settings(struct amdgpu_device *adev, uint32_t vmid, in kgd_gfx_v9_program_sh_mem_settings() argument
92 kgd_gfx_v9_lock_srbm(adev, 0, 0, 0, vmid, inst); in kgd_gfx_v9_program_sh_mem_settings()
102 unsigned int vmid, uint32_t inst) in kgd_gfx_v9_set_pasid_vmid_mapping() argument
116 * for ATC add 16 to VMID for mmhub, for IH different registers. in kgd_gfx_v9_set_pasid_vmid_mapping()
120 WREG32(SOC15_REG_OFFSET(ATHUB, 0, mmATC_VMID0_PASID_MAPPING) + vmid, in kgd_gfx_v9_set_pasid_vmid_mapping()
126 (1U << vmid))) in kgd_gfx_v9_set_pasid_vmid_mapping()
131 1U << vmid); in kgd_gfx_v9_set_pasid_vmid_mapping()
133 /* Mapping vmid to pasid also for IH block */ in kgd_gfx_v9_set_pasid_vmid_mapping()
134 WREG32(SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT) + vmid, in kgd_gfx_v9_set_pasid_vmid_mapping()
137 WREG32(SOC15_REG_OFFSET(ATHUB, 0, mmATC_VMID16_PASID_MAPPING) + vmid, in kgd_gfx_v9_set_pasid_vmid_mapping()
143 (1U << (vmid + 16)))) in kgd_gfx_v9_set_pasid_vmid_mapping()
148 1U << (vmid + 16)); in kgd_gfx_v9_set_pasid_vmid_mapping()
150 /* Mapping vmid to pasid also for IH block */ in kgd_gfx_v9_set_pasid_vmid_mapping()
151 WREG32(SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT_MM) + vmid, in kgd_gfx_v9_set_pasid_vmid_mapping()
255 * that wptr is GPU-accessible in the queue's VMID via in kgd_gfx_v9_hqd_load()
330 PACKET3_MAP_QUEUES_VMID(m->cp_hqd_vmid) | /* VMID */ in kgd_gfx_v9_hiq_mqd_load()
616 uint8_t vmid, uint16_t *p_pasid) in kgd_gfx_v9_get_atc_vmid_pasid_mapping_info() argument
621 + vmid); in kgd_gfx_v9_get_atc_vmid_pasid_mapping_info()
654 * vmid:
655 * Target VMID to stall/unstall.
672 uint32_t vmid, in kgd_gfx_v9_set_wave_launch_stall() argument
680 stall ? 1 << vmid : 0); in kgd_gfx_v9_set_wave_launch_stall()
703 uint32_t vmid) in kgd_gfx_v9_enable_debug_trap() argument
707 kgd_gfx_v9_set_wave_launch_stall(adev, vmid, true); in kgd_gfx_v9_enable_debug_trap()
711 kgd_gfx_v9_set_wave_launch_stall(adev, vmid, false); in kgd_gfx_v9_enable_debug_trap()
726 uint32_t vmid) in kgd_gfx_v9_disable_debug_trap() argument
730 kgd_gfx_v9_set_wave_launch_stall(adev, vmid, true); in kgd_gfx_v9_disable_debug_trap()
734 kgd_gfx_v9_set_wave_launch_stall(adev, vmid, false); in kgd_gfx_v9_disable_debug_trap()
760 uint32_t vmid, in kgd_gfx_v9_set_wave_launch_trap_override() argument
773 kgd_gfx_v9_set_wave_launch_stall(adev, vmid, true); in kgd_gfx_v9_set_wave_launch_trap_override()
795 uint32_t vmid) in kgd_gfx_v9_set_wave_launch_mode() argument
802 kgd_gfx_v9_set_wave_launch_stall(adev, vmid, true); in kgd_gfx_v9_set_wave_launch_mode()
805 VMID_MASK, is_mode_set ? 1 << vmid : 0); in kgd_gfx_v9_set_wave_launch_mode()
810 kgd_gfx_v9_set_wave_launch_stall(adev, vmid, false); in kgd_gfx_v9_set_wave_launch_mode()
837 VMID, in kgd_gfx_v9_set_address_watch()
914 uint32_t vmid, uint64_t page_table_base) in kgd_gfx_v9_set_vm_context_page_table_base() argument
916 if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { in kgd_gfx_v9_set_vm_context_page_table_base()
917 pr_err("trying to set page table base for wrong VMID %u\n", in kgd_gfx_v9_set_vm_context_page_table_base()
918 vmid); in kgd_gfx_v9_set_vm_context_page_table_base()
922 adev->mmhub.funcs->setup_vm_pt_regs(adev, vmid, page_table_base); in kgd_gfx_v9_set_vm_context_page_table_base()
924 adev->gfxhub.funcs->setup_vm_pt_regs(adev, vmid, page_table_base); in kgd_gfx_v9_set_vm_context_page_table_base()
942 * a particular queue. The method also returns the VMID associated with the
948 * @vmid: Output parameter updated with VMID of queue whose wave count
953 int *wave_cnt, int *vmid, uint32_t inst) in get_wave_count() argument
960 * Program GRBM with appropriate MEID, PIPEID, QUEUEID and VMID in get_wave_count()
961 * parameters to read out waves in flight. Get VMID if there are in get_wave_count()
964 *vmid = 0xFF; in get_wave_count()
973 *vmid = (RREG32_SOC15(GC, inst, mmCP_HQD_VMID) & in get_wave_count()
992 * in which case a VMID could be remapped to a different PASID. This could lead
994 * Time T1: vmid = getVmid(); vmid is associated with Pasid P1
995 * Time T2: passId = getPasId(vmid); vmid is associated with Pasid P2
1014 * If non-zero waves are in flight, read CP_HQD_VMID register to obtain VMID
1017 * Determine if VMID from above step maps to pasid provided as parameter. If
1018 * it matches agrregate the wave count. That the VMID will not match pasid is
1028 int vmid; in kgd_gfx_v9_get_cu_occupancy() local
1077 get_wave_count(adev, qidx, &wave_cnt, &vmid, in kgd_gfx_v9_get_cu_occupancy()
1082 mmIH_VMID_0_LUT) + vmid); in kgd_gfx_v9_get_cu_occupancy()
1124 uint32_t vmid, uint64_t tba_addr, uint64_t tma_addr, uint32_t inst) in kgd_gfx_v9_program_trap_handler_settings() argument
1126 kgd_gfx_v9_lock_srbm(adev, 0, 0, 0, vmid, inst); in kgd_gfx_v9_program_trap_handler_settings()