839ac8c
From 05104a4e8713b27291c7bb49c1e7e68b4e243571 Mon Sep 17 00:00:00 2001
839ac8c
From: Neil Horman <nhorman@tuxdriver.com>
839ac8c
Date: Fri, 27 Sep 2013 16:53:35 +0000
839ac8c
Subject: iommu: Remove stack trace from broken irq remapping warning
839ac8c
839ac8c
The warning for the irq remapping broken check in intel_irq_remapping.c is
839ac8c
pretty pointless.  We need the warning, but we know where its comming from, the
839ac8c
stack trace will always be the same, and it needlessly triggers things like
839ac8c
Abrt.  This changes the warning to just print a text warning about BIOS being
839ac8c
broken, without the stack trace, then sets the appropriate taint bit.  Since we
839ac8c
automatically disable irq remapping, theres no need to contiue making Abrt jump
839ac8c
at this problem
839ac8c
839ac8c
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
839ac8c
CC: Joerg Roedel <joro@8bytes.org>
839ac8c
CC: Bjorn Helgaas <bhelgaas@google.com>
839ac8c
CC: Andy Lutomirski <luto@amacapital.net>
839ac8c
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
839ac8c
CC: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
839ac8c
Signed-off-by: Joerg Roedel <joro@8bytes.org>
839ac8c
---
839ac8c
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c
839ac8c
index f71673d..b97d70b 100644
839ac8c
--- a/drivers/iommu/intel_irq_remapping.c
839ac8c
+++ b/drivers/iommu/intel_irq_remapping.c
839ac8c
@@ -525,12 +525,13 @@ static int __init intel_irq_remapping_supported(void)
839ac8c
 	if (disable_irq_remap)
839ac8c
 		return 0;
839ac8c
 	if (irq_remap_broken) {
839ac8c
-		WARN_TAINT(1, TAINT_FIRMWARE_WORKAROUND,
839ac8c
-			   "This system BIOS has enabled interrupt remapping\n"
839ac8c
-			   "on a chipset that contains an erratum making that\n"
839ac8c
-			   "feature unstable.  To maintain system stability\n"
839ac8c
-			   "interrupt remapping is being disabled.  Please\n"
839ac8c
-			   "contact your BIOS vendor for an update\n");
839ac8c
+		printk(KERN_WARNING
839ac8c
+			"This system BIOS has enabled interrupt remapping\n"
839ac8c
+			"on a chipset that contains an erratum making that\n"
839ac8c
+			"feature unstable.  To maintain system stability\n"
839ac8c
+			"interrupt remapping is being disabled.  Please\n"
839ac8c
+			"contact your BIOS vendor for an update\n");
839ac8c
+		add_taint(TAINT_FIRMWARE_WORKAROUND, LOCKDEP_STILL_OK);
839ac8c
 		disable_irq_remap = 1;
839ac8c
 		return 0;
839ac8c
 	}
839ac8c
--
839ac8c
cgit v0.9.2