Re: [PATCH] iommu: Add Kconfig help text for IOMMU_SVA

From: Baolu Lu
Date: Mon May 08 2023 - 21:56:11 EST


On 5/9/23 4:21 AM, Jacob Pan wrote:
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index db98c3f86e8c..7106f3af74ee 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -153,9 +153,13 @@ config IOMMU_DMA
select IRQ_MSI_IOMMU
select NEED_SG_DMA_LENGTH
+config IOMMU_MM_PASID
+ bool
+
# Shared Virtual Addressing
config IOMMU_SVA
bool
+ select IOMMU_MM_PASID
config FSL_PAMU
bool "Freescale IOMMU support"
diff --git a/drivers/iommu/intel/Kconfig b/drivers/iommu/intel/Kconfig
index 2e56bd79f589..b4d7bd68a911 100644
--- a/drivers/iommu/intel/Kconfig
+++ b/drivers/iommu/intel/Kconfig
@@ -50,6 +50,7 @@ config INTEL_IOMMU_SVM
depends on X86_64
select MMU_NOTIFIER
select IOMMU_SVA
+ select IOMMU_MM_PASID

IOMMU_SVA has already selected IOMMU_MM_PASID, so there's no need to
select it again here?

IOMMU_SVA selects IOMMU_MM_PASID, the vt-d driver itself has no need to
know about this.

help
Shared Virtual Memory (SVM) provides a facility for devices
to access DMA resources through process address space by

Best regards,
baolu