Home
last modified time | relevance | path

Searched refs:vmid (Results 1 – 25 of 93) sorted by relevance

1234

/Linux-v4.19/drivers/gpu/drm/amd/amdkfd/
Dcik_event_interrupt.c35 unsigned int vmid, pasid; in cik_event_interrupt_isr() local
49 vmid = f2g->read_vmid_from_vmfault_reg(dev->kgd); in cik_event_interrupt_isr()
50 pasid = f2g->get_atc_vmid_pasid_mapping_pasid(dev->kgd, vmid); in cik_event_interrupt_isr()
53 tmp_ihre->ring_id |= vmid << 8; in cik_event_interrupt_isr()
57 vmid >= dev->vm_info.first_vmid_kfd && in cik_event_interrupt_isr()
58 vmid <= dev->vm_info.last_vmid_kfd; in cik_event_interrupt_isr()
62 vmid = (ihre->ring_id & 0x0000ff00) >> 8; in cik_event_interrupt_isr()
63 if (vmid < dev->vm_info.first_vmid_kfd || in cik_event_interrupt_isr()
64 vmid > dev->vm_info.last_vmid_kfd) in cik_event_interrupt_isr()
89 unsigned int vmid = (ihre->ring_id & 0x0000ff00) >> 8; in cik_event_interrupt_wq() local
[all …]
Dkfd_int_process_v9.c33 uint16_t source_id, client_id, pasid, vmid; in event_interrupt_isr_v9() local
37 vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry); in event_interrupt_isr_v9()
38 if (vmid < dev->vm_info.first_vmid_kfd || in event_interrupt_isr_v9()
39 vmid > dev->vm_info.last_vmid_kfd) in event_interrupt_isr_v9()
70 uint16_t source_id, client_id, pasid, vmid; in event_interrupt_wq_v9() local
76 vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry); in event_interrupt_wq_v9()
92 info.vmid = vmid; in event_interrupt_wq_v9()
Dkfd_dbgdev.c234 unsigned int index, unsigned int vmid) in dbgdev_address_watch_set_registers() argument
258 cntl->bitfields.vmid = (uint32_t) vmid; in dbgdev_address_watch_set_registers()
303 &cntl, i, pdd->qpd.vmid); in dbgdev_address_watch_nodiq()
307 pr_debug("\t\t%20s %08x\n", "vmid is :", pdd->qpd.vmid); in dbgdev_address_watch_nodiq()
319 cntl.bitfields.vmid); in dbgdev_address_watch_nodiq()
349 unsigned int vmid = 0; in dbgdev_address_watch_diq() local
398 vmid); in dbgdev_address_watch_diq()
402 pr_debug("\t\t%20s %08x\n", "vmid is :", vmid); in dbgdev_address_watch_diq()
416 cntl.bitfields.vmid); in dbgdev_address_watch_diq()
723 reg_sq_cmd.bits.vm_id = pdd->qpd.vmid; in dbgdev_wave_control_nodiq()
[all …]
Dkfd_queue.c38 pr_debug("Queue Process Vmid: %u\n", q->vmid); in print_queue_properties()
55 pr_debug("Queue Process Vmid: %u\n", q->properties.vmid); in print_queue()
Dkfd_device_queue_manager.c42 unsigned int pasid, unsigned int vmid);
119 dqm->dev->kgd, qpd->vmid, in program_sh_mem_settings()
191 qpd->vmid = allocated_vmid; in allocate_vmid()
192 q->properties.vmid = allocated_vmid; in allocate_vmid()
194 set_pasid_vmid_mapping(dqm, q->process->pasid, q->properties.vmid); in allocate_vmid()
201 qpd->vmid, in allocate_vmid()
222 return kdev->kfd2kgd->submit_ib(kdev->kgd, KGD_ENGINE_MEC1, qpd->vmid, in flush_texture_cache_nocpsch()
231 int bit = qpd->vmid - dqm->dev->vm_info.first_vmid_kfd; in deallocate_vmid()
241 set_pasid_vmid_mapping(dqm, 0, qpd->vmid); in deallocate_vmid()
244 qpd->vmid = 0; in deallocate_vmid()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gfx_v9.c95 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid,
100 unsigned int vmid);
137 uint8_t vmid);
139 uint8_t vmid);
140 static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid,
144 uint64_t va, uint32_t vmid);
146 static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid);
231 uint32_t queue, uint32_t vmid) in lock_srbm() argument
236 soc15_grbm_select(adev, mec, pipe, queue, vmid); in lock_srbm()
272 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, in kgd_program_sh_mem_settings() argument
[all …]
Damdgpu_amdkfd_gfx_v7.c80 uint32_t vmid:4; member
94 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid,
99 unsigned int vmid);
137 static bool get_atc_vmid_pasid_mapping_valid(struct kgd_dev *kgd, uint8_t vmid);
139 uint8_t vmid);
143 uint64_t va, uint32_t vmid);
144 static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid,
147 static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid);
237 uint32_t queue, uint32_t vmid) in lock_srbm() argument
240 uint32_t value = PIPEID(pipe) | MEID(mec) | VMID(vmid) | QUEUEID(queue); in lock_srbm()
[all …]
Damdgpu_amdkfd_gfx_v8.c54 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid,
59 unsigned int vmid);
96 uint8_t vmid);
98 uint8_t vmid);
101 uint64_t va, uint32_t vmid);
102 static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid,
105 static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid);
195 uint32_t queue, uint32_t vmid) in lock_srbm() argument
198 uint32_t value = PIPEID(pipe) | MEID(mec) | VMID(vmid) | QUEUEID(queue); in lock_srbm()
228 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, in kgd_program_sh_mem_settings() argument
[all …]
Damdgpu_trace.h85 __field(unsigned, vmid)
96 __entry->vmid = iv->vmid;
108 __entry->ring_id, __entry->vmid,
222 __field(u32, vmid)
231 __entry->vmid = job->vmid;
237 __entry->pasid, __entry->ring, __entry->vmid,
365 TP_PROTO(struct amdgpu_ring *ring, unsigned vmid,
367 TP_ARGS(ring, vmid, pd_addr),
370 __field(u32, vmid)
377 __entry->vmid = vmid;
[all …]
Dgmc_v9_0.c269 entry->src_id, entry->ring_id, entry->vmid, in gmc_v9_0_process_interrupt()
294 static uint32_t gmc_v9_0_get_invalidate_req(unsigned int vmid) in gmc_v9_0_get_invalidate_req() argument
300 PER_VMID_INVALIDATE_REQ, 1 << vmid); in gmc_v9_0_get_invalidate_req()
329 uint32_t vmid) in gmc_v9_0_flush_gpu_tlb() argument
339 u32 tmp = gmc_v9_0_get_invalidate_req(vmid); in gmc_v9_0_flush_gpu_tlb()
346 tmp &= 1 << vmid; in gmc_v9_0_flush_gpu_tlb()
357 tmp &= 1 << vmid; in gmc_v9_0_flush_gpu_tlb()
372 unsigned vmid, uint64_t pd_addr) in gmc_v9_0_emit_flush_gpu_tlb() argument
376 uint32_t req = gmc_v9_0_get_invalidate_req(vmid); in gmc_v9_0_emit_flush_gpu_tlb()
383 amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_lo32 + (2 * vmid), in gmc_v9_0_emit_flush_gpu_tlb()
[all …]
Damdgpu_gmc.h54 uint32_t vmid);
56 uint64_t (*emit_flush_gpu_tlb)(struct amdgpu_ring *ring, unsigned vmid,
59 void (*emit_pasid_mapping)(struct amdgpu_ring *ring, unsigned vmid,
Dgmc_v7_0.c432 static void gmc_v7_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid) in gmc_v7_0_flush_gpu_tlb() argument
435 WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); in gmc_v7_0_flush_gpu_tlb()
439 unsigned vmid, uint64_t pd_addr) in gmc_v7_0_emit_flush_gpu_tlb() argument
443 if (vmid < 8) in gmc_v7_0_emit_flush_gpu_tlb()
444 reg = mmVM_CONTEXT0_PAGE_TABLE_BASE_ADDR + vmid; in gmc_v7_0_emit_flush_gpu_tlb()
446 reg = mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + vmid - 8; in gmc_v7_0_emit_flush_gpu_tlb()
450 amdgpu_ring_emit_wreg(ring, mmVM_INVALIDATE_REQUEST, 1 << vmid); in gmc_v7_0_emit_flush_gpu_tlb()
455 static void gmc_v7_0_emit_pasid_mapping(struct amdgpu_ring *ring, unsigned vmid, in gmc_v7_0_emit_pasid_mapping() argument
458 amdgpu_ring_emit_wreg(ring, mmIH_VMID_0_LUT + vmid, pasid); in gmc_v7_0_emit_pasid_mapping()
761 u32 vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, VMID); in gmc_v7_0_vm_decode_fault() local
[all …]
Dvcn_v1_0.c995 unsigned vmid, bool ctx_switch) in vcn_v1_0_dec_ring_emit_ib() argument
1001 amdgpu_ring_write(ring, vmid); in vcn_v1_0_dec_ring_emit_ib()
1035 unsigned vmid, uint64_t pd_addr) in vcn_v1_0_dec_ring_emit_vm_flush() argument
1040 pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); in vcn_v1_0_dec_ring_emit_vm_flush()
1043 data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2; in vcn_v1_0_dec_ring_emit_vm_flush()
1152 struct amdgpu_ib *ib, unsigned int vmid, bool ctx_switch) in vcn_v1_0_enc_ring_emit_ib() argument
1155 amdgpu_ring_write(ring, vmid); in vcn_v1_0_enc_ring_emit_ib()
1172 unsigned int vmid, uint64_t pd_addr) in vcn_v1_0_enc_ring_emit_vm_flush() argument
1176 pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); in vcn_v1_0_enc_ring_emit_vm_flush()
1179 vcn_v1_0_enc_ring_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2, in vcn_v1_0_enc_ring_emit_vm_flush()
[all …]
Damdgpu_ib.c153 if (vm && !job->vmid) { in amdgpu_ib_schedule()
219 amdgpu_ring_emit_ib(ring, ib, job ? job->vmid : 0, in amdgpu_ib_schedule()
244 if (job && job->vmid) in amdgpu_ib_schedule()
245 amdgpu_vmid_reset(adev, ring->funcs->vmhub, job->vmid); in amdgpu_ib_schedule()
Dgmc_v8_0.c613 uint32_t vmid) in gmc_v8_0_flush_gpu_tlb() argument
616 WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); in gmc_v8_0_flush_gpu_tlb()
620 unsigned vmid, uint64_t pd_addr) in gmc_v8_0_emit_flush_gpu_tlb() argument
624 if (vmid < 8) in gmc_v8_0_emit_flush_gpu_tlb()
625 reg = mmVM_CONTEXT0_PAGE_TABLE_BASE_ADDR + vmid; in gmc_v8_0_emit_flush_gpu_tlb()
627 reg = mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + vmid - 8; in gmc_v8_0_emit_flush_gpu_tlb()
631 amdgpu_ring_emit_wreg(ring, mmVM_INVALIDATE_REQUEST, 1 << vmid); in gmc_v8_0_emit_flush_gpu_tlb()
636 static void gmc_v8_0_emit_pasid_mapping(struct amdgpu_ring *ring, unsigned vmid, in gmc_v8_0_emit_pasid_mapping() argument
639 amdgpu_ring_emit_wreg(ring, mmIH_VMID_0_LUT + vmid, pasid); in gmc_v8_0_emit_pasid_mapping()
983 u32 vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, VMID); in gmc_v8_0_vm_decode_fault() local
[all …]
Dgmc_v6_0.c360 static void gmc_v6_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid) in gmc_v6_0_flush_gpu_tlb() argument
362 WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); in gmc_v6_0_flush_gpu_tlb()
366 unsigned vmid, uint64_t pd_addr) in gmc_v6_0_emit_flush_gpu_tlb() argument
371 if (vmid < 8) in gmc_v6_0_emit_flush_gpu_tlb()
372 reg = mmVM_CONTEXT0_PAGE_TABLE_BASE_ADDR + vmid; in gmc_v6_0_emit_flush_gpu_tlb()
374 reg = mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + (vmid - 8); in gmc_v6_0_emit_flush_gpu_tlb()
378 amdgpu_ring_emit_wreg(ring, mmVM_INVALIDATE_REQUEST, 1 << vmid); in gmc_v6_0_emit_flush_gpu_tlb()
639 u32 vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, VMID); in gmc_v6_0_vm_decode_fault() local
649 protections, vmid, addr, in gmc_v6_0_vm_decode_fault()
Damdgpu_amdkfd.c441 uint32_t vmid, uint64_t gpu_addr, in amdgpu_amdkfd_submit_ib() argument
478 job->vmid = vmid; in amdgpu_amdkfd_submit_ib()
503 bool amdgpu_amdkfd_is_kfd_vmid(struct amdgpu_device *adev, u32 vmid) in amdgpu_amdkfd_is_kfd_vmid() argument
506 if ((1 << vmid) & compute_vmid_bitmap) in amdgpu_amdkfd_is_kfd_vmid()
Dvi.h30 u32 me, u32 pipe, u32 queue, u32 vmid);
Dcik.h30 u32 me, u32 pipe, u32 queue, u32 vmid);
Dsi.h30 u32 me, u32 pipe, u32 queue, u32 vmid);
/Linux-v4.19/drivers/gpu/drm/amd/include/
Dkgd_kfd_interface.h52 uint32_t vmid; member
309 void (*program_sh_mem_settings)(struct kgd_dev *kgd, uint32_t vmid,
314 unsigned int vmid);
360 uint8_t vmid);
363 uint8_t vmid);
368 uint64_t va, uint32_t vmid);
382 uint32_t vmid, uint32_t page_table_base);
398 int (*invalidate_tlbs_vmid)(struct kgd_dev *kgd, uint16_t vmid);
401 uint32_t vmid, uint64_t gpu_addr,
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_trace.h51 TP_PROTO(unsigned vmid, int ring),
52 TP_ARGS(vmid, ring),
54 __field(u32, vmid)
59 __entry->vmid = vmid;
62 TP_printk("vmid=%u, ring=%u", __entry->vmid, __entry->ring)
/Linux-v4.19/drivers/soc/qcom/
Drmtfs_mem.c160 u32 vmid; in qcom_rmtfs_mem_probe() local
210 ret = of_property_read_u32(node, "qcom,vmid", &vmid); in qcom_rmtfs_mem_probe()
215 perms[0].vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_probe()
217 perms[1].vmid = vmid; in qcom_rmtfs_mem_probe()
247 perm.vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_remove()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c167 int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, u8 vmid, u8 *port_num) in hns_mac_get_inner_port_num() argument
178 mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
186 mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
195 if (vmid >= mac_cb->dsaf_dev->rcb_common[0]->max_vfn) { in hns_mac_get_inner_port_num()
197 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
204 vm_queue_id = vmid * q_num_per_vf + in hns_mac_get_inner_port_num()
247 u32 vmid, char *addr) in hns_mac_change_vf_addr() argument
255 old_entry = &mac_cb->addr_entry_idx[vmid]; in hns_mac_change_vf_addr()
260 ret = hns_mac_get_inner_port_num(mac_cb, (u8)vmid, in hns_mac_change_vf_addr()
281 if ((mac_ctrl_drv->set_mac_addr) && (vmid == 0)) in hns_mac_change_vf_addr()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/reserved-memory/
Dqcom,rmtfs-mem.txt30 - qcom,vmid:
33 Definition: vmid of the remote processor, to set up memory protection.

1234