Chris Wright wrote:
Upstream was still broken as recently as Friday for bad BIOSes (x200s
in
this case). Wonder if opt-in via cmdline would be helpful?
Like the attached patch?
Disclaimer: untested, build still running ...
thanks,
Gerd
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 235fb7a..ddd0f31 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -268,7 +268,8 @@ static long list_size;
static void domain_remove_dev_info(struct dmar_domain *domain);
-int dmar_disabled;
+/* default-off for now because it blows up on some machines due to bios bugs */
+int dmar_disabled = 1;
static int __initdata dmar_map_gfx = 1;
static int dmar_forcedac;
static int intel_iommu_strict;
@@ -287,6 +288,9 @@ static int __init intel_iommu_setup(char *str)
if (!strncmp(str, "off", 3)) {
dmar_disabled = 1;
printk(KERN_INFO"Intel-IOMMU: disabled\n");
+ } else if (!strncmp(str, "on", 2)) {
+ dmar_disabled = 0;
+ printk(KERN_INFO"Intel-IOMMU: enabled\n");
} else if (!strncmp(str, "igfx_off", 8)) {
dmar_map_gfx = 0;
printk(KERN_INFO