/linux-master/drivers/misc/ocxl/ |
H A D | link.c | 538 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/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gmc.h | 132 /* 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 D | amdgpu_mes.c | 254 int amdgpu_mes_create_process(struct amdgpu_device *adev, int pasid, argument 286 r = idr_alloc(&adev->mes.pasid_idr, process, pasid, pasid + 1, 289 DRM_ERROR("failed to lock pasid=%d\n", pasid); 295 process->pasid = pasid; 312 void amdgpu_mes_destroy_process(struct amdgpu_device *adev, int pasid) argument 327 process = idr_find(&adev->mes.pasid_idr, pasid); 329 DRM_WARN("pasid 377 amdgpu_mes_add_gang(struct amdgpu_device *adev, int pasid, struct amdgpu_mes_gang_properties *gprops, int *gang_id) argument 491 int r, pasid; local 520 int r, pasid; local 1035 int r, queue_id, pasid; local 1304 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 1379 int i, r, pasid, k = 0; local [all...] |
H A D | amdgpu_trace.h | 88 __field(unsigned, pasid) 100 __entry->pasid = iv->pasid; 107 "timestamp: %llu pasid:%u src_data: %08x %08x %08x %08x", 110 __entry->timestamp, __entry->pasid, 223 __field(u32, pasid) 233 __entry->pasid = vm->pasid; 240 TP_printk("pasid=%d, ring=%s, id=%u, hub=%u, pd_addr=%010Lx needs_flush=%u", 241 __entry->pasid, __get_st [all...] |
H A D | amdgpu_amdkfd_gfx_v9.h | 27 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 D | amdgpu_gmc.c | 378 * 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 D | amdgpu_job.h | 60 unsigned pasid; member in struct:amdgpu_job
|
H A D | amdgpu_fdinfo.c | 84 drm_printf(p, "pasid:\t%u\n", fpriv->vm.pasid);
|
H A D | gfx_v11_0_3.c | 84 /* Workaround: when vmid and pasid are both zero, trigger gpu reset in KGD. */ 87 !entry->vmid && !entry->pasid) {
|
H A D | amdgpu_mes.h | 147 int pasid; member in struct:amdgpu_mes_process 343 int amdgpu_mes_create_process(struct amdgpu_device *adev, int pasid, 345 void amdgpu_mes_destroy_process(struct amdgpu_device *adev, int pasid); 347 int amdgpu_mes_add_gang(struct amdgpu_device *adev, int pasid,
|
/linux-master/include/misc/ |
H A D | ocxl.h | 412 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 D | io-pgfault.c | 68 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/drivers/iommu/intel/ |
H A D | iommu.h | 427 #define QI_PC_PASID(pasid) (((u64)pasid) << 32) 439 #define QI_EIOTLB_PASID(pasid) (((u64)pasid) << 32) 461 #define QI_PGRP_PASID(pasid) (((u64)(pasid)) << 32) 764 struct pasid_table *pasid_table; /* pasid table */ 775 ioasid_t pasid; member in struct:dev_pasid_info 777 struct dentry *debugfs_dentry; /* pointer to pasid directory dentry */ 1018 context_set_sm_rid2pasid(struct context_entry *context, unsigned long pasid) argument 1117 u32 pasid; member in struct:intel_svm 1122 intel_drain_pasid_prq(struct device *dev, u32 pasid) argument 1128 intel_svm_remove_dev_pasid(struct device *dev, ioasid_t pasid) argument [all...] |
H A D | debugfs.c | 18 #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/include/uapi/misc/ |
H A D | ocxl.h | 41 __u32 pasid; /* PASID assigned to the current context */ member in struct:ocxl_ioctl_metadata
|
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_smi_events.h | 28 void kfd_smi_event_update_vmfault(struct kfd_node *dev, uint16_t pasid);
|
H A D | kfd_process.c | 283 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); 854 "pasid"); 1021 pr_debug("Releasing pdd (topology id %d) for process (pasid 0x%x)\n", 1022 pdd->dev->id, p->pasid); 1137 kfd_pasid_free(p->pasid); 1489 process->pasid = kfd_pasid_alloc(); 1490 if (process->pasid 1779 kfd_lookup_process_by_pasid(u32 pasid) argument 2124 kfd_process_close_interrupt_drain(unsigned int pasid) argument [all...] |
H A D | kfd_events.c | 719 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...] |
H A D | kfd_pm4_headers_vi.h | 154 uint32_t pasid:16; member in struct:pm4_mes_map_process::__anon307::__anon308 305 uint32_t pasid:16; member in struct:pm4_mes_query_status::__anon321::__anon322 369 uint32_t pasid:16; member in struct:pm4_mes_unmap_queues::__anon327::__anon328
|
H A D | kfd_packet_manager_v9.c | 47 packet->bitfields2.pasid = qpd->pqm->process->pasid; 102 packet->bitfields2.pasid = qpd->pqm->process->pasid; 356 packet->bitfields3a.pasid = filter_param;
|
/linux-master/include/linux/ |
H A D | iommu.h | 63 * @pasid: Process Address Space ID 75 u32 pasid; member in struct:iommu_fault_page_request 109 * @pasid: Process Address Space ID 114 u32 pasid; member in struct:iommu_page_response 539 * pasid, so that any DMA transactions with this pasid 581 void (*remove_dev_pasid)(struct device *dev, ioasid_t pasid); 607 * @set_dev_pasid: set an iommu domain to a pasid of device 633 ioasid_t pasid); 786 struct device *dev, ioasid_t pasid); 1000 u32 pasid; member in struct:iommu_mm_data 1387 iommu_attach_device_pasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid) argument 1393 iommu_detach_device_pasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid) argument 1399 iommu_get_domain_for_dev_pasid(struct device *dev, ioasid_t pasid, unsigned int type) argument 1410 iommu_free_global_pasid(ioasid_t pasid) argument [all...] |
H A D | uacce.h | 87 * @pasid: pasid associated to the mm 99 u32 pasid; member in struct:uacce_queue
|
/linux-master/drivers/dma/idxd/ |
H A D | irq.c | 85 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);
|
H A D | init.c | 114 ie->pasid = IOMMU_PASID_INVALID; 566 ioasid_t pasid; local 577 pasid = iommu_alloc_global_pasid(dev); 578 if (pasid == IOMMU_PASID_INVALID) 585 ret = iommu_attach_device_pasid(domain, dev, pasid); 587 dev_err(dev, "failed to attach device pasid %d, domain type %d", 588 pasid, domain->type); 589 iommu_free_global_pasid(pasid); 595 idxd->pasid = pasid; [all...] |
H A D | registers.h | 273 u64 pasid:20; member in struct:sw_err_reg::__anon14 317 u64 pasid:20; member in struct:evlcfg_reg::__anon16 332 u32 pasid:20; member in struct:msix_perm::__anon17 377 u32 pasid:20; member in struct:wqcfg::__anon19 597 u64 pasid:20; member in struct:__evl_entry
|