]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iommu/vt-d: Correctly disable Intel IOMMU force on
authorShaohua Li <shli@fb.com>
Thu, 8 Jun 2017 18:27:14 +0000 (11:27 -0700)
committerJoerg Roedel <jroedel@suse.de>
Thu, 15 Jun 2017 14:41:10 +0000 (16:41 +0200)
I made a mistake in commit bfd20f1. We should skip the force on with the
option enabled instead of vice versa. Not sure why this passed our
performance test, sorry.

Fixes: bfd20f1cc850 ('x86, iommu/vt-d: Add an option to disable Intel IOMMU force on')
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/x86/kernel/tboot.c

index 4b17240599093a6ec34c45e053ae665050d18e14..a4eb27918cebf99dc2415f7eec49c4838d6f9f41 100644 (file)
@@ -514,7 +514,7 @@ int tboot_force_iommu(void)
        if (!tboot_enabled())
                return 0;
 
-       if (!intel_iommu_tboot_noforce)
+       if (intel_iommu_tboot_noforce)
                return 1;
 
        if (no_iommu || swiotlb || dmar_disabled)