/linux-master/drivers/misc/ocxl/ |
H A D | Makefile | 4 ocxl-y += main.o pci.o config.o file.o pasid.o mmio.o
|
/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/arch/csky/include/asm/ |
H A D | asid.h | 33 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, 48 asid = atomic64_read(pasid); 71 asid_new_context(info, pasid, cpu, mm); 42 asid_check_context(struct asid_info *info, atomic64_t *pasid, unsigned int cpu, struct mm_struct *mm) argument
|
/linux-master/arch/csky/mm/ |
H A D | asid.c | 79 static u64 new_context(struct asid_info *info, atomic64_t *pasid, argument 83 u64 asid = atomic64_read(pasid); 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, argument 145 asid = atomic64_read(pasid); 147 asid = new_context(info, pasid, mm); 148 atomic64_set(pasid, asid);
|
/linux-master/arch/x86/events/amd/ |
H A D | iommu.c | 54 PMU_FORMAT_ATTR(pasid, "config:40-59");
|
/linux-master/arch/x86/include/asm/fpu/ |
H A D | types.h | 311 u64 pasid; member in struct:ia32_pasid_state
|
/linux-master/arch/x86/kernel/ |
H A D | traps.c | 571 u32 pasid; local 596 pasid = mm_get_enqcmd_pasid(current->mm); 605 wrmsrl(MSR_IA32_PASID, pasid | MSR_IA32_PASID_VALID);
|
/linux-master/drivers/crypto/hisilicon/ |
H A D | qm.c | 1911 static int qm_sq_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) argument 1928 sqc.pasid = cpu_to_le16(pasid); 1937 static int qm_cq_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) argument 1958 cqc.pasid = cpu_to_le16(pasid); 1966 static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) argument 1972 ret = qm_sq_ctx_cfg(qp, qp_id, pasid); 1976 return qm_cq_ctx_cfg(qp, qp_id, pasid); 1984 u32 pasid local [all...] |
H A D | qm_common.h | 34 __le16 pasid; member in struct:qm_sqc 49 __le16 pasid; member in struct:qm_cqc
|
/linux-master/drivers/dma/idxd/ |
H A D | cdev.c | 45 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 647 idxd_copy_cr(struct idxd_wq *wq, ioasid_t pasid, unsigned long addr, void *cr, int len) argument [all...] |
H A D | debugfs.c | 35 "wq idx %u op %#x pasid %u batch idx %u\n" 40 entry->e.pasid, entry->e.batch_idx, entry->e.fault_addr);
|
H A D | device.c | 304 static void __idxd_wq_set_pasid_locked(struct idxd_wq *wq, int pasid) argument 314 wqcfg.pasid = pasid; 320 int idxd_wq_set_pasid(struct idxd_wq *wq, int pasid) argument 328 __idxd_wq_set_pasid_locked(wq, pasid); 352 wqcfg.pasid = 0; 585 void idxd_device_drain_pasid(struct idxd_device *idxd, int pasid) argument 590 operand = pasid; 593 dev_dbg(dev, "pasid %d drained\n", pasid); 1430 u32 pasid = wq_dedicated(wq) ? idxd->pasid : 0; local [all...] |
H A D | idxd.h | 98 ioasid_t pasid; member in struct:idxd_irq_entry 339 unsigned int pasid; member in struct:idxd_device 754 void idxd_device_drain_pasid(struct idxd_device *idxd, int pasid); 771 int idxd_wq_set_pasid(struct idxd_wq *wq, int pasid); 794 int idxd_copy_cr(struct idxd_wq *wq, ioasid_t pasid, unsigned long addr, 796 void idxd_user_counter_increment(struct idxd_wq *wq, u32 pasid, int index);
|
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 | 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 | 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
|
H A D | submit.c | 22 desc->hw->pasid = idxd->pasid;
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd.h | 295 struct amdgpu_vm *avm, u32 pasid);
|
H A D | amdgpu_amdkfd_gc_9_4_3.c | 224 u32 pasid, unsigned int vmid, uint32_t xcc_inst) 239 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | 223 kgd_gfx_v9_4_3_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, unsigned int vmid, uint32_t xcc_inst) argument
|
H A D | amdgpu_amdkfd_gfx_v10.c | 95 static int kgd_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument 105 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | 108 pr_debug("pasid 0x%x vmid %d, reg value %x\n", pasid, vmid, pasid_mapping); 128 /* Mapping vmid to pasid also for IH block */
|
H A D | amdgpu_amdkfd_gfx_v10_3.c | 96 static int set_pasid_vmid_mapping_v10_3(struct amdgpu_device *adev, unsigned int pasid, argument 99 uint32_t value = pasid << IH_VMID_0_LUT__PASID__SHIFT; 101 /* Mapping vmid to pasid also for IH block */ 102 pr_debug("mapping vmid %d -> pasid %d in IH block for GFX client\n", 103 vmid, pasid);
|
H A D | amdgpu_amdkfd_gfx_v11.c | 92 static int set_pasid_vmid_mapping_v11(struct amdgpu_device *adev, unsigned int pasid, argument 95 uint32_t value = pasid << IH_VMID_0_LUT__PASID__SHIFT; 97 /* Mapping vmid to pasid also for IH block */ 98 pr_debug("mapping vmid %d -> pasid %d in IH block for GFX client\n", 99 vmid, pasid);
|
H A D | amdgpu_amdkfd_gfx_v7.c | 93 static int kgd_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument 102 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | 111 /* Mapping vmid to pasid also for IH block */
|
H A D | amdgpu_amdkfd_gfx_v8.c | 87 static int kgd_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument 97 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | 106 /* Mapping vmid to pasid also for IH block */
|
H A D | amdgpu_amdkfd_gfx_v9.c | 101 int kgd_gfx_v9_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument 111 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | 133 /* Mapping vmid to pasid also for IH block */ 150 /* Mapping vmid to pasid also for IH block */ 980 * process whose pasid is provided as a parameter. The process could have ZERO 984 * @pasid: Identifies the process for which this query call is invoked 986 * belong to process with given pasid 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 i 1024 kgd_gfx_v9_get_cu_occupancy(struct amdgpu_device *adev, int pasid, int *pasid_wave_cnt, int *max_waves_per_cu, uint32_t inst) argument [all...] |