2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 14:14:00 +08:00

iommu: Rename iommu-sva-lib.{c,h}

Rename iommu-sva-lib.c[h] to iommu-sva.c[h] as it contains all code
for SVA implementation in iommu core.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Tony Zhu <tony.zhu@intel.com>
Link: https://lore.kernel.org/r/20221031005917.45690-14-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Lu Baolu 2022-10-31 08:59:17 +08:00 committed by Joerg Roedel
parent 4bb4211e48
commit 757636ed26
9 changed files with 11 additions and 11 deletions

View File

@ -28,6 +28,6 @@ obj-$(CONFIG_FSL_PAMU) += fsl_pamu.o fsl_pamu_domain.o
obj-$(CONFIG_S390_IOMMU) += s390-iommu.o obj-$(CONFIG_S390_IOMMU) += s390-iommu.o
obj-$(CONFIG_HYPERV_IOMMU) += hyperv-iommu.o obj-$(CONFIG_HYPERV_IOMMU) += hyperv-iommu.o
obj-$(CONFIG_VIRTIO_IOMMU) += virtio-iommu.o obj-$(CONFIG_VIRTIO_IOMMU) += virtio-iommu.o
obj-$(CONFIG_IOMMU_SVA) += iommu-sva-lib.o io-pgfault.o obj-$(CONFIG_IOMMU_SVA) += iommu-sva.o io-pgfault.o
obj-$(CONFIG_SPRD_IOMMU) += sprd-iommu.o obj-$(CONFIG_SPRD_IOMMU) += sprd-iommu.o
obj-$(CONFIG_APPLE_DART) += apple-dart.o obj-$(CONFIG_APPLE_DART) += apple-dart.o

View File

@ -10,7 +10,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include "arm-smmu-v3.h" #include "arm-smmu-v3.h"
#include "../../iommu-sva-lib.h" #include "../../iommu-sva.h"
#include "../../io-pgtable-arm.h" #include "../../io-pgtable-arm.h"
struct arm_smmu_mmu_notifier { struct arm_smmu_mmu_notifier {

View File

@ -29,7 +29,7 @@
#include "arm-smmu-v3.h" #include "arm-smmu-v3.h"
#include "../../dma-iommu.h" #include "../../dma-iommu.h"
#include "../../iommu-sva-lib.h" #include "../../iommu-sva.h"
static bool disable_bypass = true; static bool disable_bypass = true;
module_param(disable_bypass, bool, 0444); module_param(disable_bypass, bool, 0444);

View File

@ -27,7 +27,7 @@
#include "iommu.h" #include "iommu.h"
#include "../dma-iommu.h" #include "../dma-iommu.h"
#include "../irq_remapping.h" #include "../irq_remapping.h"
#include "../iommu-sva-lib.h" #include "../iommu-sva.h"
#include "pasid.h" #include "pasid.h"
#include "cap_audit.h" #include "cap_audit.h"

View File

@ -24,7 +24,7 @@
#include "iommu.h" #include "iommu.h"
#include "pasid.h" #include "pasid.h"
#include "perf.h" #include "perf.h"
#include "../iommu-sva-lib.h" #include "../iommu-sva.h"
#include "trace.h" #include "trace.h"
static irqreturn_t prq_event_thread(int irq, void *d); static irqreturn_t prq_event_thread(int irq, void *d);

View File

@ -11,7 +11,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include "iommu-sva-lib.h" #include "iommu-sva.h"
/** /**
* struct iopf_queue - IO Page Fault queue * struct iopf_queue - IO Page Fault queue

View File

@ -6,7 +6,7 @@
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/iommu.h> #include <linux/iommu.h>
#include "iommu-sva-lib.h" #include "iommu-sva.h"
static DEFINE_MUTEX(iommu_sva_lock); static DEFINE_MUTEX(iommu_sva_lock);
static DECLARE_IOASID_SET(iommu_sva_pasid); static DECLARE_IOASID_SET(iommu_sva_pasid);

View File

@ -2,8 +2,8 @@
/* /*
* SVA library for IOMMU drivers * SVA library for IOMMU drivers
*/ */
#ifndef _IOMMU_SVA_LIB_H #ifndef _IOMMU_SVA_H
#define _IOMMU_SVA_LIB_H #define _IOMMU_SVA_H
#include <linux/ioasid.h> #include <linux/ioasid.h>
#include <linux/mm_types.h> #include <linux/mm_types.h>
@ -72,4 +72,4 @@ iommu_sva_handle_iopf(struct iommu_fault *fault, void *data)
return IOMMU_PAGE_RESP_INVALID; return IOMMU_PAGE_RESP_INVALID;
} }
#endif /* CONFIG_IOMMU_SVA */ #endif /* CONFIG_IOMMU_SVA */
#endif /* _IOMMU_SVA_LIB_H */ #endif /* _IOMMU_SVA_H */

View File

@ -33,7 +33,7 @@
#include "dma-iommu.h" #include "dma-iommu.h"
#include "iommu-sva-lib.h" #include "iommu-sva.h"
static struct kset *iommu_group_kset; static struct kset *iommu_group_kset;
static DEFINE_IDA(iommu_group_ida); static DEFINE_IDA(iommu_group_ida);