Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'iommu-fixes-v5.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu

Pull IOMMU fix from Joerg Roedel:
"Intel decided to leave the newly added Scalable Mode Feature
default-disabled for now. The patch here accomplishes that"

* tag 'iommu-fixes-v5.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
iommu/vt-d: Leave scalable mode default off

+7 -8
+3 -4
Documentation/admin-guide/kernel-parameters.txt
··· 1696 1696 By default, super page will be supported if Intel IOMMU 1697 1697 has the capability. With this option, super page will 1698 1698 not be supported. 1699 - sm_off [Default Off] 1700 - By default, scalable mode will be supported if the 1699 + sm_on [Default Off] 1700 + By default, scalable mode will be disabled even if the 1701 1701 hardware advertises that it has support for the scalable 1702 1702 mode translation. With this option set, scalable mode 1703 - will not be used even on hardware which claims to support 1704 - it. 1703 + will be used on hardware which claims to support it. 1705 1704 tboot_noforce [Default Off] 1706 1705 Do not force the Intel IOMMU enabled under tboot. 1707 1706 By default, tboot will force Intel IOMMU on, which
+4 -4
drivers/iommu/intel-iommu.c
··· 363 363 static int dmar_forcedac; 364 364 static int intel_iommu_strict; 365 365 static int intel_iommu_superpage = 1; 366 - static int intel_iommu_sm = 1; 366 + static int intel_iommu_sm; 367 367 static int iommu_identity_mapping; 368 368 369 369 #define IDENTMAP_ALL 1 ··· 456 456 } else if (!strncmp(str, "sp_off", 6)) { 457 457 pr_info("Disable supported super page\n"); 458 458 intel_iommu_superpage = 0; 459 - } else if (!strncmp(str, "sm_off", 6)) { 460 - pr_info("Intel-IOMMU: disable scalable mode support\n"); 461 - intel_iommu_sm = 0; 459 + } else if (!strncmp(str, "sm_on", 5)) { 460 + pr_info("Intel-IOMMU: scalable mode supported\n"); 461 + intel_iommu_sm = 1; 462 462 } else if (!strncmp(str, "tboot_noforce", 13)) { 463 463 printk(KERN_INFO 464 464 "Intel-IOMMU: not forcing on after tboot. This could expose security risk for tboot\n");