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