Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-6.6/drivers/dma/idxd/
H A Dcdev.c45 unsigned int pasid; member
55 static void idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid);
132 idxd_device_drain_pasid(idxd, ctx->pasid); in idxd_file_dev_release()
135 /* The wq disable in the disable pasid function will drain the wq */ in idxd_file_dev_release()
138 dev_err(dev, "wq disable pasid failed.\n"); in idxd_file_dev_release()
145 idxd_cdev_evl_drain_pasid(wq, ctx->pasid); in idxd_file_dev_release()
197 ptr = xa_cmpxchg(&wq->upasid_xa, ctx->pasid, ctx, NULL, GFP_KERNEL); in idxd_xa_pasid_remove()
199 dev_warn(&wq->idxd->pdev->dev, "xarray cmpxchg failed for pasid %u\n", in idxd_xa_pasid_remove()
200 ctx->pasid); in idxd_xa_pasid_remove()
204 void idxd_user_counter_increment(struct idxd_wq *wq, u32 pasid, in argument
229 unsigned int pasid; idxd_cdev_open() local
333 idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid) idxd_cdev_evl_drain_pasid() argument
640 idxd_copy_cr(struct idxd_wq *wq, ioasid_t pasid, unsigned long addr, void *cr, int len) idxd_copy_cr() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_trace.h88 __field(unsigned, pasid)
100 __entry->pasid = iv->pasid;
107 "timestamp: %llu pasid:%u src_data: %08x %08x %08x %08x",
110 __entry->timestamp, __entry->pasid,
221 __field(u32, pasid)
231 __entry->pasid = vm->pasid;
238 TP_printk("pasid=%d, ring=%s, id=%u, hub=%u, pd_addr=%010Lx needs_flush=%u",
239 __entry->pasid, __get_st
[all...]
H A Damdgpu_gmc.h114 /* flush the vm tlb via pasid */
115 int (*flush_gpu_tlb_pasid)(struct amdgpu_device *adev, uint16_t pasid,
122 unsigned pasid);
246 #define amdgpu_gmc_flush_gpu_tlb_pasid(adev, pasid, type, allhub) \
248 ((adev), (pasid), (type), (allhub)))
250 #define amdgpu_gmc_emit_pasid_mapping(r, vmid, pasid) (r)->adev->gmc.gmc_funcs->emit_pasid_mapping((r), (vmid), (pasid))
298 uint16_t pasid, uint64_t timestamp);
H A Damdgpu_ids.h61 unsigned pasid; member
74 void amdgpu_pasid_free(u32 pasid);
76 u32 pasid);
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_trace.h88 __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 Damdgpu_gmc.h130 /* flush the vm tlb via pasid */
131 int (*flush_gpu_tlb_pasid)(struct amdgpu_device *adev, uint16_t pasid,
139 unsigned pasid);
339 #define amdgpu_gmc_flush_gpu_tlb_pasid(adev, pasid, type, allhub, inst) \
341 ((adev), (pasid), (type), (allhub), (inst)))
343 #define amdgpu_gmc_emit_pasid_mapping(r, vmid, pasid) (r)->adev->gmc.gmc_funcs->emit_pasid_mapping((r), (vmid), (pasid))
397 uint16_t pasid, uint64_t timestamp);
399 uint16_t pasid);
H A Damdgpu_mes.c220 int amdgpu_mes_create_process(struct amdgpu_device *adev, int pasid, in amdgpu_mes_create_process() argument
252 r = idr_alloc(&adev->mes.pasid_idr, process, pasid, pasid + 1, in amdgpu_mes_create_process()
255 DRM_ERROR("failed to lock pasid=%d\n", pasid); in amdgpu_mes_create_process()
261 process->pasid = pasid; in amdgpu_mes_create_process()
278 void amdgpu_mes_destroy_process(struct amdgpu_device *adev, int pasid) in amdgpu_mes_destroy_process() argument
293 process = idr_find(&adev->mes.pasid_idr, pasid); in amdgpu_mes_destroy_process()
295 DRM_WARN("pasid in amdgpu_mes_destroy_process()
343 amdgpu_mes_add_gang(struct amdgpu_device *adev, int pasid, struct amdgpu_mes_gang_properties *gprops, int *gang_id) amdgpu_mes_add_gang() argument
457 int r, pasid; amdgpu_mes_suspend() local
486 int r, pasid; amdgpu_mes_resume() local
1001 int r, queue_id, pasid; amdgpu_mes_add_ring() local
1269 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) amdgpu_mes_test_create_gang_and_queues() argument
1344 int i, r, pasid, k = 0; amdgpu_mes_self_test() local
[all...]
H A Damdgpu_ids.h61 unsigned pasid; member
75 void amdgpu_pasid_free(u32 pasid);
77 u32 pasid);
/kernel/linux/linux-5.10/arch/csky/include/asm/
H A Dasid.h33 void asid_new_context(struct asid_info *info, atomic64_t *pasid,
39 * @pasid: Pointer to the current ASID batch
43 atomic64_t *pasid, unsigned int cpu, in asid_check_context()
48 asid = atomic64_read(pasid); in asid_check_context()
71 asid_new_context(info, pasid, cpu, mm); in asid_check_context()
42 asid_check_context(struct asid_info *info, atomic64_t *pasid, unsigned int cpu, struct mm_struct *mm) asid_check_context() argument
/kernel/linux/linux-6.6/arch/csky/include/asm/
H A Dasid.h33 void asid_new_context(struct asid_info *info, atomic64_t *pasid,
39 * @pasid: Pointer to the current ASID batch
43 atomic64_t *pasid, unsigned int cpu, in asid_check_context()
48 asid = atomic64_read(pasid); in asid_check_context()
71 asid_new_context(info, pasid, cpu, mm); in asid_check_context()
42 asid_check_context(struct asid_info *info, atomic64_t *pasid, unsigned int cpu, struct mm_struct *mm) asid_check_context() argument
/kernel/linux/linux-5.10/arch/csky/mm/
H A Dasid.c79 static u64 new_context(struct asid_info *info, atomic64_t *pasid, in new_context() argument
83 u64 asid = atomic64_read(pasid); in new_context()
133 * @pasid: Pointer to the current ASID batch allocated. It will be updated
137 void asid_new_context(struct asid_info *info, atomic64_t *pasid, in asid_new_context() argument
145 asid = atomic64_read(pasid); in asid_new_context()
147 asid = new_context(info, pasid, mm); in asid_new_context()
148 atomic64_set(pasid, asid); in asid_new_context()
/kernel/linux/linux-6.6/arch/csky/mm/
H A Dasid.c79 static u64 new_context(struct asid_info *info, atomic64_t *pasid, in new_context() argument
83 u64 asid = atomic64_read(pasid); in new_context()
133 * @pasid: Pointer to the current ASID batch allocated. It will be updated
137 void asid_new_context(struct asid_info *info, atomic64_t *pasid, in asid_new_context() argument
145 asid = atomic64_read(pasid); in asid_new_context()
147 asid = new_context(info, pasid, mm); in asid_new_context()
148 atomic64_set(pasid, asid); in asid_new_context()
/kernel/linux/linux-5.10/drivers/iommu/amd/
H A Damd_iommu.h58 extern int amd_iommu_flush_page(struct iommu_domain *dom, u32 pasid,
60 extern int amd_iommu_flush_tlb(struct iommu_domain *dom, u32 pasid);
61 extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, u32 pasid,
63 extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, u32 pasid);
79 extern int amd_iommu_complete_ppr(struct pci_dev *pdev, u32 pasid,
/kernel/linux/linux-5.10/include/uapi/linux/
H A Diommu.h63 * @pasid: Process Address Space ID
75 __u32 pasid; member
88 * @pasid: Process Address Space ID
100 __u32 pasid; member
146 * @pasid: Process Address Space ID
156 __u32 pasid; member
173 * - If the PASID bit is set, the @pasid field is populated and the invalidation
183 * @pasid: process address space ID
195 __u64 pasid; member
205 * - If the PASID bit is set, the @pasid fiel
221 __u64 pasid; global() member
[all...]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Diommu.h47 __u32 pasid; member
58 __u32 pasid; member
84 __u32 pasid; member
100 __u64 pasid; member
110 __u64 pasid; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Diommu.h47 __u32 pasid; member
58 __u32 pasid; member
84 __u32 pasid; member
100 __u64 pasid; member
110 __u64 pasid; member
/kernel/linux/linux-5.10/include/linux/
H A Damd-iommu.h74 * @pasid: The PASID on the device the task should be bound to
79 extern int amd_iommu_bind_pasid(struct pci_dev *pdev, u32 pasid,
86 * @pasid: The PASID to unbind
91 extern void amd_iommu_unbind_pasid(struct pci_dev *pdev, u32 pasid);
117 u32 pasid,
159 * a pasid context. This call-back is
169 typedef void (*amd_iommu_invalidate_ctx)(struct pci_dev *pdev, u32 pasid);
/kernel/linux/linux-6.6/include/linux/
H A Damd-iommu.h57 * @pasid: The PASID on the device the task should be bound to
62 extern int amd_iommu_bind_pasid(struct pci_dev *pdev, u32 pasid,
69 * @pasid: The PASID to unbind
74 extern void amd_iommu_unbind_pasid(struct pci_dev *pdev, u32 pasid);
100 u32 pasid,
142 * a pasid context. This call-back is
152 typedef void (*amd_iommu_invalidate_ctx)(struct pci_dev *pdev, u32 pasid);
/kernel/linux/linux-6.6/drivers/misc/ocxl/
H A Dlink.c538 int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, in ocxl_link_add_pe() argument
550 if (pasid > SPA_PASID_MAX) in ocxl_link_add_pe()
554 pe_handle = pasid & SPA_PE_MASK; in ocxl_link_add_pe()
576 pe->pasid = cpu_to_be32(pasid << (31 - 19)); in ocxl_link_add_pe()
595 trace_ocxl_init_mmu_notifier(pasid, mm->context.id); in ocxl_link_add_pe()
624 trace_ocxl_context_add(current->pid, spa->spa_mem, pasid, pidr, tidr); in ocxl_link_add_pe()
631 int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid) in ocxl_link_update_pe() argument
638 if (pasid > SPA_PASID_MAX) in ocxl_link_update_pe()
641 pe_handle = pasid in ocxl_link_update_pe()
667 ocxl_link_remove_pe(void *link_handle, int pasid) ocxl_link_remove_pe() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_process.c283 dev->id, proc->pasid); in kfd_get_cu_occupancy()
290 dev->kfd2kgd->get_cu_occupancy(dev->kgd, proc->pasid, &wave_cnt, in kfd_get_cu_occupancy()
301 if (strcmp(attr->name, "pasid") == 0) { in kfd_procfs_show()
305 return snprintf(buffer, PAGE_SIZE, "%d\n", p->pasid); in kfd_procfs_show()
796 process->attr_pasid.name = "pasid"; in kfd_create_process()
801 pr_warn("Creating pasid for pid %d failed", in kfd_create_process()
914 pr_debug("Releasing pdd (topology id %d) for process (pasid 0x%x)\n", in kfd_process_destroy_pdds()
915 pdd->dev->id, p->pasid); in kfd_process_destroy_pdds()
996 kfd_pasid_free(p->pasid); in kfd_process_wq_release()
1049 if (dev && dev->dbgmgr && dev->dbgmgr->pasid in kfd_process_notifier_release()
1473 kfd_lookup_process_by_pasid(u32 pasid) kfd_lookup_process_by_pasid() argument
[all...]
H A Dkfd_pasid.c66 void kfd_pasid_free(u32 pasid) in kfd_pasid_free() argument
68 amdgpu_pasid_free(pasid); in kfd_pasid_free()
/kernel/linux/linux-6.6/drivers/iommu/amd/
H A Damd_iommu.h58 int amd_iommu_flush_page(struct iommu_domain *dom, u32 pasid, u64 address);
63 int amd_iommu_flush_tlb(struct iommu_domain *dom, u32 pasid);
64 int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, u32 pasid,
66 int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, u32 pasid);
81 int amd_iommu_complete_ppr(struct pci_dev *pdev, u32 pasid,
/kernel/linux/linux-6.6/include/uapi/linux/
H A Diommu.h63 * @pasid: Process Address Space ID
75 __u32 pasid; member
88 * @pasid: Process Address Space ID
100 __u32 pasid; member
146 * @pasid: Process Address Space ID
156 __u32 pasid; member
/kernel/linux/linux-6.6/drivers/iommu/intel/
H A Diommu.h426 #define QI_PC_PASID(pasid) (((u64)pasid) << 32)
438 #define QI_EIOTLB_PASID(pasid) (((u64)pasid) << 32)
460 #define QI_PGRP_PASID(pasid) (((u64)(pasid)) << 32)
721 struct pasid_table *pasid_table; /* pasid table */
727 ioasid_t pasid; member
822 void qi_flush_piotlb(struct intel_iommu *iommu, u16 did, u32 pasid, u64 addr,
826 u32 pasid, u1
871 u32 pasid; global() member
876 intel_drain_pasid_prq(struct device *dev, u32 pasid) intel_drain_pasid_prq() argument
882 intel_svm_remove_dev_pasid(struct device *dev, ioasid_t pasid) intel_svm_remove_dev_pasid() argument
[all...]
/kernel/linux/linux-5.10/drivers/misc/ocxl/
H A Dlink.c496 int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, in ocxl_link_add_pe() argument
508 if (pasid > SPA_PASID_MAX) in ocxl_link_add_pe()
512 pe_handle = pasid & SPA_PE_MASK; in ocxl_link_add_pe()
569 trace_ocxl_context_add(current->pid, spa->spa_mem, pasid, pidr, tidr); in ocxl_link_add_pe()
576 int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid) in ocxl_link_update_pe() argument
583 if (pasid > SPA_PASID_MAX) in ocxl_link_update_pe()
586 pe_handle = pasid & SPA_PE_MASK; in ocxl_link_update_pe()
612 int ocxl_link_remove_pe(void *link_handle, int pasid) in ocxl_link_remove_pe() argument
620 if (pasid > SPA_PASID_MAX) in ocxl_link_remove_pe()
641 pe_handle = pasid in ocxl_link_remove_pe()
[all...]

Completed in 24 milliseconds

12345678910