aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@redhat.com>2017-06-13 12:56:34 -0400
committerVinod Koul <vinod.koul@intel.com>2017-06-15 00:20:37 -0400
commit036e9ef8becde736e693be4f4bef56d5b56fc298 (patch)
tree6ae40ac142939f1ea4c3f9881d23914743648091
parent838b56adab18040657ec40322fd01d6ebf312ee7 (diff)
dmaengine: Replace WARN_TAINT_ONCE() with pr_warn_once()
The WARN_TAINT_ONCE() prints out a loud stack trace on broken BIOSes. The systems that have this problem are several years out of support and no longer have BIOS updates available. The stack trace isn't necessary and a pr_warn_once() will do. Change WARN_TAINT_ONCE() to pr_warn_once() and taint. Signed-off-by: Prarit Bhargava <prarit@redhat.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Vinod Koul <vinod.koul@intel.com> Cc: Duyck, Alexander H <alexander.h.duyck@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/ioat/dca.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/ioat/dca.c b/drivers/dma/ioat/dca.c
index 0b9b6b07db9e..eab2fdda29ec 100644
--- a/drivers/dma/ioat/dca.c
+++ b/drivers/dma/ioat/dca.c
@@ -336,10 +336,10 @@ struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase)
336 } 336 }
337 337
338 if (dca3_tag_map_invalid(ioatdca->tag_map)) { 338 if (dca3_tag_map_invalid(ioatdca->tag_map)) {
339 WARN_TAINT_ONCE(1, TAINT_FIRMWARE_WORKAROUND, 339 add_taint(TAINT_FIRMWARE_WORKAROUND, LOCKDEP_STILL_OK);
340 "%s %s: APICID_TAG_MAP set incorrectly by BIOS, disabling DCA\n", 340 pr_warn_once("%s %s: APICID_TAG_MAP set incorrectly by BIOS, disabling DCA\n",
341 dev_driver_string(&pdev->dev), 341 dev_driver_string(&pdev->dev),
342 dev_name(&pdev->dev)); 342 dev_name(&pdev->dev));
343 free_dca_provider(dca); 343 free_dca_provider(dca);
344 return NULL; 344 return NULL;
345 } 345 }