Searched refs:pasid (Results 26 - 50 of 132) sorted by relevance

123456

/linux-master/drivers/misc/ocxl/
H A Docxl_internal.h72 int pasid; member in struct:ocxl_context
87 __be32 pasid; member in struct:ocxl_process_element
136 * @pasid: the PASID for the AFU context
141 int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid);
H A Dlink.c538 int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, argument
550 if (pasid > SPA_PASID_MAX)
554 pe_handle = pasid & SPA_PE_MASK;
576 pe->pasid = cpu_to_be32(pasid << (31 - 19));
595 trace_ocxl_init_mmu_notifier(pasid, mm->context.id);
624 trace_ocxl_context_add(current->pid, spa->spa_mem, pasid, pidr, tidr);
631 int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid) argument
638 if (pasid > SPA_PASID_MAX)
641 pe_handle = pasid
667 ocxl_link_remove_pe(void *link_handle, int pasid) argument
[all...]
/linux-master/drivers/iommu/intel/
H A Dsvm.c23 #include "pasid.h"
179 dev_pasid->pasid, true);
197 struct device *dev, ioasid_t pasid)
213 dev_pasid->pasid = pasid;
215 ret = cache_tag_assign_domain(to_dmar_domain(domain), dev, pasid);
219 /* Setup the pasid table: */
221 ret = intel_pasid_setup_first_level(iommu, dev, mm->pgd, pasid,
233 cache_tag_unassign_domain(to_dmar_domain(domain), dev, pasid); local
248 u64 pasid member in struct:page_req_dsc::__anon210::__anon211
196 intel_svm_set_dev_pasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid) argument
292 intel_drain_pasid_prq(struct device *dev, u32 pasid) argument
[all...]
H A Diommu.h429 #define QI_PC_PASID(pasid) (((u64)pasid) << 32)
441 #define QI_EIOTLB_PASID(pasid) (((u64)pasid) << 32)
462 #define QI_PGRP_PASID(pasid) (((u64)(pasid)) << 32)
773 struct pasid_table *pasid_table; /* pasid table */
784 ioasid_t pasid; member in struct:dev_pasid_info
786 struct dentry *debugfs_dentry; /* pointer to pasid directory dentry */
1027 context_set_sm_rid2pasid(struct context_entry *context, unsigned long pasid) argument
1134 ioasid_t pasid; member in struct:cache_tag
1159 intel_drain_pasid_prq(struct device *dev, u32 pasid) argument
[all...]
H A Ddebugfs.c18 #include "pasid.h"
24 u32 pasid; member in struct:tbl_walk
179 tbl_wlk->pasid, tbl_wlk->pasid_tbl_entry->val[2],
193 tbl_wlk->pasid = (dir_idx << PASID_PDE_SHIFT) + tbl_idx;
349 ioasid_t pasid)
404 dir_idx = pasid >> PASID_PDE_SHIFT;
405 tbl_idx = pasid & PASID_PTE_MASK;
446 seq_printf(m, "with pasid %x @0x%llx\n", pasid, pgd);
478 return domain_translation_struct_show(m, info, dev_pasid->pasid);
347 domain_translation_struct_show(struct seq_file *m, struct device_domain_info *info, ioasid_t pasid) argument
[all...]
/linux-master/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_pm4_headers_aldebaran.h38 uint32_t pasid:16; /* 0 - 15 */ member in struct:pm4_mes_map_process_aldebaran::__anon255::__anon256
H A Dkfd_events.h87 extern void kfd_signal_event_interrupt(u32 pasid, uint32_t partial_id,
H A Dkfd_pm4_headers.h59 uint32_t pasid:16; member in struct:pm4_map_process::__anon185::__anon186
108 uint32_t pasid:16; member in struct:pm4_map_process_scratch_kv::__anon192::__anon193
H A Dkfd_smi_events.h28 void kfd_smi_event_update_vmfault(struct kfd_node *dev, uint16_t pasid);
H A Dkfd_process.c283 dev->id, proc->pasid);
290 dev->kfd2kgd->get_cu_occupancy(dev->adev, proc->pasid, &wave_cnt,
301 if (strcmp(attr->name, "pasid") == 0) {
305 return snprintf(buffer, PAGE_SIZE, "%d\n", p->pasid);
862 "pasid");
1029 pr_debug("Releasing pdd (topology id %d) for process (pasid 0x%x)\n",
1030 pdd->dev->id, p->pasid);
1145 kfd_pasid_free(p->pasid);
1497 process->pasid = kfd_pasid_alloc();
1498 if (process->pasid
1787 kfd_lookup_process_by_pasid(u32 pasid) argument
2132 kfd_process_close_interrupt_drain(unsigned int pasid) argument
[all...]
H A Dkfd_events.c719 void kfd_signal_event_interrupt(u32 pasid, uint32_t partial_id, argument
729 struct kfd_process *p = kfd_lookup_process_by_pasid(pasid);
1130 "Sending SIGSEGV to process %d (pasid 0x%x)",
1131 p->lead_thread->pid, p->pasid);
1139 "Sending SIGTERM to process %d (pasid 0x%x)",
1140 p->lead_thread->pid, p->pasid);
1144 "Process %d (pasid 0x%x) got unhandled exception",
1145 p->lead_thread->pid, p->pasid);
1152 void kfd_signal_hw_exception_event(u32 pasid) argument
1159 struct kfd_process *p = kfd_lookup_process_by_pasid(pasid);
1168 kfd_signal_vm_fault_event(struct kfd_node *dev, u32 pasid, struct kfd_vm_fault_info *info, struct kfd_hsa_memory_exception_data *data) argument
1279 kfd_signal_poison_consumed_event(struct kfd_node *dev, u32 pasid) argument
[all...]
/linux-master/drivers/dma/idxd/
H A Dcdev.c45 unsigned int pasid; member in struct:idxd_user_context
55 static void idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid);
132 idxd_device_drain_pasid(idxd, ctx->pasid);
135 /* The wq disable in the disable pasid function will drain the wq */
138 dev_err(dev, "wq disable pasid failed.\n");
145 idxd_cdev_evl_drain_pasid(wq, ctx->pasid);
197 ptr = xa_cmpxchg(&wq->upasid_xa, ctx->pasid, ctx, NULL, GFP_KERNEL);
199 dev_warn(&wq->idxd->pdev->dev, "xarray cmpxchg failed for pasid %u\n",
200 ctx->pasid);
204 void idxd_user_counter_increment(struct idxd_wq *wq, u32 pasid, in argument
229 unsigned int pasid; local
333 idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid) argument
723 idxd_copy_cr(struct idxd_wq *wq, ioasid_t pasid, unsigned long addr, void *cr, int len) argument
[all...]
H A Dirq.c85 if (ie->pasid != IOMMU_PASID_INVALID)
86 desc.pasid = ie->pasid;
243 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULTS);
255 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULTS);
273 copied = idxd_copy_cr(wq, entry_head->pasid, entry_head->fault_addr,
287 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULT_FAILS);
296 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULT_FAILS);
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gmc.h132 /* flush the vm tlb via pasid */
133 void (*flush_gpu_tlb_pasid)(struct amdgpu_device *adev, uint16_t pasid,
141 unsigned pasid);
351 #define amdgpu_gmc_emit_pasid_mapping(r, vmid, pasid) (r)->adev->gmc.gmc_funcs->emit_pasid_mapping((r), (vmid), (pasid))
408 uint16_t pasid, uint64_t timestamp);
410 uint16_t pasid);
417 int amdgpu_gmc_flush_gpu_tlb_pasid(struct amdgpu_device *adev, uint16_t pasid,
H A Damdgpu_mes.c264 int amdgpu_mes_create_process(struct amdgpu_device *adev, int pasid, argument
296 r = idr_alloc(&adev->mes.pasid_idr, process, pasid, pasid + 1,
299 DRM_ERROR("failed to lock pasid=%d\n", pasid);
305 process->pasid = pasid;
322 void amdgpu_mes_destroy_process(struct amdgpu_device *adev, int pasid) argument
337 process = idr_find(&adev->mes.pasid_idr, pasid);
339 DRM_WARN("pasid
387 amdgpu_mes_add_gang(struct amdgpu_device *adev, int pasid, struct amdgpu_mes_gang_properties *gprops, int *gang_id) argument
501 int r, pasid; local
530 int r, pasid; local
1065 int r, queue_id, pasid; local
1334 amdgpu_mes_test_create_gang_and_queues(struct amdgpu_device *adev, int pasid, int *gang_id, int queue_type, int num_queue, struct amdgpu_ring **added_rings, struct amdgpu_mes_ctx_data *ctx_data) argument
1409 int i, r, pasid, k = 0; local
[all...]
H A Damdgpu_amdkfd_gfx_v9.h27 int kgd_gfx_v9_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid,
55 void kgd_gfx_v9_get_cu_occupancy(struct amdgpu_device *adev, int pasid,
H A Damdgpu_gmc.c378 * amdgpu_gmc_fault_key - get hask key from vm fault address and pasid
381 * @pasid: 16 bit process address space identifier
383 static inline uint64_t amdgpu_gmc_fault_key(uint64_t addr, uint16_t pasid) argument
385 return addr << 4 | pasid;
394 * @pasid: PASID of the process causing the fault
403 uint16_t pasid, uint64_t timestamp)
406 uint64_t stamp, key = amdgpu_gmc_fault_key(addr, pasid);
466 * @pasid: PASID of the process causing the fault
472 uint16_t pasid)
475 uint64_t key = amdgpu_gmc_fault_key(addr, pasid);
401 amdgpu_gmc_filter_faults(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih, uint64_t addr, uint16_t pasid, uint64_t timestamp) argument
471 amdgpu_gmc_filter_faults_remove(struct amdgpu_device *adev, uint64_t addr, uint16_t pasid) argument
678 amdgpu_gmc_flush_gpu_tlb_pasid(struct amdgpu_device *adev, uint16_t pasid, uint32_t flush_type, bool all_hub, uint32_t inst) argument
[all...]
H A Damdgpu_job.h60 unsigned pasid; member in struct:amdgpu_job
H A Damdgpu_fdinfo.c84 drm_printf(p, "pasid:\t%u\n", fpriv->vm.pasid);
/linux-master/drivers/iommu/amd/
H A Dppr.c88 "pasid=0x%05llx address=0x%llx flags=0x%04llx tag=0x%03llx]\n",
96 "pasid=0x%05llx address=0x%llx flags=0x%04llx tag=0x%03llx]\n",
130 event.fault.prm.pasid = PPR_PASID(raw[0]);
138 if (event.fault.prm.pasid == 0 ||
139 event.fault.prm.pasid >= dev_data->max_pasids) {
141 event.fault.prm.pasid, pdev->dev.id);
246 amd_iommu_complete_ppr(dev, resp->pasid, resp->code, resp->grpid);
/linux-master/include/misc/
H A Docxl.h412 int afu_control_offset, int pasid);
449 int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr,
457 int ocxl_link_remove_pe(void *link_handle, int pasid);
/linux-master/drivers/iommu/
H A Dio-pgfault.c68 domain = iommu_get_domain_for_dev_pasid(dev, fault->prm.pasid, 0);
77 "iopf (pasid %d) without domain attached or handler installed\n",
78 fault->prm.pasid);
275 .pasid = iopf->fault.prm.pasid,
419 .pasid = iopf->fault.prm.pasid,
/linux-master/include/uapi/misc/
H A Docxl.h41 __u32 pasid; /* PASID assigned to the current context */ member in struct:ocxl_ioctl_metadata
/linux-master/include/linux/
H A Diommu.h63 * @pasid: Process Address Space ID
74 u32 pasid; member in struct:iommu_fault_page_request
108 * @pasid: Process Address Space ID
113 u32 pasid; member in struct:iommu_page_response
539 * pasid, so that any DMA transactions with this pasid
583 void (*remove_dev_pasid)(struct device *dev, ioasid_t pasid,
610 * @set_dev_pasid: set an iommu domain to a pasid of device
636 ioasid_t pasid);
789 struct device *dev, ioasid_t pasid);
1003 u32 pasid; member in struct:iommu_mm_data
1390 iommu_attach_device_pasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid) argument
1396 iommu_detach_device_pasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid) argument
1402 iommu_get_domain_for_dev_pasid(struct device *dev, ioasid_t pasid, unsigned int type) argument
1413 iommu_free_global_pasid(ioasid_t pasid) argument
[all...]
H A Duacce.h87 * @pasid: pasid associated to the mm
99 u32 pasid; member in struct:uacce_queue

Completed in 400 milliseconds

123456