mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC patch] clean up swiotlb check in intel_iommu_init
@ 2009-08-13  3:11 Luming Yu
  2009-08-13  3:25 ` FUJITA Tomonori
  2009-08-13  8:23 ` David Woodhouse
  0 siblings, 2 replies; 5+ messages in thread
From: Luming Yu @ 2009-08-13  3:11 UTC (permalink / raw)
  To: David Woodhouse, Yu, Fenghua, Luck, Tony, LKML, FUJITA Tomonori
  Cc: Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 955 bytes --]

Hi there,

Since swiotlb is an fall back option that might have
initialized. We don't need to stop intel_iommu_init
because of swiotlb..

Please review. If make sense, please apply.

**The patch is enclosed in text attachment*
**Using web client to send the patch* *
**below is for review, please apply attached  patch*/

Thanks,
Luming

Signed-off-by: Yu Luming <luming.yu@intel.com>

 intel-iommu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 2314ad7..246acb9 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -3194,7 +3194,7 @@ int __init intel_iommu_init(void)
 	 * Check the need for DMA-remapping initialization now.
 	 * Above initialization will also be used by Interrupt-remapping.
 	 */
-	if (no_iommu || (swiotlb && !iommu_pass_through) || dmar_disabled)
+	if (no_iommu || dmar_disabled)
 		return -ENODEV;

 	iommu_init_mempool();

[-- Attachment #2: 6 --]
[-- Type: application/octet-stream, Size: 496 bytes --]

diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 2314ad7..246acb9 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -3194,7 +3194,7 @@ int __init intel_iommu_init(void)
 	 * Check the need for DMA-remapping initialization now.
 	 * Above initialization will also be used by Interrupt-remapping.
 	 */
-	if (no_iommu || (swiotlb && !iommu_pass_through) || dmar_disabled)
+	if (no_iommu || dmar_disabled)
 		return -ENODEV;
 
 	iommu_init_mempool();

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-13  8:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-13  3:11 [RFC patch] clean up swiotlb check in intel_iommu_init Luming Yu
2009-08-13  3:25 ` FUJITA Tomonori
2009-08-13  6:02   ` Luming Yu
2009-08-13  8:23 ` David Woodhouse
2009-08-13  8:51   ` Luming Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®