]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI iommu: iommu=pt is a valid early param
authorAlex Williamson <alex.williamson@hp.com>
Thu, 30 Jul 2009 22:15:18 +0000 (16:15 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 9 Sep 2009 20:29:28 +0000 (13:29 -0700)
This avoids a "Malformed early option 'iommu'" on boot when trying
to use pass-through mode.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/kernel/pci-dma.c

index 1a041bcf506bd8efd0d27a4e99e2003e07ff6445..ae13e34f724874469a4565a5bcfce7858b7cf4a3 100644 (file)
@@ -212,10 +212,8 @@ static __init int iommu_setup(char *p)
                if (!strncmp(p, "soft", 4))
                        swiotlb = 1;
 #endif
-               if (!strncmp(p, "pt", 2)) {
+               if (!strncmp(p, "pt", 2))
                        iommu_pass_through = 1;
-                       return 1;
-               }
 
                gart_parse_options(p);